Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_generate_pqg.c25 unsigned long L, N, n, outbytes, seedbytes, counter, j, i; in s_dsa_make_params() local
104 outbytes = hash_descriptor[hash]->hashsize; in s_dsa_make_params()
106 n = ((L + outbytes*8 - 1) / (outbytes*8)) - 1; in s_dsa_make_params()
108 …if ((wbuf = XMALLOC((n+1)*outbytes)) == NULL) { err = CRYPT_MEM; … in s_dsa_make_params()
125 i = outbytes; in s_dsa_make_params()
127 if ((err = mp_read_unsigned_bin(U, digest, outbytes)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
146 i = outbytes; in s_dsa_make_params()
147 err = hash_memory(hash, sbuf, seedbytes, wbuf+(n-j)*outbytes, &i); in s_dsa_make_params()
150 if ((err = mp_read_unsigned_bin(W, wbuf, (n+1)*outbytes)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()

Completed in 2 milliseconds