Lines Matching refs:nlen
249 size_t nlen; in rsasve_generate() local
252 nlen = RSA_size(prsactx->rsa); in rsasve_generate()
255 if (nlen == 0) { in rsasve_generate()
262 *outlen = nlen; in rsasve_generate()
264 *secretlen = nlen; in rsasve_generate()
271 if (!rsasve_gen_rand_bytes(prsactx->rsa, secret, nlen)) in rsasve_generate()
275 ret = RSA_public_encrypt(nlen, secret, out, prsactx->rsa, RSA_NO_PADDING); in rsasve_generate()
279 *outlen = nlen; in rsasve_generate()
281 *secretlen = nlen; in rsasve_generate()
283 OPENSSL_cleanse(secret, nlen); in rsasve_generate()
296 size_t nlen; in rsasve_recover() local
299 nlen = RSA_size(prsactx->rsa); in rsasve_recover()
302 if (nlen == 0) { in rsasve_recover()
306 *outlen = nlen; in rsasve_recover()
311 if (inlen != nlen) { in rsasve_recover()