beanit / asn1bean

ASN1bean (formerly known as jASN1) is a Java ASN.1 BER and DER encoding/decoding library
https://www.beanit.com/asn1/
Apache License 2.0
110 stars 45 forks source link

Empty octet String #45

Open ilikeck opened 2 years ago

ilikeck commented 2 years ago

I encode the data ( esim profile )" { createFCP : { fileDescriptor '4121'H, fileID '6fc4'H, lcsi '05'H, securityAttributesReferenced '03'H, efFileSize '64'H, shortEFID ''H } " but shortEFID ''H I don't know how to do using jasn1 because shortEFID ''H has length zero without value.

sfeuerhahn commented 2 years ago

You can simply pass an empty byte array to shortEFID. Empty octet strings are no problem.