/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() 80 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() 133 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() 162 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local 163 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init() 169 desc->tfm = child; in ghash_async_init() 176 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 177 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update() 194 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local [all …]
|
D | aesni-intel_glue.c | 282 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) in aesni_rfc4106_gcm_ctx_get() argument 288 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get() 292 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) in generic_gcmaes_ctx_get() argument 298 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in generic_gcmaes_ctx_get() 312 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common() argument 333 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 336 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key() 339 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_encrypt() argument 341 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt() 352 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_decrypt() argument [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 | 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 …]
|
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() 69 err = xts_verify_key(tfm, key, keylen); in xts_twofish_setkey() 199 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local 200 struct twofish_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt() 208 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local 209 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() 178 err = xts_verify_key(tfm, key, keylen); in xts_cast6_setkey() 193 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local 194 struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt() 202 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local 203 struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_decrypt()
|
/arch/arm/crypto/ |
D | ghash-ce-glue.c | 103 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update() 133 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final() 156 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument 159 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey() 201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local 202 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init() 208 desc->tfm = child; in ghash_async_init() 215 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 216 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update() 233 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local [all …]
|
D | aes-neonbs-glue.c | 68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 71 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey() 92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 93 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt() 127 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 130 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey() 151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 152 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt() 166 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 167 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() 150 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key() argument 153 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_set_key() 156 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key() 169 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 170 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt() 189 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 190 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt() 210 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt_walk() 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()
|
D | curve25519-glue.c | 49 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret() argument 52 u8 *secret = kpp_tfm_ctx(tfm); in curve25519_set_secret() 66 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_value() local 67 const u8 *secret = kpp_tfm_ctx(tfm); in curve25519_compute_value() 97 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size() argument
|
/arch/s390/crypto/ |
D | aes_s390.c | 72 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() argument 75 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() 84 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 87 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_set_key() 98 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key() 105 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() argument 107 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in crypto_aes_encrypt() 116 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() argument 118 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in crypto_aes_decrypt() [all …]
|
D | des_s390.c | 35 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() argument 38 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_setkey() 41 err = crypto_des_verify_key(tfm, key); in des_setkey() 49 static int des_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des_setkey_skcipher() argument 52 return des_setkey(crypto_skcipher_tfm(tfm), key, key_len); in des_setkey_skcipher() 55 static void s390_des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_encrypt() argument 57 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in s390_des_encrypt() 62 static void s390_des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_decrypt() argument 64 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in s390_des_decrypt() 91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_desall_crypt() local [all …]
|
D | paes_s390.c | 153 static int ecb_paes_init(struct crypto_skcipher *tfm) in ecb_paes_init() argument 155 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_init() 163 static void ecb_paes_exit(struct crypto_skcipher *tfm) in ecb_paes_exit() argument 165 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_exit() 188 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_paes_set_key() argument 192 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_set_key() 204 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_paes_crypt() local 205 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_crypt() 266 static int cbc_paes_init(struct crypto_skcipher *tfm) in cbc_paes_init() argument 268 struct s390_paes_ctx *ctx = crypto_skcipher_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() 120 static int crc32be_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, in crc32be_vx_setkey() argument 123 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32be_vx_setkey() 201 return __ ## alg ## _vx_finup(crypto_shash_ctx(desc->tfm), \
|
/arch/sparc/crypto/ |
D | des_glue.c | 45 static int des_set_key(struct crypto_tfm *tfm, const u8 *key, in des_set_key() argument 48 struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des_set_key() 55 err = crypto_des_verify_key(tfm, key); in des_set_key() 65 static int des_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des_set_key_skcipher() argument 68 return des_set_key(crypto_skcipher_tfm(tfm), key, keylen); in des_set_key_skcipher() 74 static void sparc_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des_encrypt() argument 76 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des_encrypt() 82 static void sparc_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des_decrypt() argument 84 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des_decrypt() 97 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local [all …]
|
D | camellia_glue.c | 37 static int camellia_set_key(struct crypto_tfm *tfm, const u8 *_in_key, in camellia_set_key() argument 40 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_set_key() 53 static int camellia_set_key_skcipher(struct crypto_skcipher *tfm, in camellia_set_key_skcipher() argument 56 return camellia_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); in camellia_set_key_skcipher() 62 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_encrypt() argument 64 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_encrypt() 71 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt() argument 73 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_decrypt() 90 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 91 const struct camellia_sparc64_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt() [all …]
|
D | aes_glue.c | 168 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 171 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_set_key() 199 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, in aes_set_key_skcipher() argument 202 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); in aes_set_key_skcipher() 205 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_aes_encrypt() argument 207 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_encrypt() 212 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_aes_decrypt() argument 214 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_decrypt() 221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 222 const struct crypto_sparc64_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt() [all …]
|
/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 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm, in xts_set_key() argument 142 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_set_key() 145 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key() 156 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm, in essiv_cbc_set_key() argument 160 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in essiv_cbc_set_key() 175 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 176 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt() 195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local [all …]
|
D | aes-neonbs-glue.c | 72 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 75 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey() 96 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 97 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt() 131 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 134 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey() 156 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 157 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt() 179 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 180 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()
|
/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument 95 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_setkey() 119 static int ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, in ppc_aes_setkey_skcipher() argument 122 return ppc_aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len); in ppc_aes_setkey_skcipher() 125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ppc_xts_setkey() argument 128 struct ppc_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in ppc_xts_setkey() 131 err = xts_verify_key(tfm, in_key, key_len); in ppc_xts_setkey() 162 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt() argument 164 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_encrypt() 171 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt() argument [all …]
|