Searched refs:seedbytes (Results 1 – 1 of 1) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_generate_pqg.c | 25 unsigned long L, N, n, outbytes, seedbytes, counter, j, i; in s_dsa_make_params() local 69 seedbytes = group_size; in s_dsa_make_params() 109 …if ((sbuf = XMALLOC(seedbytes)) == NULL) { err = CRYPT_MEM; … in s_dsa_make_params() 118 if ((err = mp_2expt(t2seedlen, seedbytes*8)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params() 124 …if (prng_descriptor[wprng]->read(sbuf, seedbytes, prng) != seedbytes) { err = CRYPT_ERROR_RE… in s_dsa_make_params() 126 if ((err = hash_memory(hash, sbuf, seedbytes, digest, &i)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params() 136 if ((err = mp_read_unsigned_bin(seedinc, sbuf, seedbytes)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params() 143 …if ((i = mp_unsigned_bin_size(seedinc)) > seedbytes) { err = CRYPT_INVALID_ARG… in s_dsa_make_params() 144 zeromem(sbuf, seedbytes); in s_dsa_make_params() 145 if ((err = mp_to_unsigned_bin(seedinc, sbuf + seedbytes-i)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params() [all …]
|
Completed in 2 milliseconds