/arch/s390/crypto/ |
D | aes_s390.c | 58 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() argument 61 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in setkey_fallback_cip() 65 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip() 70 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey_fallback_cip() 71 tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & in setkey_fallback_cip() 77 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 80 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_set_key() 91 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key() 98 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt() argument 100 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_encrypt() [all …]
|
D | crc32-vx.c | 83 static int crc32_vx_cra_init_zero(struct crypto_tfm *tfm) in DEFINE_CRC32_VX() 85 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in DEFINE_CRC32_VX() 91 static int crc32_vx_cra_init_invert(struct crypto_tfm *tfm) in crc32_vx_cra_init_invert() argument 93 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_invert() 101 struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in crc32_vx_init() 108 static int crc32_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, in crc32_vx_setkey() argument 111 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32_vx_setkey() 114 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32_vx_setkey() 121 static int crc32be_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, in crc32be_vx_setkey() argument 124 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32be_vx_setkey() [all …]
|
D | des_s390.c | 38 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() argument 41 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_setkey() 46 (tfm->crt_flags & CRYPTO_TFM_REQ_WEAK_KEY)) { in des_setkey() 47 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in des_setkey() 55 static void des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in des_encrypt() argument 57 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_encrypt() 62 static void des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in des_decrypt() argument 64 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_decrypt() 92 struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_desall_crypt() 110 struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_desall_crypt() [all …]
|
D | paes_s390.c | 82 static int ecb_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ecb_paes_set_key() argument 85 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ecb_paes_set_key() 92 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ecb_paes_set_key() 102 struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_paes_crypt() 181 static int cbc_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in cbc_paes_set_key() argument 184 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in cbc_paes_set_key() 188 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in cbc_paes_set_key() 197 struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_paes_crypt() 289 static int xts_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_paes_set_key() argument 292 struct s390_pxts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_paes_set_key() [all …]
|
/arch/arm/crypto/ |
D | ghash-ce-glue.c | 74 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update() 106 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final() 120 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument 123 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey() 127 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey() 164 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local 165 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init() 171 desc->tfm = child; in ghash_async_init() 179 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 180 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update() [all …]
|
D | aes-neonbs-glue.c | 60 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 63 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey() 84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 85 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt() 119 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 122 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey() 139 static void cbc_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in cbc_encrypt_one() argument 141 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_one() 153 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 154 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt() [all …]
|
D | aes-ce-glue.c | 137 static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ce_aes_setkey() argument 140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ce_aes_setkey() 147 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ce_aes_setkey() 156 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key() argument 159 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_set_key() 162 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key() 173 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in xts_set_key() 179 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 180 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt() 199 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local [all …]
|
D | aes-cipher-glue.c | 22 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt() argument 24 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_encrypt() 30 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_decrypt() argument 32 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_decrypt()
|
/arch/x86/crypto/ |
D | ghash-clmulni-intel_glue.c | 55 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument 58 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey() 63 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey() 84 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() 137 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() 167 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local 168 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init() 174 desc->tfm = child; in ghash_async_init() 182 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 183 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update() [all …]
|
D | aesni-intel_glue.c | 273 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) in aesni_rfc4106_gcm_ctx_get() argument 279 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get() 283 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) in generic_gcmaes_ctx_get() argument 289 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in generic_gcmaes_ctx_get() 303 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common() argument 307 u32 *flags = &tfm->crt_flags; in aes_set_key_common() 327 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 330 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key() 333 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt() argument 335 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_encrypt() [all …]
|
D | twofish_glue.c | 54 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_encrypt() argument 56 twofish_enc_blk(crypto_tfm_ctx(tfm), dst, src); in twofish_encrypt() 59 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_decrypt() argument 61 twofish_dec_blk(crypto_tfm_ctx(tfm), dst, src); in twofish_decrypt()
|
D | fpu.c | 44 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_fpu_encrypt() local 45 struct crypto_fpu_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_fpu_encrypt() 65 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_fpu_decrypt() local 66 struct crypto_fpu_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_fpu_decrypt() 84 static int crypto_fpu_init_tfm(struct crypto_skcipher *tfm) in crypto_fpu_init_tfm() argument 86 struct skcipher_instance *inst = skcipher_alg_instance(tfm); in crypto_fpu_init_tfm() 87 struct crypto_fpu_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_fpu_init_tfm() 101 static void crypto_fpu_exit_tfm(struct crypto_skcipher *tfm) in crypto_fpu_exit_tfm() argument 103 struct crypto_fpu_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_fpu_exit_tfm()
|
D | aes_glue.c | 25 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt() argument 27 aes_enc_blk(crypto_tfm_ctx(tfm), dst, src); in aes_encrypt() 30 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_decrypt() argument 32 aes_dec_blk(crypto_tfm_ctx(tfm), dst, src); in aes_decrypt()
|
D | twofish_glue_3way.c | 216 int lrw_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_twofish_setkey() argument 219 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_twofish_setkey() 223 &tfm->crt_flags); in lrw_twofish_setkey() 234 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() 251 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() 265 void lrw_twofish_exit_tfm(struct crypto_tfm *tfm) in lrw_twofish_exit_tfm() argument 267 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_twofish_exit_tfm() 273 int xts_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_twofish_setkey() argument 276 struct twofish_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_twofish_setkey() 277 u32 *flags = &tfm->crt_flags; in xts_twofish_setkey() [all …]
|
/arch/arm64/crypto/ |
D | aes-glue.c | 105 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey() argument 108 return aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len); in skcipher_aes_setkey() 111 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key() argument 114 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_set_key() 117 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key() 128 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in xts_set_key() 134 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 135 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt() 154 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 155 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt() [all …]
|
D | aes-neonbs-glue.c | 74 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 77 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey() 98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 99 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt() 133 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 136 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey() 157 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 158 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt() 181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 182 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt() [all …]
|
D | aes-cipher-glue.c | 21 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt() argument 23 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_encrypt() 29 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_decrypt() argument 31 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_decrypt()
|
D | aes-ce-glue.c | 51 static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_encrypt() argument 53 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_encrypt() 65 static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_decrypt() argument 67 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_decrypt() 147 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey() argument 150 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey() 157 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ce_aes_setkey()
|
/arch/sparc/crypto/ |
D | des_glue.c | 43 static int des_set_key(struct crypto_tfm *tfm, const u8 *key, in des_set_key() argument 46 struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des_set_key() 47 u32 *flags = &tfm->crt_flags; in des_set_key() 70 static void des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des_encrypt() argument 72 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in des_encrypt() 78 static void des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des_decrypt() argument 80 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in des_decrypt() 97 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in __ecb_crypt() 145 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt() 176 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt() [all …]
|
D | camellia_glue.c | 35 static int camellia_set_key(struct crypto_tfm *tfm, const u8 *_in_key, in camellia_set_key() argument 38 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_set_key() 40 u32 *flags = &tfm->crt_flags; in camellia_set_key() 57 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_encrypt() argument 59 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_encrypt() 66 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt() argument 68 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_decrypt() 89 struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in __ecb_crypt() 152 struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt() 191 struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt()
|
/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 94 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument 97 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_setkey() 102 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_aes_setkey() 126 static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_xts_setkey() argument 129 struct ppc_xts_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_xts_setkey() 132 err = xts_check_key(tfm, in_key, key_len); in ppc_xts_setkey() 141 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_xts_setkey() 168 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt() argument 170 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_encrypt() 177 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt() argument [all …]
|
/arch/x86/include/asm/crypto/ |
D | twofish.h | 39 extern int lrw_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, 42 extern void lrw_twofish_exit_tfm(struct crypto_tfm *tfm); 44 extern int xts_twofish_setkey(struct crypto_tfm *tfm, const u8 *key,
|
/arch/x86/crypto/sha256-mb/ |
D | sha256_mb.c | 706 static int sha256_mb_async_init_tfm(struct crypto_tfm *tfm) in sha256_mb_async_init_tfm() argument 709 struct sha256_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha256_mb_async_init_tfm() 720 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in sha256_mb_async_init_tfm() 727 static void sha256_mb_async_exit_tfm(struct crypto_tfm *tfm) in sha256_mb_async_exit_tfm() argument 729 struct sha256_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha256_mb_async_exit_tfm() 734 static int sha256_mb_areq_init_tfm(struct crypto_tfm *tfm) in sha256_mb_areq_init_tfm() argument 736 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in sha256_mb_areq_init_tfm() 743 static void sha256_mb_areq_exit_tfm(struct crypto_tfm *tfm) in sha256_mb_areq_exit_tfm() argument 745 struct sha256_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha256_mb_areq_exit_tfm() 785 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha256_mb_async_init() local [all …]
|
/arch/x86/crypto/sha1-mb/ |
D | sha1_mb.c | 708 static int sha1_mb_async_init_tfm(struct crypto_tfm *tfm) in sha1_mb_async_init_tfm() argument 711 struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha1_mb_async_init_tfm() 722 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in sha1_mb_async_init_tfm() 729 static void sha1_mb_async_exit_tfm(struct crypto_tfm *tfm) in sha1_mb_async_exit_tfm() argument 731 struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha1_mb_async_exit_tfm() 736 static int sha1_mb_areq_init_tfm(struct crypto_tfm *tfm) in sha1_mb_areq_init_tfm() argument 738 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in sha1_mb_areq_init_tfm() 745 static void sha1_mb_areq_exit_tfm(struct crypto_tfm *tfm) in sha1_mb_areq_exit_tfm() argument 747 struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha1_mb_areq_exit_tfm() 787 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_init() local [all …]
|
/arch/x86/crypto/sha512-mb/ |
D | sha512_mb.c | 742 static int sha512_mb_async_init_tfm(struct crypto_tfm *tfm) in sha512_mb_async_init_tfm() argument 745 struct sha512_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha512_mb_async_init_tfm() 756 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in sha512_mb_async_init_tfm() 763 static void sha512_mb_async_exit_tfm(struct crypto_tfm *tfm) in sha512_mb_async_exit_tfm() argument 765 struct sha512_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha512_mb_async_exit_tfm() 770 static int sha512_mb_areq_init_tfm(struct crypto_tfm *tfm) in sha512_mb_areq_init_tfm() argument 772 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in sha512_mb_areq_init_tfm() 779 static void sha512_mb_areq_exit_tfm(struct crypto_tfm *tfm) in sha512_mb_areq_exit_tfm() argument 781 struct sha512_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha512_mb_areq_exit_tfm() 821 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha512_mb_async_init() local [all …]
|