Factor out a bit of ugly code that truncates the digest to the order_bits
authortb <tb@openbsd.org>
Tue, 10 Jul 2018 21:36:02 +0000 (21:36 +0000)
committertb <tb@openbsd.org>
Tue, 10 Jul 2018 21:36:02 +0000 (21:36 +0000)
commitd661569b5a4512d635997b6d03a657b043a8171b
treec3323c0d5dd14a34ae7dc0c0ad915ada950c404c
parentb165ff272f358c6ce78cfdf0c0a8f992f9ec31db
Factor out a bit of ugly code that truncates the digest to the order_bits
leftmost bits of a longer digest, according to FIPS 183-6, 6.4. Eliminate
a microoptimization that only converts the relevant part of the digest to
a bignum.

ok beck, jsing
lib/libcrypto/ecdsa/ecs_ossl.c