summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md4
diff options
context:
space:
mode:
authortb <>2023-07-13 20:59:10 +0000
committertb <>2023-07-13 20:59:10 +0000
commit621f19e56aa0abe5b71795a2f7e1fae064f180d9 (patch)
tree740cee1b580b36bcf1ccf6709a9cd002c6b501db /src/lib/libcrypto/md4
parentff23a256acb3524bbe45483e0147fee9accf46c9 (diff)
downloadopenbsd-621f19e56aa0abe5b71795a2f7e1fae064f180d9.tar.gz
openbsd-621f19e56aa0abe5b71795a2f7e1fae064f180d9.tar.bz2
openbsd-621f19e56aa0abe5b71795a2f7e1fae064f180d9.zip
Refactor ASN1_item_sign_ctx()
Oh, joy! The muppets had a feast: they could combine the horrors of EVP with X.509... Return values between -1 and 3 indicating how much work needs to be done, depending on whether methods are present or absent. Needless to say that RSA and EdDSA had inconsistent return values until recently. Instead of interleaving if/else branches, split out two helper functions that do essentially independent things, which results in something that isn't entirely bad. Well, at least not compared to the surrounding code. asn1_item_set_algorithm_identifiers() extracts the signature algorithm from the digest and pkey if known, and sets it on the two X509_ALGOR that may or may not have been passed in. asn1_item_sign() converts data into der and signs. Of course there were also a few leaks and missing error checks. ok jsing
Diffstat (limited to 'src/lib/libcrypto/md4')
0 files changed, 0 insertions, 0 deletions