Lines Matching refs:cipher
747 static int spacc_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in spacc_des_setkey() argument
750 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_des_setkey()
755 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in spacc_des_setkey()
760 (crypto_ablkcipher_get_flags(cipher) & CRYPTO_TFM_REQ_WEAK_KEY)) { in spacc_des_setkey()
775 static int spacc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in spacc_aes_setkey() argument
778 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_aes_setkey()
783 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in spacc_aes_setkey()
803 cipher->base.crt_flags & in spacc_aes_setkey()
824 static int spacc_kasumi_f8_setkey(struct crypto_ablkcipher *cipher, in spacc_kasumi_f8_setkey() argument
827 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_kasumi_f8_setkey()
832 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in spacc_kasumi_f8_setkey()
1047 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(req); in spacc_ablk_encrypt() local
1048 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_ablk_encrypt()
1056 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(req); in spacc_ablk_decrypt() local
1057 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_ablk_decrypt()