Home
last modified time | relevance | path

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

/mbedtls-latest/3rdparty/p256-m/p256-m/
Dp256-m.c490 static const m256_mod p256_n = { variable
1077 u256_sub(s_odd, p256_n.m, s); /* no carry, result still in [1, n-1] */ in scalar_mult()
1145 uint32_t lt_n = u256_sub(r, s, p256_n.m); in scalar_from_bytes()
1282 uint32_t c = u256_sub(t, x, p256_n.m); in ecdsa_m256_mod_n()
1317 m256_prep(z, &p256_n); in ecdsa_m256_from_hash()
1346 m256_prep(k, &p256_n); in p256_ecdsa_sign()
1360 m256_prep(xr, &p256_n); in p256_ecdsa_sign()
1374 m256_prep(t4, &p256_n); /* t4 = dU (Montgomery domain) */ in p256_ecdsa_sign()
1376 m256_inv(k, k, &p256_n); /* k^-1 */ in p256_ecdsa_sign()
1377 m256_mul(t4, xr, t4, &p256_n); /* t4 = r * dU */ in p256_ecdsa_sign()
[all …]