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()
1411 static int safexcel_skcipher_aesctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesctr_setkey() argument
1414 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesctr_setkey()
1486 static int safexcel_des_setkey(struct crypto_skcipher *ctfm, const u8 *key, in safexcel_des_setkey() argument
1489 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1493 ret = verify_skcipher_des_key(ctfm, key); in safexcel_des_setkey()
1585 static int safexcel_des3_ede_setkey(struct crypto_skcipher *ctfm, in safexcel_des3_ede_setkey() argument
1588 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1592 err = verify_skcipher_des3_key(ctfm, key); in safexcel_des3_ede_setkey()
2446 static int safexcel_skcipher_aesxts_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesxts_setkey() argument
2449 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesxts_setkey()
2457 ret = xts_verify_key(ctfm, key, len); in safexcel_skcipher_aesxts_setkey()
2560 static int safexcel_aead_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_gcm_setkey() argument
2563 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_gcm_setkey()
2592 crypto_cipher_set_flags(ctx->hkaes, crypto_aead_get_flags(ctfm) & in safexcel_aead_gcm_setkey()
2673 static int safexcel_aead_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_ccm_setkey() argument
2676 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_ccm_setkey()
2810 static int safexcel_skcipher_chacha20_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_chacha20_setkey() argument
2813 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2861 static int safexcel_aead_chachapoly_setkey(struct crypto_aead *ctfm, in safexcel_aead_chachapoly_setkey() argument
2864 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
3064 static int safexcel_skcipher_sm4_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4_setkey() argument
3067 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4_setkey()
3256 static int safexcel_skcipher_sm4ctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_sm4ctr_setkey() argument
3259 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_sm4ctr_setkey()
3267 return safexcel_skcipher_sm4_setkey(ctfm, key, len); in safexcel_skcipher_sm4ctr_setkey()
3369 static int safexcel_aead_fallback_setkey(struct crypto_aead *ctfm, in safexcel_aead_fallback_setkey() argument
3372 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setkey()
3377 safexcel_aead_setkey(ctfm, key, len); in safexcel_aead_fallback_setkey()
3380 static int safexcel_aead_fallback_setauthsize(struct crypto_aead *ctfm, in safexcel_aead_fallback_setauthsize() argument
3383 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setauthsize()
3550 static int safexcel_rfc4106_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4106_gcm_setkey() argument
3553 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4106_gcm_setkey()
3560 return safexcel_aead_gcm_setkey(ctfm, key, len); in safexcel_rfc4106_gcm_setkey()
3663 static int safexcel_rfc4309_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_rfc4309_ccm_setkey() argument
3666 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4309_ccm_setkey()
3677 return safexcel_aead_ccm_setkey(ctfm, key, len); in safexcel_rfc4309_ccm_setkey()