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

User-defined constraints are not supported #37

Open temppost2 opened 3 years ago

temppost2 commented 3 years ago

Compilation of h235.asn leads to errors while handling user-defined constraints used in SIGNED, ENCRYPTED and HASHED definitions.

User-defined constraints are explained in X.682 (look at chapter 9)

Example of user-defined constraint:

HASHED{ToBeHashed} ::= SEQUENCE {
  algorithmOID  OBJECT IDENTIFIER,
  paramS        Params, -- any "runtime" parameters
  hash          BIT STRING
}(CONSTRAINED BY { -- Hash --ToBeHashed})
alishir commented 2 months ago

Hi @temppost2, Have you found any workaround for this issue? I am encountering the same problem with ITU-T X.880 ASN.1 files.