Searched refs:seedbytes (Results 1 – 1 of 1) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_generate_pqg.c | 32 unsigned long L, N, n, outbytes, seedbytes, counter, j, i; in _dsa_make_params() local 75 seedbytes = group_size; in _dsa_make_params() 116 …if ((sbuf = XMALLOC(seedbytes)) == NULL) { err = CRYPT_MEM; … in _dsa_make_params() 125 if ((err = mp_2expt(t2seedlen, seedbytes*8)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params() 131 …if (prng_descriptor[wprng]->read(sbuf, seedbytes, prng) != seedbytes) { err = CRYPT_ERROR_RE… in _dsa_make_params() 133 if ((err = hash_memory(hash, sbuf, seedbytes, digest, &i)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params() 143 if ((err = mp_read_unsigned_bin(seedinc, sbuf, seedbytes)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params() 150 …if ((i = mp_unsigned_bin_size(seedinc)) > seedbytes) { err = CRYPT_INVALID_ARG… in _dsa_make_params() 151 zeromem(sbuf, seedbytes); in _dsa_make_params() 152 if ((err = mp_to_unsigned_bin(seedinc, sbuf + seedbytes-i)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params() [all …]
|
Completed in 4 milliseconds