Home
last modified time | relevance | path

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

/Linux-v4.19/crypto/
Drsa-pkcs1pad.c237 unsigned int i, ps_end; in pkcs1pad_encrypt() local
255 ps_end = ctx->key_size - req->src_len - 2; in pkcs1pad_encrypt()
257 for (i = 1; i < ps_end; i++) in pkcs1pad_encrypt()
259 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_encrypt()
399 unsigned int ps_end, digest_size = 0; in pkcs1pad_sign() local
419 ps_end = ctx->key_size - digest_size - req->src_len - 2; in pkcs1pad_sign()
421 memset(req_ctx->in_buf + 1, 0xff, ps_end - 1); in pkcs1pad_sign()
422 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_sign()
424 memcpy(req_ctx->in_buf + ps_end + 1, digest_info->data, in pkcs1pad_sign()