Lines Matching refs:ctfm
372 static int safexcel_skcipher_aes_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aes_setkey() argument
375 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aes_setkey()
403 static int safexcel_aead_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_setkey() argument
406 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_setkey()
431 err = verify_aead_des_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey()
436 err = verify_aead_des3_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey()
1412 static int safexcel_skcipher_aesctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesctr_setkey() argument
1415 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesctr_setkey()
1487 static int safexcel_des_setkey(struct crypto_skcipher *ctfm, const u8 *key, in safexcel_des_setkey() argument
1490 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1494 ret = verify_skcipher_des_key(ctfm, key); in safexcel_des_setkey()
1586 static int safexcel_des3_ede_setkey(struct crypto_skcipher *ctfm, in safexcel_des3_ede_setkey() argument
1589 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1593 err = verify_skcipher_des3_key(ctfm, key); in safexcel_des3_ede_setkey()
2447 static int safexcel_skcipher_aesxts_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesxts_setkey() argument
2450 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesxts_setkey()
2458 ret = xts_verify_key(ctfm, key, len); in safexcel_skcipher_aesxts_setkey()
2561 static int safexcel_aead_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_gcm_setkey() argument
2564 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_gcm_setkey()
2593 crypto_cipher_set_flags(ctx->hkaes, crypto_aead_get_flags(ctfm) & in safexcel_aead_gcm_setkey()
2674 static int safexcel_aead_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_ccm_setkey() argument
2677 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_ccm_setkey()
2811 static int safexcel_skcipher_chacha20_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_chacha20_setkey() argument
2814 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2862 static int safexcel_aead_chachapoly_setkey(struct crypto_aead *ctfm, in safexcel_aead_chachapoly_setkey() argument
2865 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
3065 static int safexcel_skcipher_sm4_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4_setkey() argument
3068 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4_setkey()
3257 static int safexcel_skcipher_sm4ctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4ctr_setkey() argument
3260 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4ctr_setkey()
3268 return safexcel_skcipher_sm4_setkey(ctfm, key, len); in safexcel_skcipher_sm4ctr_setkey()
3370 static int safexcel_aead_fallback_setkey(struct crypto_aead *ctfm, in safexcel_aead_fallback_setkey() argument
3373 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setkey()
3378 safexcel_aead_setkey(ctfm, key, len); in safexcel_aead_fallback_setkey()
3381 static int safexcel_aead_fallback_setauthsize(struct crypto_aead *ctfm, in safexcel_aead_fallback_setauthsize() argument
3384 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setauthsize()
3551 static int safexcel_rfc4106_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4106_gcm_setkey() argument
3554 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4106_gcm_setkey()
3561 return safexcel_aead_gcm_setkey(ctfm, key, len); in safexcel_rfc4106_gcm_setkey()
3664 static int safexcel_rfc4309_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4309_ccm_setkey() argument
3667 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4309_ccm_setkey()
3678 return safexcel_aead_ccm_setkey(ctfm, key, len); in safexcel_rfc4309_ccm_setkey()