Lines Matching refs:kaes

32 	struct crypto_cipher *kaes;  member
826 crypto_cipher_encrypt_one(ctx->kaes, areq->result, areq->result); in safexcel_ahash_final()
2094 crypto_cipher_clear_flags(ctx->kaes, CRYPTO_TFM_REQ_MASK); in safexcel_xcbcmac_setkey()
2095 crypto_cipher_set_flags(ctx->kaes, crypto_ahash_get_flags(tfm) & in safexcel_xcbcmac_setkey()
2097 ret = crypto_cipher_setkey(ctx->kaes, key, len); in safexcel_xcbcmac_setkey()
2101 crypto_cipher_encrypt_one(ctx->kaes, (u8 *)key_tmp + 2 * AES_BLOCK_SIZE, in safexcel_xcbcmac_setkey()
2103 crypto_cipher_encrypt_one(ctx->kaes, (u8 *)key_tmp, in safexcel_xcbcmac_setkey()
2105 crypto_cipher_encrypt_one(ctx->kaes, (u8 *)key_tmp + AES_BLOCK_SIZE, in safexcel_xcbcmac_setkey()
2110 crypto_cipher_clear_flags(ctx->kaes, CRYPTO_TFM_REQ_MASK); in safexcel_xcbcmac_setkey()
2111 crypto_cipher_set_flags(ctx->kaes, crypto_ahash_get_flags(tfm) & in safexcel_xcbcmac_setkey()
2113 ret = crypto_cipher_setkey(ctx->kaes, in safexcel_xcbcmac_setkey()
2132 ctx->kaes = crypto_alloc_cipher("aes", 0, 0); in safexcel_xcbcmac_cra_init()
2133 return PTR_ERR_OR_ZERO(ctx->kaes); in safexcel_xcbcmac_cra_init()
2140 crypto_free_cipher(ctx->kaes); in safexcel_xcbcmac_cra_exit()
2194 crypto_cipher_clear_flags(ctx->kaes, CRYPTO_TFM_REQ_MASK); in safexcel_cmac_setkey()
2195 crypto_cipher_set_flags(ctx->kaes, crypto_ahash_get_flags(tfm) & in safexcel_cmac_setkey()
2197 ret = crypto_cipher_setkey(ctx->kaes, key, len); in safexcel_cmac_setkey()
2204 crypto_cipher_encrypt_one(ctx->kaes, (u8 *)consts, (u8 *)consts); in safexcel_cmac_setkey()