Lines Matching refs:out_buf
102 uint8_t *in_buf, *out_buf; member
180 u8 *out_buf; in pkcs1pad_encrypt_sign_complete() local
192 out_buf = kzalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_encrypt_sign_complete()
194 if (!out_buf) in pkcs1pad_encrypt_sign_complete()
198 out_buf + pad_len, len); in pkcs1pad_encrypt_sign_complete()
201 out_buf, ctx->key_size); in pkcs1pad_encrypt_sign_complete()
202 kzfree(out_buf); in pkcs1pad_encrypt_sign_complete()
283 u8 *out_buf; in pkcs1pad_decrypt_complete() local
293 out_buf = req_ctx->out_buf; in pkcs1pad_decrypt_complete()
295 if (out_buf[0] != 0x00) in pkcs1pad_decrypt_complete()
300 out_buf++; in pkcs1pad_decrypt_complete()
303 if (out_buf[0] != 0x02) in pkcs1pad_decrypt_complete()
307 if (out_buf[pos] == 0x00) in pkcs1pad_decrypt_complete()
322 out_buf + pos, req->dst_len); in pkcs1pad_decrypt_complete()
325 kzfree(req_ctx->out_buf); in pkcs1pad_decrypt_complete()
355 req_ctx->out_buf = kmalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_decrypt()
356 if (!req_ctx->out_buf) in pkcs1pad_decrypt()
359 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_decrypt()
445 u8 *out_buf; in pkcs1pad_verify_complete() local
455 out_buf = req_ctx->out_buf; in pkcs1pad_verify_complete()
457 if (out_buf[0] != 0x00) in pkcs1pad_verify_complete()
462 out_buf++; in pkcs1pad_verify_complete()
466 if (out_buf[0] != 0x01) in pkcs1pad_verify_complete()
470 if (out_buf[pos] != 0xff) in pkcs1pad_verify_complete()
473 if (pos < 9 || pos == dst_len || out_buf[pos] != 0x00) in pkcs1pad_verify_complete()
478 if (crypto_memneq(out_buf + pos, digest_info->data, in pkcs1pad_verify_complete()
496 req_ctx->out_buf + ctx->key_size, in pkcs1pad_verify_complete()
499 if (memcmp(req_ctx->out_buf + ctx->key_size, out_buf + pos, in pkcs1pad_verify_complete()
503 kzfree(req_ctx->out_buf); in pkcs1pad_verify_complete()
543 req_ctx->out_buf = kmalloc(ctx->key_size + req->dst_len, GFP_KERNEL); in pkcs1pad_verify()
544 if (!req_ctx->out_buf) in pkcs1pad_verify()
547 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_verify()