Home
last modified time | relevance | path

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

/illumos-gate/usr/src/common/bignum/
H A Dbignumimpl.c232 number->value = big_malloc(BIGNUM_WORDSIZE * size); in big_init()
268 number->value = big_malloc(BIGNUM_WORDSIZE * size); in big_init1()
294 big_free(number->value, BIGNUM_WORDSIZE * number->size); in big_finish()
321 offs = slen % BIGNUM_WORDSIZE; in bytestring2bignum()
322 bn->len = slen / BIGNUM_WORDSIZE; in bytestring2bignum()
324 for (i = 0; i < slen / BIGNUM_WORDSIZE; i++) { in bytestring2bignum()
325 knwordp = &(kn[slen - BIGNUM_WORDSIZE * (i + 1)]); in bytestring2bignum()
327 for (j = 1; j < BIGNUM_WORDSIZE; j++) { in bytestring2bignum()
357 if (len < BIGNUM_WORDSIZE * bn->len) { in bignum2bytestring()
358 for (i = 0; i < slen / BIGNUM_WORDSIZE; i++) { in bignum2bytestring()
[all …]
H A Dbignum.h71 #define BIGNUM_WORDSIZE (BIG_CHUNK_SIZE / BITSINBYTE) /* word size in bytes */ macro