Home
last modified time | relevance | path

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

/openbmc/linux/crypto/
H A Drsa-pkcs1pad.c232 unsigned int i, ps_end; in pkcs1pad_encrypt() local
250 ps_end = ctx->key_size - req->src_len - 2; in pkcs1pad_encrypt()
252 for (i = 1; i < ps_end; i++) in pkcs1pad_encrypt()
254 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_encrypt()
383 unsigned int ps_end, digest_info_size = 0; in pkcs1pad_sign() local
404 ps_end = ctx->key_size - digest_info_size - req->src_len - 2; in pkcs1pad_sign()
406 memset(req_ctx->in_buf + 1, 0xff, ps_end - 1); in pkcs1pad_sign()
407 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_sign()
410 memcpy(req_ctx->in_buf + ps_end + 1, digest_info->data, in pkcs1pad_sign()