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
commitcefa9a1d9f2460838d8d3687457363dc5f30f660 (patch)
tree630f9db768e44e0ae7f7438ab6dbdd05831da52f /src/lib/libcrypto/ec/ecx_methods.c
parentc04812f8ed8b3ee4fd760e7d319f9676c9128010 (diff)
downloadopenbsd-cefa9a1d9f2460838d8d3687457363dc5f30f660.tar.gz
openbsd-cefa9a1d9f2460838d8d3687457363dc5f30f660.tar.bz2
openbsd-cefa9a1d9f2460838d8d3687457363dc5f30f660.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