/linux-master/arch/x86/crypto/ |
H A D | camellia_glue.c | 35 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 37 camellia_enc_blk(crypto_tfm_ctx(tfm), dst, src); 40 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 42 camellia_dec_blk(crypto_tfm_ctx(tfm), dst, src); 1254 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *key, argument 1257 return __camellia_setkey(crypto_tfm_ctx(tfm), key, key_len); 1260 static int camellia_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, argument 1263 return camellia_setkey(&tfm->base, key, key_len);
|
H A D | cast5_avx_glue.c | 28 static int cast5_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, argument 31 return cast5_setkey(&tfm->base, key, keylen);
|
H A D | cast6_avx_glue.c | 28 static int cast6_setkey_skcipher(struct crypto_skcipher *tfm, argument 31 return cast6_setkey(&tfm->base, key, keylen);
|
H A D | chacha_glue.c | 200 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 201 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); 208 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 209 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
|
H A D | crc32-pclmul_glue.c | 83 static int crc32_pclmul_cra_init(struct crypto_tfm *tfm) argument 85 u32 *key = crypto_tfm_ctx(tfm); 105 u32 *mctx = crypto_shash_ctx(desc->tfm); 147 return __crc32_pclmul_finup(crypto_shash_ctx(desc->tfm), data, len,
|
H A D | crc32c-intel_glue.c | 96 u32 *mctx = crypto_shash_ctx(desc->tfm); 137 return __crc32c_intel_finup(crypto_shash_ctx(desc->tfm), data, len, 141 static int crc32c_intel_cra_init(struct crypto_tfm *tfm) argument 143 u32 *key = crypto_tfm_ctx(tfm); 191 return __crc32c_pcl_intel_finup(crypto_shash_ctx(desc->tfm), data, len,
|
H A D | curve25519-x86_64.c | 1615 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, argument 1618 u8 *secret = kpp_tfm_ctx(tfm); 1632 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local 1633 const u8 *secret = kpp_tfm_ctx(tfm); 1654 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local 1655 const u8 *secret = kpp_tfm_ctx(tfm); 1682 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) argument
|
H A D | des3_ede_glue.c | 56 static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 58 des3_ede_enc_blk(crypto_tfm_ctx(tfm), dst, src); 61 static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 63 des3_ede_dec_blk(crypto_tfm_ctx(tfm), dst, src); 112 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 113 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); 120 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 121 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); 151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 152 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); 230 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 246 des3_ede_x86_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument 280 des3_ede_x86_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument [all...] |
H A D | ghash-clmulni-intel_glue.c | 54 static int ghash_setkey(struct crypto_shash *tfm, argument 57 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); 99 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); 152 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); 181 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 182 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); 188 desc->tfm = child; 195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 196 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); 213 struct crypto_ahash *tfm local 253 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 272 ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument 284 ghash_async_init_tfm(struct crypto_tfm *tfm) argument 302 ghash_async_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | polyval-clmulni_glue.c | 52 static inline struct polyval_tfm_ctx *polyval_tfm_ctx(struct crypto_shash *tfm) argument 54 return PTR_ALIGN(crypto_shash_ctx(tfm), POLYVAL_ALIGN); 81 static int polyval_x86_setkey(struct crypto_shash *tfm, argument 84 struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(tfm); 114 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm); 155 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm);
|
H A D | serpent_avx2_glue.c | 26 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, argument 29 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen);
|
H A D | serpent_avx_glue.c | 35 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, argument 38 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen);
|
H A D | serpent_sse2_glue.c | 27 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, argument 30 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen);
|
H A D | sm4_aesni_avx2_glue.c | 27 static int sm4_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 30 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
|
H A D | sm4_aesni_avx_glue.c | 31 static int sm4_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 34 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); 75 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 76 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); 84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 85 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); 93 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 94 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); 127 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 128 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); 192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local [all...] |
H A D | twofish_avx_glue.c | 30 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, argument 33 return twofish_setkey(&tfm->base, key, keylen);
|
H A D | twofish_glue.c | 54 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 56 twofish_enc_blk(crypto_tfm_ctx(tfm), dst, src); 59 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 61 twofish_dec_blk(crypto_tfm_ctx(tfm), dst, src);
|
H A D | twofish_glue_3way.c | 21 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, argument 24 return twofish_setkey(&tfm->base, key, keylen);
|
/linux-master/arch/x86/kernel/cpu/sgx/ |
H A D | ioctl.c | 459 static int __sgx_get_key_hash(struct crypto_shash *tfm, const void *modulus, argument 462 SHASH_DESC_ON_STACK(shash, tfm); 464 shash->tfm = tfm; 471 struct crypto_shash *tfm; local 474 tfm = crypto_alloc_shash("sha256", 0, CRYPTO_ALG_ASYNC); 475 if (IS_ERR(tfm)) 476 return PTR_ERR(tfm); 478 ret = __sgx_get_key_hash(tfm, modulus, hash); 480 crypto_free_shash(tfm); [all...] |
/linux-master/crypto/ |
H A D | acompress.c | 31 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) argument 33 return __crypto_acomp_alg(crypto_acomp_tfm(tfm)->__crt_alg); 56 static void crypto_acomp_exit_tfm(struct crypto_tfm *tfm) argument 58 struct crypto_acomp *acomp = __crypto_acomp_tfm(tfm); 64 static int crypto_acomp_init_tfm(struct crypto_tfm *tfm) argument 66 struct crypto_acomp *acomp = __crypto_acomp_tfm(tfm); 69 if (tfm->__crt_alg->cra_type != &crypto_acomp_type) 70 return crypto_init_scomp_ops_async(tfm); 128 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); local 132 if (req && (tfm 142 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); local [all...] |
H A D | adiantum.c | 117 static int adiantum_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 120 struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); 134 crypto_skcipher_get_flags(tfm) & 162 crypto_skcipher_get_flags(tfm) & 175 crypto_shash_set_flags(tctx->hash, crypto_skcipher_get_flags(tfm) & 221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 222 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); 280 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 281 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); 299 rctx->u.hash_desc.tfm 340 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 427 adiantum_init_tfm(struct crypto_skcipher *tfm) argument 479 adiantum_exit_tfm(struct crypto_skcipher *tfm) argument [all...] |
H A D | aead.c | 23 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, argument 26 unsigned long alignmask = crypto_aead_alignmask(tfm); 38 ret = crypto_aead_alg(tfm)->setkey(tfm, alignbuffer, keylen); 43 int crypto_aead_setkey(struct crypto_aead *tfm, argument 46 unsigned long alignmask = crypto_aead_alignmask(tfm); 50 err = setkey_unaligned(tfm, key, keylen); 52 err = crypto_aead_alg(tfm)->setkey(tfm, key, keylen); 55 crypto_aead_set_flags(tfm, CRYPTO_TFM_NEED_KE 64 crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument 108 crypto_aead_exit_tfm(struct crypto_tfm *tfm) argument 116 crypto_aead_init_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | aegis128-core.c | 378 static int crypto_aegis128_setauthsize(struct crypto_aead *tfm, argument 390 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 392 unsigned int authsize = crypto_aead_authsize(tfm); 393 struct aegis_ctx *ctx = crypto_aead_ctx(tfm); 413 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 415 unsigned int authsize = crypto_aead_authsize(tfm); 417 struct aegis_ctx *ctx = crypto_aead_ctx(tfm); 451 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 453 unsigned int authsize = crypto_aead_authsize(tfm); 454 struct aegis_ctx *ctx = crypto_aead_ctx(tfm); 476 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local [all...] |
H A D | aes_generic.c | 1126 * @tfm: The %crypto_tfm that is used in the context. 1131 * _must_ be the private data embedded in @tfm which is retrieved with 1136 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 1139 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 1176 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 1178 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 1246 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 1248 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
|
H A D | aes_ti.c | 12 static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 15 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 20 static void aesti_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 22 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 36 static void aesti_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 38 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
|