DecodeECSignature (open)

Decode a BER-encoded EC signature into its r and s components

Syntax

LOADLIB "wh::crypto.whlib";

RECORD FUNCTION DecodeECSignature(STRING signature)

Parameters

STRING signature

The signature to decode

Return value

RECORD

The decoded EC signature, or a default record if it could not be decoded

STRING r

The EC signature's base16-encoded r component

STRING s

The EC signature's base16-encoded s component