Category : asn.1

I’m trying to encode and then decode CERT_AUTHORITY_KEY_ID_INFO structure. But I’m getting an error and I couldn’t find an example online. How to do the round trip properly? CERT_AUTHORITY_KEY_ID_INFO info; info.KeyId.cbData = 10; info.KeyId.pbData = new BYTE[10]{ 1,2,3,4,5,1,2,3,4,5 }; info.CertIssuer.cbData = 10; info.CertIssuer.pbData = new BYTE[10]{ 2,4,6,8,10,2,4,6,8,10 }; info.CertSerialNumber.cbData = 10; info.CertSerialNumber.pbData = new BYTE[10]{ ..

Read more