public static int GetCipherBlockSize(SymmetricKeyAlgorithm skAlgorithm) { if (skAlgorithm.Equals(SymmetricKeyAlgorithm.IDEA)) return Constants.IDEA_CIPHER_BLOCK_SIZE; //else if (skAlgorithm.Equals(PublicKeyAlgorithm.ElGamalEncryptOnly)) return Constants.ELGAMAL_ENCRYPT_ONLY_PUBLIC_KEY_MPI_COUNT; //else if (skAlgorithm.Equals(PublicKeyAlgorithm.RSA)) return Constants.RSA_PUBLIC_KEY_MPI_COUNT; else return 0; }