public static SignaturePayload Decode(byte[] content) { var result = Asn1Utils.TryDecodePayload(content); if (result == null) { throw new FormatException("Invalid Signature Payload value!"); } return(result); }
public byte[] Encode() { // Manually encode using ASN.1 Distinguished Encoding Rules return(Asn1Utils.EncodePayload(this)); }