Category "asn.1"

cms Enveloped Data binary encoding problem in pkijs

I'm trying trying to implement exchange of CMS encrypted content using the pkijs library. Basically I've just copied the example from here: https://pkijs.org/ex

How to generate two RSA for ASN.1 DER encoding their modulus with and without padding (bug in sample code?)

My question is basically as follows: How to generate two cases of 2048 bit RSA key so that their unsigned big endian modulus requires prefix with 0x00 and anoth

How to parse nested TLV structures

This is TLV code: 30 3e 31 0b 30 09 06 03 55 04 06 13 02 50 4c 31 1b 30 19 06 03 55 04 0a 13 12 55 6e 69 7a 65 74 6f 20 53 70 2e 20 7a 20 6f 2e 6f 2e 31

How to parse the ASN.1 object and get the data using bouncycastle in java

I have an ASN.1 data which contain some URL info and certificates data. Now I am trying to parse the data. I am using the dump method which is shown below. p