PKI.js is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins.
Fix bug in SignedCertificateTimestamp.ts which results in an invalid signature value being passed to crypto.verifyWithPublicKey.
When the signature object is constructed the value is set to a property named: valueHex, but when it is accessed in the CryptoEngine it is accessed via valueHexView -- since that property doesn't exist, the signature is undefined.
Coverage increased (+1.03%) to 74.291% when pulling 036933745ae6c3ae4d57a265f787f847e72e3aef on bdehamer:master into 54966e88bf4014d791646a986879f4d2336235b0 on PeculiarVentures:master.
Fix bug in
SignedCertificateTimestamp.ts
which results in an invalid signature value being passed tocrypto.verifyWithPublicKey
.When the signature object is constructed the value is set to a property named:
valueHex
, but when it is accessed in theCryptoEngine
it is accessed viavalueHexView
-- since that property doesn't exist, the signature is undefined.Closes https://github.com/PeculiarVentures/PKI.js/issues/358