Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/ec/
Dwnaf.c151 int window_val; in compute_wNAF() local
198 window_val = scalar->d[0] & mask; in compute_wNAF()
200 while ((window_val != 0) || in compute_wNAF()
207 if (window_val & 1) { in compute_wNAF()
210 if (window_val & bit) { in compute_wNAF()
211 digit = window_val - next_bit; /* -2^w < digit < 0 */ in compute_wNAF()
220 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ in compute_wNAF()
224 digit = window_val; /* 0 < digit < 2^w */ in compute_wNAF()
232 window_val -= digit; in compute_wNAF()
237 if (window_val != 0 && window_val != next_bit && window_val != bit) { in compute_wNAF()
[all …]