Lines Matching refs:enc_keylen
55 unsigned int enc_keylen; member
367 ctx->enc_keylen, ctx->auth_keylen); in validate_keys_sizes()
389 if (ctx->enc_keylen != DES3_EDE_KEY_SIZE) { in validate_keys_sizes()
391 ctx->enc_keylen); in validate_keys_sizes()
395 if (ctx->enc_keylen != AES_KEYSIZE_128 && in validate_keys_sizes()
396 ctx->enc_keylen != AES_KEYSIZE_192 && in validate_keys_sizes()
397 ctx->enc_keylen != AES_KEYSIZE_256) { in validate_keys_sizes()
399 ctx->enc_keylen); in validate_keys_sizes()
565 ctx->enc_keylen = keys.enckeylen; in cc_aead_setkey()
570 if (ctx->enc_keylen < in cc_aead_setkey()
576 memcpy(ctx->ctr_nonce, enckey + ctx->enc_keylen - in cc_aead_setkey()
579 ctx->enc_keylen -= CTR_RFC3686_NONCE_SIZE; in cc_aead_setkey()
584 ctx->enc_keylen = keylen; in cc_aead_setkey()
595 memcpy(ctx->enckey, enckey, ctx->enc_keylen); in cc_aead_setkey()
596 if (ctx->enc_keylen == 24) in cc_aead_setkey()
951 ((ctx->enc_keylen == 24) ? CC_AES_KEY_SIZE_MAX : in cc_set_cipher_desc()
952 ctx->enc_keylen), NS_BIT); in cc_set_cipher_desc()
953 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_set_cipher_desc()
956 ctx->enc_keylen, NS_BIT); in cc_set_cipher_desc()
957 set_key_size_des(&desc[idx], ctx->enc_keylen); in cc_set_cipher_desc()
1431 ((ctx->enc_keylen == 24) ? CC_AES_KEY_SIZE_MAX : in cc_ccm()
1432 ctx->enc_keylen), NS_BIT); in cc_ccm()
1433 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_ccm()
1442 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_ccm()
1454 ((ctx->enc_keylen == 24) ? CC_AES_KEY_SIZE_MAX : in cc_ccm()
1455 ctx->enc_keylen), NS_BIT); in cc_ccm()
1456 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_ccm()
1466 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_ccm()
1508 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_ccm()
1626 ctx->enc_keylen, NS_BIT); in cc_set_ghash_desc()
1627 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_set_ghash_desc()
1704 ctx->enc_keylen, NS_BIT); in cc_set_gctr_desc()
1705 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_set_gctr_desc()
1714 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_set_gctr_desc()
1765 set_key_size_aes(&desc[idx], ctx->enc_keylen); in cc_proc_gcm_result()