Home
last modified time | relevance | path

Searched refs:skreq (Results 1 – 5 of 5) sorted by relevance

/crypto/
Dauthenc.c181 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc()
183 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc()
184 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_copy_assoc()
186 skcipher_request_set_crypt(skreq, req->src, req->dst, req->assoclen, in crypto_authenc_copy_assoc()
189 return crypto_skcipher_encrypt(skreq); in crypto_authenc_copy_assoc()
201 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local
217 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt()
218 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_encrypt()
220 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_encrypt()
222 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_encrypt()
[all …]
Dauthencesn.c171 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_esn_copy()
173 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_esn_copy()
174 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_copy()
176 skcipher_request_set_crypt(skreq, req->src, req->dst, len, NULL); in crypto_authenc_esn_copy()
178 return crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_copy()
186 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() local
207 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt()
208 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_encrypt()
210 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt()
212 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_encrypt()
[all …]
Dccm.c49 struct skcipher_request skreq; member
290 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_encrypt() local
309 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt()
310 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt()
312 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
313 err = crypto_skcipher_encrypt(skreq); in crypto_ccm_encrypt()
350 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_decrypt() local
374 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_decrypt()
375 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_decrypt()
377 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
[all …]
Dgcm.c73 struct skcipher_request skreq; member
183 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() local
188 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt()
189 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt()
454 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() local
459 skcipher_request_set_callback(skreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt()
461 return crypto_skcipher_encrypt(skreq) ?: in crypto_gcm_encrypt()
493 struct skcipher_request *skreq = &pctx->u.skreq; in gcm_dec_hash_continue() local
497 skcipher_request_set_callback(skreq, flags, gcm_decrypt_done, req); in gcm_dec_hash_continue()
498 return crypto_skcipher_decrypt(skreq) ?: crypto_gcm_verify(req); in gcm_dec_hash_continue()
Dalgif_aead.c78 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, null_tfm); in crypto_aead_copy_sgl()
80 skcipher_request_set_sync_tfm(skreq, null_tfm); in crypto_aead_copy_sgl()
81 skcipher_request_set_callback(skreq, CRYPTO_TFM_REQ_MAY_SLEEP, in crypto_aead_copy_sgl()
83 skcipher_request_set_crypt(skreq, src, dst, len, NULL); in crypto_aead_copy_sgl()
85 return crypto_skcipher_encrypt(skreq); in crypto_aead_copy_sgl()