Lines Matching refs:ctfm

371 static int safexcel_skcipher_aes_setkey(struct crypto_skcipher *ctfm,  in safexcel_skcipher_aes_setkey()  argument
374 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aes_setkey()
402 static int safexcel_aead_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_setkey() argument
405 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_setkey()
430 err = verify_aead_des_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey()
435 err = verify_aead_des3_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey()
1428 static int safexcel_skcipher_aesctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesctr_setkey() argument
1431 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesctr_setkey()
1503 static int safexcel_des_setkey(struct crypto_skcipher *ctfm, const u8 *key, in safexcel_des_setkey() argument
1506 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1510 ret = verify_skcipher_des_key(ctfm, key); in safexcel_des_setkey()
1602 static int safexcel_des3_ede_setkey(struct crypto_skcipher *ctfm, in safexcel_des3_ede_setkey() argument
1605 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1609 err = verify_skcipher_des3_key(ctfm, key); in safexcel_des3_ede_setkey()
2463 static int safexcel_skcipher_aesxts_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesxts_setkey() argument
2466 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesxts_setkey()
2474 ret = xts_verify_key(ctfm, key, len); in safexcel_skcipher_aesxts_setkey()
2577 static int safexcel_aead_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_gcm_setkey() argument
2580 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_gcm_setkey()
2679 static int safexcel_aead_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_ccm_setkey() argument
2682 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_ccm_setkey()
2816 static int safexcel_skcipher_chacha20_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_chacha20_setkey() argument
2819 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2867 static int safexcel_aead_chachapoly_setkey(struct crypto_aead *ctfm, in safexcel_aead_chachapoly_setkey() argument
2870 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
3070 static int safexcel_skcipher_sm4_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4_setkey() argument
3073 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4_setkey()
3262 static int safexcel_skcipher_sm4ctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4ctr_setkey() argument
3265 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4ctr_setkey()
3273 return safexcel_skcipher_sm4_setkey(ctfm, key, len); in safexcel_skcipher_sm4ctr_setkey()
3375 static int safexcel_aead_fallback_setkey(struct crypto_aead *ctfm, in safexcel_aead_fallback_setkey() argument
3378 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setkey()
3383 safexcel_aead_setkey(ctfm, key, len); in safexcel_aead_fallback_setkey()
3386 static int safexcel_aead_fallback_setauthsize(struct crypto_aead *ctfm, in safexcel_aead_fallback_setauthsize() argument
3389 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setauthsize()
3556 static int safexcel_rfc4106_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4106_gcm_setkey() argument
3559 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4106_gcm_setkey()
3566 return safexcel_aead_gcm_setkey(ctfm, key, len); in safexcel_rfc4106_gcm_setkey()
3669 static int safexcel_rfc4309_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4309_ccm_setkey() argument
3672 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4309_ccm_setkey()
3683 return safexcel_aead_ccm_setkey(ctfm, key, len); in safexcel_rfc4309_ccm_setkey()