Searched refs:aes_ctx (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/crypto/ |
| H A D | padlock-aes.c | 60 struct aes_ctx { struct 87 static inline struct aes_ctx *aes_ctx_common(void *ctx) in aes_ctx_common() argument 94 return (struct aes_ctx *)ALIGN(addr, align); in aes_ctx_common() 97 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) in aes_ctx() function 102 static inline struct aes_ctx *skcipher_aes_ctx(struct crypto_skcipher *tfm) in skcipher_aes_ctx() 110 struct aes_ctx *ctx = aes_ctx(tfm); in aes_set_key() 308 struct aes_ctx *ctx = aes_ctx(tfm); in padlock_aes_encrypt() 317 struct aes_ctx *ctx = aes_ctx(tfm); in padlock_aes_decrypt() 330 .cra_ctxsize = sizeof(struct aes_ctx), 347 struct aes_ctx *ctx = skcipher_aes_ctx(tfm); in ecb_aes_encrypt() [all …]
|
| /linux/lib/crypto/ |
| H A D | aesgcm.c | 52 aes_expandkey(&ctx->aes_ctx, key, keysize); in aesgcm_expandkey() 57 aesgcm_encrypt_block(&ctx->aes_ctx, &ctx->ghash_key, kin); in aesgcm_expandkey() 100 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_mac() 122 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt()
|
| /linux/arch/x86/crypto/ |
| H A D | aesni-intel_glue.c | 88 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function 119 return aes_set_key_common(aes_ctx(crypto_tfm_ctx(tfm)), in_key, in aes_set_key() 125 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt() 138 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt() 152 return aes_set_key_common(aes_ctx(crypto_skcipher_ctx(tfm)), key, len); in aesni_skcipher_setkey() 158 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt() 180 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt() 202 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt() 224 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt() 246 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cts_cbc_encrypt() [all …]
|
| /linux/include/crypto/ |
| H A D | gcm.h | 69 struct crypto_aes_ctx aes_ctx; member
|
| /linux/drivers/char/tpm/ |
| H A D | tpm2-sessions.c | 129 struct crypto_aes_ctx aes_ctx; member 680 aes_expandkey(&auth->aes_ctx, auth->scratch, AES_KEY_BYTES); in tpm_buf_fill_hmac_session() 681 aescfb_encrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_fill_hmac_session() 861 aes_expandkey(&auth->aes_ctx, auth->scratch, AES_KEY_BYTES); in tpm_buf_check_hmac_response() 862 aescfb_decrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_check_hmac_response()
|