Lines Matching refs:tfm

21 	struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq);  in sun4i_ss_opti_poll()  local
22 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_opti_poll()
24 unsigned int ivsize = crypto_ablkcipher_ivsize(tfm); in sun4i_ss_opti_poll()
128 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cipher_poll() local
129 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_cipher_poll()
134 unsigned int ivsize = crypto_ablkcipher_ivsize(tfm); in sun4i_ss_cipher_poll()
321 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() local
322 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_cbc_aes_encrypt()
332 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() local
333 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_cbc_aes_decrypt()
344 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() local
345 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_ecb_aes_encrypt()
355 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() local
356 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_ecb_aes_decrypt()
367 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() local
368 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_cbc_des_encrypt()
378 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() local
379 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_cbc_des_decrypt()
390 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() local
391 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_ecb_des_encrypt()
401 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des_decrypt() local
402 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_ecb_des_decrypt()
413 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des3_encrypt() local
414 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_cbc_des3_encrypt()
424 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des3_decrypt() local
425 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_cbc_des3_decrypt()
436 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des3_encrypt() local
437 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_ecb_des3_encrypt()
447 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des3_decrypt() local
448 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_ecb_des3_decrypt()
456 int sun4i_ss_cipher_init(struct crypto_tfm *tfm) in sun4i_ss_cipher_init() argument
458 struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun4i_ss_cipher_init()
459 struct crypto_alg *alg = tfm->__crt_alg; in sun4i_ss_cipher_init()
467 tfm->crt_ablkcipher.reqsize = sizeof(struct sun4i_cipher_req_ctx); in sun4i_ss_cipher_init()
473 int sun4i_ss_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in sun4i_ss_aes_setkey() argument
476 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_aes_setkey()
491 crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in sun4i_ss_aes_setkey()
500 int sun4i_ss_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in sun4i_ss_des_setkey() argument
503 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_des_setkey()
511 crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in sun4i_ss_des_setkey()
515 flags = crypto_ablkcipher_get_flags(tfm); in sun4i_ss_des_setkey()
519 crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY); in sun4i_ss_des_setkey()
530 int sun4i_ss_des3_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in sun4i_ss_des3_setkey() argument
533 struct sun4i_tfm_ctx *op = crypto_ablkcipher_ctx(tfm); in sun4i_ss_des3_setkey()
538 crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in sun4i_ss_des3_setkey()