summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ecx_methods.c
diff options
context:
space:
mode:
authortb <>2023-11-07 16:46:12 +0000
committertb <>2023-11-07 16:46:12 +0000
commit968726838ae9979ba05b90171b914e6674d6b79a (patch)
tree630f9db768e44e0ae7f7438ab6dbdd05831da52f /src/lib/libcrypto/ec/ecx_methods.c
parent503d20503041a48516c535bc6ff9a50125450361 (diff)
downloadopenbsd-968726838ae9979ba05b90171b914e6674d6b79a.tar.gz
openbsd-968726838ae9979ba05b90171b914e6674d6b79a.tar.bz2
openbsd-968726838ae9979ba05b90171b914e6674d6b79a.zip
Wrap hex.DecodeString() into mustDecodeHexString()
The hex decoding is only done from the JSON files provided by the wycheproof-testvectors package. Failure is always fatal. So there is no need for repeated error checks, and we can use an ergonomic wrapper. Also rework the calculation of the message digest from input data this had a similar deficit. All in all this shaves off about 10% of the code and removes a lot of tedious repetition.
Diffstat (limited to 'src/lib/libcrypto/ec/ecx_methods.c')
0 files changed, 0 insertions, 0 deletions