Lines Matching refs:one
90 struct crypto_bignum *tmp, *pm1, *one; in dragonfly_get_rand_1_to_p_1() local
94 one = crypto_bignum_init_set((const u8 *) "\x01", 1); in dragonfly_get_rand_1_to_p_1()
95 if (!tmp || !pm1 || !one || in dragonfly_get_rand_1_to_p_1()
96 crypto_bignum_sub(prime, one, pm1) < 0 || in dragonfly_get_rand_1_to_p_1()
98 crypto_bignum_add(tmp, one, tmp) < 0) { in dragonfly_get_rand_1_to_p_1()
104 crypto_bignum_deinit(one, 0); in dragonfly_get_rand_1_to_p_1()
223 struct crypto_bignum *tmp, *one; in dragonfly_sqrt() local
233 one = crypto_bignum_init_uint(1); in dragonfly_sqrt()
238 !tmp || !one || in dragonfly_sqrt()
240 crypto_bignum_add(prime, one, tmp) < 0 || in dragonfly_sqrt()
247 crypto_bignum_deinit(one, 0); in dragonfly_sqrt()