/arch/s390/crypto/ |
D | aes_s390.c | 71 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() argument 74 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in setkey_fallback_cip() 78 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip() 83 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey_fallback_cip() 84 tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & in setkey_fallback_cip() 90 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 93 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_set_key() 104 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key() 111 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() argument 113 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in crypto_aes_encrypt() [all …]
|
D | paes_s390.c | 126 static int ecb_paes_init(struct crypto_tfm *tfm) in ecb_paes_init() argument 128 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ecb_paes_init() 135 static void ecb_paes_exit(struct crypto_tfm *tfm) in ecb_paes_exit() argument 137 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ecb_paes_exit() 142 static int ecb_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ecb_paes_set_key() argument 146 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ecb_paes_set_key() 154 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ecb_paes_set_key() 164 struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_paes_crypt() 227 static int cbc_paes_init(struct crypto_tfm *tfm) in cbc_paes_init() argument 229 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in cbc_paes_init() [all …]
|
D | crc32-vx.c | 84 static int crc32_vx_cra_init_zero(struct crypto_tfm *tfm) in DEFINE_CRC32_VX() 86 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in DEFINE_CRC32_VX() 92 static int crc32_vx_cra_init_invert(struct crypto_tfm *tfm) in crc32_vx_cra_init_invert() argument 94 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_invert() 102 struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in crc32_vx_init() 109 static int crc32_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, in crc32_vx_setkey() argument 112 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32_vx_setkey() 115 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32_vx_setkey() 122 static int crc32be_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, in crc32be_vx_setkey() argument 125 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32be_vx_setkey() [all …]
|
D | des_s390.c | 34 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() argument 37 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_setkey() 40 err = crypto_des_verify_key(tfm, key); in des_setkey() 48 static void s390_des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_encrypt() argument 50 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in s390_des_encrypt() 55 static void s390_des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_decrypt() argument 57 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in s390_des_decrypt() 85 struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_desall_crypt() 103 struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_desall_crypt() 221 static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_setkey() argument [all …]
|
/arch/x86/crypto/ |
D | ghash-clmulni-intel_glue.c | 54 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument 57 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey() 61 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey() 82 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() 135 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() 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() 178 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 179 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update() [all …]
|
D | aesni-intel_glue.c | 288 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) in aesni_rfc4106_gcm_ctx_get() argument 294 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get() 298 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) in generic_gcmaes_ctx_get() argument 304 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in generic_gcmaes_ctx_get() 318 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common() argument 322 u32 *flags = &tfm->crt_flags; in aes_set_key_common() 342 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 345 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key() 348 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_encrypt() argument 350 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt() [all …]
|
D | des3_ede_glue.c | 66 static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_encrypt() argument 68 des3_ede_enc_blk(crypto_tfm_ctx(tfm), dst, src); in des3_ede_x86_encrypt() 71 static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_decrypt() argument 73 des3_ede_dec_blk(crypto_tfm_ctx(tfm), dst, src); in des3_ede_x86_decrypt() 122 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 123 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt() 130 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 131 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt() 161 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 162 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_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 | camellia_aesni_avx_glue.c | 144 static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, in camellia_setkey() argument 147 return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen, in camellia_setkey() 148 &tfm->base.crt_flags); in camellia_setkey() 176 int xts_camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_camellia_setkey() argument 179 struct camellia_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_camellia_setkey() 180 u32 *flags = &tfm->base.crt_flags; in xts_camellia_setkey() 183 err = xts_verify_key(tfm, key, keylen); in xts_camellia_setkey() 200 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local 201 struct camellia_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt() 209 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local [all …]
|
D | twofish_avx_glue.c | 37 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, in twofish_setkey_skcipher() argument 40 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher() 63 static int xts_twofish_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_twofish_setkey() argument 66 struct twofish_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_twofish_setkey() 67 u32 *flags = &tfm->base.crt_flags; in xts_twofish_setkey() 70 err = xts_verify_key(tfm, key, keylen); in xts_twofish_setkey() 201 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local 202 struct twofish_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt() 210 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local 211 struct twofish_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_decrypt()
|
D | cast6_avx_glue.c | 35 static int cast6_setkey_skcipher(struct crypto_skcipher *tfm, in cast6_setkey_skcipher() argument 38 return cast6_setkey(&tfm->base, key, keylen); in cast6_setkey_skcipher() 172 static int xts_cast6_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_cast6_setkey() argument 175 struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_cast6_setkey() 176 u32 *flags = &tfm->base.crt_flags; in xts_cast6_setkey() 179 err = xts_verify_key(tfm, key, keylen); in xts_cast6_setkey() 195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local 196 struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt() 204 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local 205 struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_decrypt()
|
D | blowfish_glue.c | 55 static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_encrypt() argument 57 blowfish_enc_blk(crypto_tfm_ctx(tfm), dst, src); in blowfish_encrypt() 60 static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_decrypt() argument 62 blowfish_dec_blk(crypto_tfm_ctx(tfm), dst, src); in blowfish_decrypt() 65 static int blowfish_setkey_skcipher(struct crypto_skcipher *tfm, in blowfish_setkey_skcipher() argument 68 return blowfish_setkey(&tfm->base, key, keylen); in blowfish_setkey_skcipher() 76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_crypt() local 77 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_crypt() 153 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 154 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt() [all …]
|
/arch/arm/crypto/ |
D | ghash-ce-glue.c | 107 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update() 137 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final() 160 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument 163 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey() 167 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey() 206 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local 207 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init() 213 desc->tfm = child; in ghash_async_init() 220 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 221 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update() [all …]
|
D | aes-neonbs-glue.c | 66 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 69 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey() 90 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 91 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt() 125 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 128 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey() 145 static void cbc_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in cbc_encrypt_one() argument 147 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_one() 159 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 160 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 | 16 static void aes_arm_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_arm_encrypt() argument 18 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm_encrypt() 24 static void aes_arm_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_arm_decrypt() argument 26 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm_decrypt()
|
/arch/arm64/crypto/ |
D | sm4-ce-glue.c | 20 static void sm4_ce_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_ce_encrypt() argument 22 const struct crypto_sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_encrypt() 25 crypto_sm4_encrypt(tfm, out, in); in sm4_ce_encrypt() 33 static void sm4_ce_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_ce_decrypt() argument 35 const struct crypto_sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_decrypt() 38 crypto_sm4_decrypt(tfm, out, in); in sm4_ce_decrypt()
|
D | aes-glue.c | 131 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey() argument 134 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in skcipher_aes_setkey() 139 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in skcipher_aes_setkey() 144 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm, in xts_set_key() argument 147 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_set_key() 150 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key() 161 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in xts_set_key() 165 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm, in essiv_cbc_set_key() argument 169 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in essiv_cbc_set_key() 178 desc->tfm = ctx->hash; in essiv_cbc_set_key() [all …]
|
D | aes-neonbs-glue.c | 77 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 80 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey() 101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 102 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt() 136 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 139 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey() 160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 161 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt() 183 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 184 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt() [all …]
|
D | aes-cipher-glue.c | 15 static void aes_arm64_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_arm64_encrypt() argument 17 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm64_encrypt() 23 static void aes_arm64_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_arm64_decrypt() argument 25 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm64_decrypt()
|
D | aes-ce-glue.c | 46 static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_encrypt() argument 48 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_encrypt() 60 static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_decrypt() argument 62 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_decrypt() 142 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey() argument 145 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey() 152 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ce_aes_setkey()
|
/arch/sparc/crypto/ |
D | des_glue.c | 44 static int des_set_key(struct crypto_tfm *tfm, const u8 *key, in des_set_key() argument 47 struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des_set_key() 54 err = crypto_des_verify_key(tfm, key); in des_set_key() 67 static void sparc_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des_encrypt() argument 69 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des_encrypt() 75 static void sparc_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des_decrypt() argument 77 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des_decrypt() 94 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in __ecb_crypt() 142 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt() 173 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt() [all …]
|
D | camellia_glue.c | 36 static int camellia_set_key(struct crypto_tfm *tfm, const u8 *_in_key, in camellia_set_key() argument 39 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_set_key() 41 u32 *flags = &tfm->crt_flags; in camellia_set_key() 58 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_encrypt() argument 60 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_encrypt() 67 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt() argument 69 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_decrypt() 90 struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in __ecb_crypt() 153 struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt() 192 struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt()
|
/arch/x86/power/ |
D | hibernate.c | 77 struct crypto_shash *tfm; in get_e820_md5() local 82 tfm = crypto_alloc_shash("md5", 0, 0); in get_e820_md5() 83 if (IS_ERR(tfm)) in get_e820_md5() 86 desc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm), in get_e820_md5() 93 desc->tfm = tfm; in get_e820_md5() 104 crypto_free_shash(tfm); in get_e820_md5()
|
/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 89 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument 92 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_setkey() 97 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_aes_setkey() 121 static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_xts_setkey() argument 124 struct ppc_xts_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_xts_setkey() 127 err = xts_check_key(tfm, in_key, key_len); in ppc_xts_setkey() 136 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_xts_setkey() 163 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt() argument 165 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_encrypt() 172 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt() argument [all …]
|