Home
last modified time | relevance | path

Searched refs:tfm (Results 1 – 25 of 57) sorted by relevance

123

/arch/x86/crypto/
Dghash-clmulni-intel_glue.c54 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 …]
Ddes3_ede_glue.c64 static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_encrypt() argument
66 des3_ede_enc_blk(crypto_tfm_ctx(tfm), dst, src); in des3_ede_x86_encrypt()
69 static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_decrypt() argument
71 des3_ede_dec_blk(crypto_tfm_ctx(tfm), dst, src); in des3_ede_x86_decrypt()
120 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local
121 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
128 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local
129 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
159 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
160 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt()
[all …]
Daesni-intel_glue.c202 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) in aesni_rfc4106_gcm_ctx_get() argument
208 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get()
212 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) in generic_gcmaes_ctx_get() argument
218 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in generic_gcmaes_ctx_get()
232 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common() argument
253 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
256 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key()
259 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_encrypt() argument
261 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
272 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_decrypt() argument
[all …]
Dtwofish_glue.c54 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()
Dblowfish_glue.c53 static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_encrypt() argument
55 blowfish_enc_blk(crypto_tfm_ctx(tfm), dst, src); in blowfish_encrypt()
58 static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_decrypt() argument
60 blowfish_dec_blk(crypto_tfm_ctx(tfm), dst, src); in blowfish_decrypt()
63 static int blowfish_setkey_skcipher(struct crypto_skcipher *tfm, in blowfish_setkey_skcipher() argument
66 return blowfish_setkey(&tfm->base, key, keylen); in blowfish_setkey_skcipher()
74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_crypt() local
75 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_crypt()
151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
152 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt()
[all …]
Dsm4_aesni_avx_glue.c33 static int sm4_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_skcipher_setkey() argument
36 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_skcipher_setkey()
77 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_ecb_encrypt() local
78 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_ecb_encrypt()
86 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_ecb_decrypt() local
87 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_ecb_decrypt()
95 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt() local
96 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt()
129 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_cbc_decrypt() local
130 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_cbc_decrypt()
[all …]
Dpolyval-clmulni_glue.c52 static inline struct polyval_tfm_ctx *polyval_tfm_ctx(struct crypto_shash *tfm) in polyval_tfm_ctx() argument
54 return PTR_ALIGN(crypto_shash_ctx(tfm), POLYVAL_ALIGN); in polyval_tfm_ctx()
81 static int polyval_x86_setkey(struct crypto_shash *tfm, in polyval_x86_setkey() argument
84 struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(tfm); in polyval_x86_setkey()
114 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm); in polyval_x86_update()
155 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm); in polyval_x86_final()
/arch/arm/crypto/
Dghash-ce-glue.c103 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 …]
Daes-neonbs-glue.c68 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 …]
Daes-ce-glue.c137 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 …]
Daes-cipher-glue.c16 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()
Dcurve25519-glue.c49 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/
Daes_s390.c72 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 …]
Ddes_s390.c35 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 …]
Dpaes_s390.c159 static int ecb_paes_init(struct crypto_skcipher *tfm) in ecb_paes_init() argument
161 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_init()
169 static void ecb_paes_exit(struct crypto_skcipher *tfm) in ecb_paes_exit() argument
171 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_exit()
196 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_paes_set_key() argument
200 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_set_key()
212 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_paes_crypt() local
213 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_paes_crypt()
274 static int cbc_paes_init(struct crypto_skcipher *tfm) in cbc_paes_init() argument
276 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_paes_init()
[all …]
Dcrc32-vx.c84 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/
Ddes_glue.c45 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 …]
Dcamellia_glue.c37 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 …]
Daes_glue.c168 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/
Dsm4-ce-glue.c20 static int sm4_ce_setkey(struct crypto_tfm *tfm, const u8 *key, in sm4_ce_setkey() argument
23 struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_setkey()
28 static void sm4_ce_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_ce_encrypt() argument
30 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_encrypt()
41 static void sm4_ce_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_ce_decrypt() argument
43 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_decrypt()
Daes-glue.c137 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey() argument
140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in skcipher_aes_setkey()
145 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm, in xts_set_key() argument
148 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_set_key()
151 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key()
162 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm, in essiv_cbc_set_key() argument
166 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in essiv_cbc_set_key()
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local
182 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
201 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local
[all …]
Daes-neonbs-glue.c72 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 …]
Daes-cipher-glue.c15 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()
Daes-ce-glue.c46 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/
Daes-spe-glue.c92 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 …]

123