Rewrite BN_lebin2bn() using CBS.
authorjsing <jsing@openbsd.org>
Wed, 17 Apr 2024 14:45:46 +0000 (14:45 +0000)
committerjsing <jsing@openbsd.org>
Wed, 17 Apr 2024 14:45:46 +0000 (14:45 +0000)
commit0a50a6dbf53b3861521313a7c7bc17a4fea9e633
tree435c0db7ab4c4feaf63deac9fada43f28b2632b5
parentf66cfe6cc26f0668e4beb8a5c38b2b152d34e077
Rewrite BN_lebin2bn() using CBS.

We get an implementation of this for free by having bn_bin2bn_cbs() use
CBS_get_u8() instead of CBS_get_last_u8().

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