Hi,

can someone explain how the ASN1 template works in general, and in
particular, if the template definition for the field is

SEC_ASN1_OPTIONAL | SEC_ASN1_ANY

In this case, if I want to put a SEC_ASN1_OCTET_STRING data to the
filed, will the encoding/decoding work? or do I need to change the
template definition?

Also, how does encoding maps from a C object?  e.g, if I have the data
in the SECItem structure (which has type, len, data fields), what do I
need to do if I want to encode that data into the above field in the
SEC_ASN1Template?

Finally,  In secasn1e.c, SEC_ASN1EncodeItem uses SEC_ASN1Encode. But I
have not found where that function (SEC_ASN1Encode()  ) is defined.


Thanks, 
Wei

_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to