Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_sign_hash.c42 unsigned long pbits, pbytes, i, shift_right; in ecc_sign_hash_ex() local
71 shift_right = 8 - pbits % 8; in ecc_sign_hash_ex()
74 ch = (in[i] << (8-shift_right)); in ecc_sign_hash_ex()
75 buf[i] = buf[i] ^ (in[i] >> shift_right); in ecc_sign_hash_ex()
A Decc_verify_hash.c40 unsigned long pbits, pbytes, i, shift_right; in ecc_verify_hash_ex() local
145 shift_right = 8 - pbits % 8; in ecc_verify_hash_ex()
148 ch = (hash[i] << (8-shift_right)); in ecc_verify_hash_ex()
149 buf[i] = buf[i] ^ (hash[i] >> shift_right); in ecc_verify_hash_ex()
A Decc_recover_key.c43 unsigned long pbits, pbytes, i, shift_right; in ecc_recover_key() local
165 shift_right = 8 - pbits % 8; in ecc_recover_key()
168 ch = (hash[i] << (8-shift_right)); in ecc_recover_key()
169 buf[i] = buf[i] ^ (hash[i] >> shift_right); in ecc_recover_key()

Completed in 6 milliseconds