micro509/crypto
Canonical detached-signature crypto surface. Owns raw sign/verify primitives and ECDSA signature encoding conversion.
Functions
ecdsaSignatureDerToRaw— Converts a DERECDSA-Sig-Value(RFC 5480: SEQUENCE of INTEGERs r and s)ecdsaSignatureRawToDer— Converts a fixed-width rawr || sECDSA signature to the DERsignData— Signsdatawith a WebCrypto private key and returns the signature besideverifySignature— Verifies a detached signature against the signer's DERSubjectPublicKeyInfo.verifySignatureWithKey— Verifies a detached signature using an existing WebCrypto public key without
Types
SignatureProfileInput— Controls how the signature algorithm is chosen.SignDataResult— Result ofsignData: the signature plus its on-wire algorithm identity.VerifySignatureConfigFailure— Failure: the signature algorithm or its parameters are not supported.VerifySignatureInput— Input forverifySignature.VerifySignatureLimitFailure— Failure: the signature algorithm parameters exceed a micro509 decoding limit.VerifySignatureResult— Result ofverifySignatureandverifySignatureWithKey.VerifySignatureWithKeyInput— Input forverifySignatureWithKey.VerifySignedDataFailure— Failure: signature verification could not run to completion.VerifySignedDataResult— Result of a full signature verification: validity, unsupported params, or a runtime verification failure.VerifySignedDataSuccess— Success branch ofVerifySignedDataResult.