Lines Matching refs:tfm

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
98 const struct des_sparc64_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt()
138 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __cbc_crypt() local
139 const struct des_sparc64_ctx *ctx = crypto_skcipher_ctx(tfm); in __cbc_crypt()
181 static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key, in des3_ede_set_key() argument
184 struct des3_ede_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_set_key()
190 err = crypto_des3_ede_verify_key(tfm, key); in des3_ede_set_key()
214 static int des3_ede_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des3_ede_set_key_skcipher() argument
217 return des3_ede_set_key(crypto_skcipher_tfm(tfm), key, keylen); in des3_ede_set_key_skcipher()
223 static void sparc_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des3_ede_encrypt() argument
225 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des3_ede_encrypt()
231 static void sparc_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des3_ede_decrypt() argument
233 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des3_ede_decrypt()
246 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb3_crypt() local
247 const struct des3_ede_sparc64_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb3_crypt()
292 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __cbc3_crypt() local
293 const struct des3_ede_sparc64_ctx *ctx = crypto_skcipher_ctx(tfm); in __cbc3_crypt()