Lines Matching refs:out_buf

105 	uint8_t *in_buf, *out_buf;  member
183 u8 *out_buf; in pkcs1pad_encrypt_sign_complete() local
195 out_buf = kzalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_encrypt_sign_complete()
197 if (!out_buf) in pkcs1pad_encrypt_sign_complete()
201 out_buf + pad_len, len); in pkcs1pad_encrypt_sign_complete()
204 out_buf, ctx->key_size); in pkcs1pad_encrypt_sign_complete()
205 kzfree(out_buf); in pkcs1pad_encrypt_sign_complete()
264 req_ctx->out_buf = kmalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_encrypt()
265 if (!req_ctx->out_buf) { in pkcs1pad_encrypt()
270 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_encrypt()
295 u8 *out_buf; in pkcs1pad_decrypt_complete() local
305 out_buf = req_ctx->out_buf; in pkcs1pad_decrypt_complete()
307 if (out_buf[0] != 0x00) in pkcs1pad_decrypt_complete()
312 out_buf++; in pkcs1pad_decrypt_complete()
315 if (out_buf[0] != 0x02) in pkcs1pad_decrypt_complete()
319 if (out_buf[pos] == 0x00) in pkcs1pad_decrypt_complete()
334 out_buf + pos, req->dst_len); in pkcs1pad_decrypt_complete()
337 kzfree(req_ctx->out_buf); in pkcs1pad_decrypt_complete()
367 req_ctx->out_buf = kmalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_decrypt()
368 if (!req_ctx->out_buf) in pkcs1pad_decrypt()
371 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_decrypt()
455 u8 *out_buf; in pkcs1pad_verify_complete() local
465 out_buf = req_ctx->out_buf; in pkcs1pad_verify_complete()
467 if (out_buf[0] != 0x00) in pkcs1pad_verify_complete()
472 out_buf++; in pkcs1pad_verify_complete()
476 if (out_buf[0] != 0x01) in pkcs1pad_verify_complete()
480 if (out_buf[pos] != 0xff) in pkcs1pad_verify_complete()
483 if (pos < 9 || pos == dst_len || out_buf[pos] != 0x00) in pkcs1pad_verify_complete()
487 if (crypto_memneq(out_buf + pos, digest_info->data, digest_info->size)) in pkcs1pad_verify_complete()
501 out_buf + pos, req->dst_len); in pkcs1pad_verify_complete()
503 kzfree(req_ctx->out_buf); in pkcs1pad_verify_complete()
541 req_ctx->out_buf = kmalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_verify()
542 if (!req_ctx->out_buf) in pkcs1pad_verify()
545 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_verify()