Lines Matching refs:key
22 void aes_setup(aes_context *ctx, const struct key128 *key) in aes_setup() argument
24 aes_setkey_enc(ctx, (void*)key, 128); in aes_setup()
32 void aes_encrypt_one(void *target, const void *src, const struct key128 *key) in aes_encrypt_one() argument
35 aes_setkey_enc(&ctx, (void*)key, 128); in aes_encrypt_one()
39 void aes_decrypt_one(void *target, const void *src, const struct key128 *key) in aes_decrypt_one() argument
42 aes_setkey_dec(&ctx, (void*)key, 128); in aes_decrypt_one()
166 void aes_cmac(struct mac128 *target, const void *src, size_t size, const aes_context *key) in aes_cmac() argument
174 aes_encrypt_ecb(&L, &x, key); in aes_cmac()
180 aes_encrypt_ecb(&x, &y, key); in aes_cmac()
192 aes_encrypt_ecb(target, &x, key); in aes_cmac()
204 … aes_cmac_verify(const struct mac128 *target, const void *src, size_t size, const aes_context *key) in aes_cmac_verify() argument
207 aes_cmac(&mac, src, size, key); in aes_cmac_verify()