Lines Matching refs:out_buf
103 uint8_t *in_buf, *out_buf; member
181 u8 *out_buf; in pkcs1pad_encrypt_sign_complete() local
193 out_buf = kzalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_encrypt_sign_complete()
195 if (!out_buf) in pkcs1pad_encrypt_sign_complete()
199 out_buf + pad_len, len); in pkcs1pad_encrypt_sign_complete()
202 out_buf, ctx->key_size); in pkcs1pad_encrypt_sign_complete()
203 kfree_sensitive(out_buf); in pkcs1pad_encrypt_sign_complete()
284 u8 *out_buf; in pkcs1pad_decrypt_complete() local
294 out_buf = req_ctx->out_buf; in pkcs1pad_decrypt_complete()
296 if (out_buf[0] != 0x00) in pkcs1pad_decrypt_complete()
301 out_buf++; in pkcs1pad_decrypt_complete()
304 if (out_buf[0] != 0x02) in pkcs1pad_decrypt_complete()
308 if (out_buf[pos] == 0x00) in pkcs1pad_decrypt_complete()
323 out_buf + pos, req->dst_len); in pkcs1pad_decrypt_complete()
326 kfree_sensitive(req_ctx->out_buf); in pkcs1pad_decrypt_complete()
356 req_ctx->out_buf = kmalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_decrypt()
357 if (!req_ctx->out_buf) in pkcs1pad_decrypt()
360 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_decrypt()
446 u8 *out_buf; in pkcs1pad_verify_complete() local
456 out_buf = req_ctx->out_buf; in pkcs1pad_verify_complete()
458 if (out_buf[0] != 0x00) in pkcs1pad_verify_complete()
463 out_buf++; in pkcs1pad_verify_complete()
467 if (out_buf[0] != 0x01) in pkcs1pad_verify_complete()
471 if (out_buf[pos] != 0xff) in pkcs1pad_verify_complete()
474 if (pos < 9 || pos == dst_len || out_buf[pos] != 0x00) in pkcs1pad_verify_complete()
479 if (crypto_memneq(out_buf + pos, digest_info->data, in pkcs1pad_verify_complete()
497 req_ctx->out_buf + ctx->key_size, in pkcs1pad_verify_complete()
500 if (memcmp(req_ctx->out_buf + ctx->key_size, out_buf + pos, in pkcs1pad_verify_complete()
504 kfree_sensitive(req_ctx->out_buf); in pkcs1pad_verify_complete()
544 req_ctx->out_buf = kmalloc(ctx->key_size + req->dst_len, GFP_KERNEL); in pkcs1pad_verify()
545 if (!req_ctx->out_buf) in pkcs1pad_verify()
548 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_verify()