Lines Matching defs:words
188 * In other words, it's the caller's responsibility to ensure `a` has
265 /* The caller MUST check that words > b->dmax before calling this */
266 static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
270 if (words > (INT_MAX / (4 * BN_BITS2))) {
279 a = OPENSSL_secure_zalloc(words * sizeof(*a));
281 a = OPENSSL_zalloc(words * sizeof(*a));
287 assert(b->top <= words);
296 * ensures that 'b' has enough room for a 'words' word number and initialises
302 BIGNUM *bn_expand2(BIGNUM *b, int words)
304 if (words > b->dmax) {
305 BN_ULONG *a = bn_expand_internal(b, words);
311 b->dmax = words;
823 * nwords is the number of words to swap.
851 * of it does reside in read-only segment. In other words observation of
1019 BIGNUM *bn_wexpand(BIGNUM *a, int words)
1021 return (words <= a->dmax) ? a : bn_expand2(a, words);