Lines Matching refs:nlen
249 size_t nlen;
251 /* Step (1): nlen = Ceil(len(n)/8) */
252 nlen = RSA_size(prsactx->rsa);
255 if (nlen == 0) {
262 *outlen = nlen;
264 *secretlen = nlen;
268 * Step (2): Generate a random byte string z of nlen bytes where
271 if (!rsasve_gen_rand_bytes(prsactx->rsa, secret, nlen))
275 ret = RSA_public_encrypt(nlen, secret, out, prsactx->rsa, RSA_NO_PADDING);
279 *outlen = nlen;
281 *secretlen = nlen;
283 OPENSSL_cleanse(secret, nlen);
296 size_t nlen;
299 nlen = RSA_size(prsactx->rsa);
302 if (nlen == 0) {
306 *outlen = nlen;
310 /* Step (2): check the input ciphertext 'inlen' matches the nlen */
311 if (inlen != nlen) {