Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASN.1 value notation output #128

Open
harmic opened this issue Oct 11, 2024 · 2 comments
Open

ASN.1 value notation output #128

harmic opened this issue Oct 11, 2024 · 2 comments

Comments

@harmic
Copy link

harmic commented Oct 11, 2024

Does Hampi currently support (or is there any plan to support) a mechanism to output decoded PDUs in the ASN.1 value notation?

Ie. something like this:

value UL-CCCH-Message ::= 
{
  message c1 : rrcConnectionRequest : 
  {
    criticalExtensions rrcConnectionRequest-r8 : 
    {
      ue-Identity s-TMSI : 
      {
        mmec '10101000'B,
        m-TMSI '11101110 01010000 10010111 11111100'B
      },
      establishmentCause mo-Data,
      spare '0'B
    }
  }
}

I know I can print them via the Debug trait, but that comes out in a rust debug format which is quite different to the above.

@gabhijit
Copy link
Collaborator

@harmic : This is currently not supported, but I believe a good idea to support this. In fact the Debug implementation can make use of this value notation. Any pointers to the documentation where this is specified?

This might be slightly involved and A PR is welcome. :-)

@harmic
Copy link
Author

harmic commented Dec 3, 2024

Sorry for the delay. I believe this format is called "basic ASN.1 value notation" and is specified in X.680 - the same spec that defines ASN.1 itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants