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()
1355 static int safexcel_skcipher_aesctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesctr_setkey() argument
1358 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesctr_setkey()
1430 static int safexcel_des_setkey(struct crypto_skcipher *ctfm, const u8 *key, in safexcel_des_setkey() argument
1433 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1437 ret = verify_skcipher_des_key(ctfm, key); in safexcel_des_setkey()
1529 static int safexcel_des3_ede_setkey(struct crypto_skcipher *ctfm, in safexcel_des3_ede_setkey() argument
1532 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1536 err = verify_skcipher_des3_key(ctfm, key); in safexcel_des3_ede_setkey()
2390 static int safexcel_skcipher_aesxts_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesxts_setkey() argument
2393 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesxts_setkey()
2401 ret = xts_verify_key(ctfm, key, len); in safexcel_skcipher_aesxts_setkey()
2504 static int safexcel_aead_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_gcm_setkey() argument
2507 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_gcm_setkey()
2606 static int safexcel_aead_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_ccm_setkey() argument
2609 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_ccm_setkey()
2743 static int safexcel_skcipher_chacha20_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_chacha20_setkey() argument
2746 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2794 static int safexcel_aead_chachapoly_setkey(struct crypto_aead *ctfm, in safexcel_aead_chachapoly_setkey() argument
2797 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
2997 static int safexcel_skcipher_sm4_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4_setkey() argument
3000 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4_setkey()
3113 static int safexcel_skcipher_sm4ctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4ctr_setkey() argument
3116 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4ctr_setkey()
3124 return safexcel_skcipher_sm4_setkey(ctfm, key, len); in safexcel_skcipher_sm4ctr_setkey()
3226 static int safexcel_aead_fallback_setkey(struct crypto_aead *ctfm, in safexcel_aead_fallback_setkey() argument
3229 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setkey()
3234 safexcel_aead_setkey(ctfm, key, len); in safexcel_aead_fallback_setkey()
3237 static int safexcel_aead_fallback_setauthsize(struct crypto_aead *ctfm, in safexcel_aead_fallback_setauthsize() argument
3240 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setauthsize()
3407 static int safexcel_rfc4106_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4106_gcm_setkey() argument
3410 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4106_gcm_setkey()
3417 return safexcel_aead_gcm_setkey(ctfm, key, len); in safexcel_rfc4106_gcm_setkey()
3520 static int safexcel_rfc4309_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4309_ccm_setkey() argument
3523 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4309_ccm_setkey()
3534 return safexcel_aead_ccm_setkey(ctfm, key, len); in safexcel_rfc4309_ccm_setkey()