Signature.fromASN1Hex constructor
Signature.fromASN1Hex(
- String asn1Hex
Implementation
Signature.fromASN1Hex(String asn1Hex) {
var asn1Bytes = List<int>.generate(asn1Hex.length >> 1,
(i) => int.parse(asn1Hex.substring(i * 2, i * 2 + 2), radix: 16));
var p = ASN1Sequence.decode(asn1Bytes);
R = (p.children[0] as ASN1Integer).value;
S = (p.children[1] as ASN1Integer).value;
}