Check for non-zero length rather than a zero value.
authorjsing <jsing@openbsd.org>
Sat, 24 Jun 2023 16:10:23 +0000 (16:10 +0000)
committerjsing <jsing@openbsd.org>
Sat, 24 Jun 2023 16:10:23 +0000 (16:10 +0000)
commitbc591847e51645c65de8e7dd9927cade552c8ff6
tree0ff6331d98a540c44c53af81c739e6a05c74f3ea
parent89b63e67c9599df152379da0271869384a946834
Check for non-zero length rather than a zero value.

This removes a data dependent timing path from BN_sqr().

ok tb@
lib/libcrypto/bn/bn_sqr.c