Lines Matching refs:tfm

954 	ctx = crypto_tfm_ctx(areq->tfm);  in atmel_aes_handle_queue()
1155 static int atmel_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in atmel_aes_setkey() argument
1158 struct atmel_aes_base_ctx *ctx = crypto_skcipher_ctx(tfm); in atmel_aes_setkey()
1261 static int atmel_aes_init_tfm(struct crypto_skcipher *tfm) in atmel_aes_init_tfm() argument
1263 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in atmel_aes_init_tfm()
1270 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx)); in atmel_aes_init_tfm()
1277 static int atmel_aes_ctr_init_tfm(struct crypto_skcipher *tfm) in atmel_aes_ctr_init_tfm() argument
1279 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in atmel_aes_ctr_init_tfm()
1286 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx)); in atmel_aes_ctr_init_tfm()
1508 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_gcm_start() local
1510 size_t ivsize = crypto_aead_ivsize(tfm); in atmel_aes_gcm_start()
1545 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_gcm_process() local
1550 authsize = crypto_aead_authsize(tfm); in atmel_aes_gcm_process()
1696 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_gcm_finalize() local
1708 authsize = crypto_aead_authsize(tfm); in atmel_aes_gcm_finalize()
1736 static int atmel_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, in atmel_aes_gcm_setkey() argument
1739 struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm); in atmel_aes_gcm_setkey()
1752 static int atmel_aes_gcm_setauthsize(struct crypto_aead *tfm, in atmel_aes_gcm_setauthsize() argument
1768 static int atmel_aes_gcm_init(struct crypto_aead *tfm) in atmel_aes_gcm_init() argument
1770 struct atmel_aes_gcm_ctx *ctx = crypto_aead_ctx(tfm); in atmel_aes_gcm_init()
1777 crypto_aead_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx)); in atmel_aes_gcm_init()
1870 static int atmel_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in atmel_aes_xts_setkey() argument
1873 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in atmel_aes_xts_setkey()
1876 err = xts_verify_key(tfm, key, keylen); in atmel_aes_xts_setkey()
1881 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags & in atmel_aes_xts_setkey()
1904 static int atmel_aes_xts_init_tfm(struct crypto_skcipher *tfm) in atmel_aes_xts_init_tfm() argument
1906 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in atmel_aes_xts_init_tfm()
1908 const char *tfm_name = crypto_tfm_alg_name(&tfm->base); in atmel_aes_xts_init_tfm()
1919 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx) + in atmel_aes_xts_init_tfm()
1927 static void atmel_aes_xts_exit_tfm(struct crypto_skcipher *tfm) in atmel_aes_xts_exit_tfm() argument
1929 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in atmel_aes_xts_exit_tfm()
1977 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_authenc_start() local
1978 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); in atmel_aes_authenc_start()
2072 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_authenc_final() local
2083 authsize = crypto_aead_authsize(tfm); in atmel_aes_authenc_final()
2096 static int atmel_aes_authenc_setkey(struct crypto_aead *tfm, const u8 *key, in atmel_aes_authenc_setkey() argument
2099 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); in atmel_aes_authenc_setkey()
2112 crypto_aead_get_flags(tfm)); in atmel_aes_authenc_setkey()
2130 static int atmel_aes_authenc_init_tfm(struct crypto_aead *tfm, in atmel_aes_authenc_init_tfm() argument
2133 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); in atmel_aes_authenc_init_tfm()
2145 crypto_aead_set_reqsize(tfm, (sizeof(struct atmel_aes_authenc_reqctx) + in atmel_aes_authenc_init_tfm()
2153 static int atmel_aes_authenc_hmac_sha1_init_tfm(struct crypto_aead *tfm) in atmel_aes_authenc_hmac_sha1_init_tfm() argument
2155 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA1); in atmel_aes_authenc_hmac_sha1_init_tfm()
2158 static int atmel_aes_authenc_hmac_sha224_init_tfm(struct crypto_aead *tfm) in atmel_aes_authenc_hmac_sha224_init_tfm() argument
2160 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA224); in atmel_aes_authenc_hmac_sha224_init_tfm()
2163 static int atmel_aes_authenc_hmac_sha256_init_tfm(struct crypto_aead *tfm) in atmel_aes_authenc_hmac_sha256_init_tfm() argument
2165 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA256); in atmel_aes_authenc_hmac_sha256_init_tfm()
2168 static int atmel_aes_authenc_hmac_sha384_init_tfm(struct crypto_aead *tfm) in atmel_aes_authenc_hmac_sha384_init_tfm() argument
2170 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA384); in atmel_aes_authenc_hmac_sha384_init_tfm()
2173 static int atmel_aes_authenc_hmac_sha512_init_tfm(struct crypto_aead *tfm) in atmel_aes_authenc_hmac_sha512_init_tfm() argument
2175 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA512); in atmel_aes_authenc_hmac_sha512_init_tfm()
2178 static void atmel_aes_authenc_exit_tfm(struct crypto_aead *tfm) in atmel_aes_authenc_exit_tfm() argument
2180 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); in atmel_aes_authenc_exit_tfm()
2189 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_authenc_crypt() local
2190 struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm); in atmel_aes_authenc_crypt()
2191 u32 authsize = crypto_aead_authsize(tfm); in atmel_aes_authenc_crypt()