Lines Matching refs:tfm
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()
197 static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key, in des3_ede_set_key() argument
200 struct des3_ede_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_set_key()
206 err = crypto_des3_ede_verify_key(tfm, key); in des3_ede_set_key()
233 static void sparc_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des3_ede_encrypt() argument
235 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des3_ede_encrypt()
241 static void sparc_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des3_ede_decrypt() argument
243 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des3_ede_decrypt()
258 struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in __ecb3_crypt()
310 struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc3_encrypt()
346 struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc3_decrypt()