Lines Matching +full:mod +full:- +full:12 +full:b
2 * FIPS 186-2 PRF for libcrypto
3 * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
14 /* OpenSSL 3.0 has deprecated the low-level SHA1 functions and does not
16 * SHA1_Transform() function. Use the internal SHA-1 implementation instead
18 #include "sha1-internal.c"
70 os_memset(xkey + seed_len, 0, sizeof(xkey) - seed_len); in fips186_2_prf()
74 /* FIPS 186-2 + change notice 1 */ in fips186_2_prf()
87 /* XVAL = (XKEY + XSEED_j) mod 2^b */ in fips186_2_prf()
95 WPA_PUT_BE32(xpos + 12, _t[3]); in fips186_2_prf()
98 /* XKEY = (1 + XKEY + w_i) mod 2^b */ in fips186_2_prf()
100 for (k = 19; k >= 0; k--) { in fips186_2_prf()