Lines Matching refs:one
93 struct crypto_bignum *tmp, *pm1, *one; in dragonfly_get_rand_1_to_p_1() local
97 one = crypto_bignum_init_set((const u8 *) "\x01", 1); in dragonfly_get_rand_1_to_p_1()
98 if (!tmp || !pm1 || !one || in dragonfly_get_rand_1_to_p_1()
99 crypto_bignum_sub(prime, one, pm1) < 0 || in dragonfly_get_rand_1_to_p_1()
101 crypto_bignum_add(tmp, one, tmp) < 0) { in dragonfly_get_rand_1_to_p_1()
107 crypto_bignum_deinit(one, 0); in dragonfly_get_rand_1_to_p_1()
226 struct crypto_bignum *tmp, *one; in dragonfly_sqrt() local
236 one = crypto_bignum_init_uint(1); in dragonfly_sqrt()
241 !tmp || !one || in dragonfly_sqrt()
243 crypto_bignum_add(prime, one, tmp) < 0 || in dragonfly_sqrt()
250 crypto_bignum_deinit(one, 0); in dragonfly_sqrt()