Skip to content

micro509/crypto ​

Canonical detached-signature crypto surface. Owns raw sign/verify primitives and ECDSA signature encoding conversion.

Functions ​

  • ecdsaSignatureDerToRaw — Converts a DER ECDSA-Sig-Value (RFC 5480: SEQUENCE of INTEGERs r and s)
  • ecdsaSignatureRawToDer — Converts a fixed-width raw r || s ECDSA signature to the DER
  • signData — Signs data with a WebCrypto private key and returns the signature beside
  • verifySignature — Verifies a detached signature against the signer's DER SubjectPublicKeyInfo.
  • verifySignatureWithKey — Verifies a detached signature using an existing WebCrypto public key without

Types ​

Released under the MIT License.