Skip to content

ecdsaSignatureRawToDer ​

ecdsaSignatureRawToDer ​

Converts a fixed-width raw r || s ECDSA signature to the DER ECDSA-Sig-Value encoding X.509 and CMS structures embed. Throws when the input length does not match the curve.

ts
function ecdsaSignatureRawToDer(
	signature: Uint8Array,
	curve: EcNamedCurve,
): Uint8Array

Parameters

Released under the MIT License.