Lines Matching refs:in_buf
126 uint8_t *in_buf, *out_buf; member
231 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete()
268 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_encrypt()
270 if (!req_ctx->in_buf) in pkcs1pad_encrypt()
274 req_ctx->in_buf[0] = 0x02; in pkcs1pad_encrypt()
276 req_ctx->in_buf[i] = get_random_u32_inclusive(1, 255); in pkcs1pad_encrypt()
277 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_encrypt()
279 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_encrypt()
422 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_sign()
424 if (!req_ctx->in_buf) in pkcs1pad_sign()
428 req_ctx->in_buf[0] = 0x01; in pkcs1pad_sign()
429 memset(req_ctx->in_buf + 1, 0xff, ps_end - 1); in pkcs1pad_sign()
430 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_sign()
433 memcpy(req_ctx->in_buf + ps_end + 1, digest_info->data, in pkcs1pad_sign()
436 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_sign()