Home
last modified time | relevance | path

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

/crypto/
Drsa-pkcs1pad.c178 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); in pkcs1pad_encrypt_sign_complete() local
186 len = req_ctx->child_req.dst_len; in pkcs1pad_encrypt_sign_complete()
208 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete()
231 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); in pkcs1pad_encrypt() local
246 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_encrypt()
248 if (!req_ctx->in_buf) in pkcs1pad_encrypt()
252 req_ctx->in_buf[0] = 0x02; in pkcs1pad_encrypt()
254 req_ctx->in_buf[i] = 1 + prandom_u32_max(255); in pkcs1pad_encrypt()
255 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_encrypt()
257 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_encrypt()
[all …]