Commit b9577984 authored by Emilia Kasper's avatar Emilia Kasper
Browse files

Curve25519: avoid undefined behaviour



Appease the sanitizer: avoid left shifts of negative values.

This could've been done entirely with casts to uint and back,
but using masks seemed slightly more readable.

There are also implementation-defined signed right shifts in this
code. Those remain.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent a66ec57c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment