Lines Matching defs:cipher
23 @param cipher The index of the cipher to use
28 int gcm_init(gcm_state *gcm, int cipher,
46 /* is cipher valid? */
47 if ((err = cipher_is_valid(cipher)) != CRYPT_OK) {
50 if (cipher_descriptor[cipher].block_length != 16) {
55 if ((err = cipher_descriptor[cipher].setup(key, keylen, 0, &gcm->K)) != CRYPT_OK) {
61 if ((err = cipher_descriptor[cipher].ecb_encrypt(B, gcm->H, &gcm->K)) != CRYPT_OK) {
68 gcm->cipher = cipher;