Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/fipsmodule/ec/
Dwnaf.c95 int window_val; in compute_wNAF() local
140 window_val = scalar->d[0] & mask; in compute_wNAF()
143 while (window_val != 0 || j + w + 1 < len) { in compute_wNAF()
148 if (window_val & 1) { in compute_wNAF()
151 if (window_val & bit) { in compute_wNAF()
152 digit = window_val - next_bit; /* -2^w < digit < 0 */ in compute_wNAF()
161 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ in compute_wNAF()
165 digit = window_val; /* 0 < digit < 2^w */ in compute_wNAF()
173 window_val -= digit; in compute_wNAF()
177 if (window_val != 0 && window_val != next_bit && window_val != bit) { in compute_wNAF()
[all …]