Questions tagged [asn.1]

ASN.1 stands for Abstract Syntax Notation One. It is a data specification language and a set of encoding rules for serializing the data.

ASN.1 stands for Abstract Syntax Notation One. It is part of the Presentation Layer of the OSI model.

ASN.1 specs covers two main roles:

  1. Specifies a notation to define data types and data values.
  2. Specifies different ways of encoding and decoding data values according to the syntax specifications.

Specifications

ASN.1 is an joint ISO/ITU-T standard. The documents covering the specs are:

771 questions
0
votes
1 answer

Use an ASN.1 sequence with more then one argument

I tried this code to send and receive an Integer with ASN.1 generated classes Client sending an Integer: ClientFirstRequest h = new ClientFirstRequest(); h.clientInt.setValue(9); BerOutputStream bos = new…
0
votes
1 answer

Implement ASN.1 description

I wrote this ASN.1 description Demo-module DEFINITIONS ::= -- Module-name DEFINITIONS ::= BEGIN BEGIN ClientFirstRequest ::= SEQUENCE { clientInt INTEGER } ServerFirstResponse ::= SEQUENCE { …
0
votes
1 answer

Correct synthanx of an ASN.1 module

I wrote this ASN.1 module -- Created: Mon May 06 19:38:15 CEST 2013 ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN Client ::= SEQUENCE { lientNumber INTEGER} Server ::= SEQUENCE { lientNumber INTEGER, serverString String } END The Eclipse ASN.1…
0
votes
2 answers

Use Eclipse to generate the java Classes corresponding to a ASN.1description

I installed this ASN.1 editor plugin to in my Eclipse and i wrote this code Editor http://asneditor.sourceforge.net -- Created: Mon May 06 19:38:15 CEST 2013 ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN Client ::= SEQUENCE { lientNumber…
0
votes
2 answers

Error in ASN.1 module description

I tried to understand the ASN.1 . I have a Sockets client server programm. The client send an integer to the server and the server send back another number and a String. Do you think that this ASN.1 module is correct for this communication ? because…
0
votes
1 answer

multiple definition of c function when use asn.1 generated source file

I have three .asn files. After these three files are compiled by the asn.1 compiler, each file has a corresponding directory in the output folder. In each folder, there are many C source files that were generated by the asn.1 compiler. There is…
Kery
  • 513
  • 8
  • 22
0
votes
1 answer

char encoding used in individual fields of certificate

Its not clear to me where does the information of character encoding (AsciiString, BMPString, UTF8String etc) used inside the individual fields of an X509 certificate (common name etc. rfc 5280 ) comes from. We definitely can't be sure just looking…
JamesWebbTelescopeAlien
  • 3,547
  • 2
  • 30
  • 51
0
votes
1 answer

What is the effective tagging environment in case of an imported type?

As an example let's assume the following setup: A module definition A that has a tagging environment of explicit tags defines a type foo. And Module B with implicit tagging environment imports foo and assigns it to bar. When reading a stream using…
Norbert Hartl
  • 10,481
  • 5
  • 36
  • 46
0
votes
1 answer

How do I encrypt a string with an RSA public key from a ASN.1 x509 Byte array?

I have an ASN.1 x509 byte array that contains the modulo and the public key of an RSA pair. My goal is to do whatever it takes to use this to encrypt a string. I'm trying to use openssl in objective-c to accomplish this. Whenever I try to get an…
blake305
  • 2,196
  • 3
  • 23
  • 52
0
votes
1 answer

Interpretation of ASN.1 optionalGroup in definedSyntax

I'm parsing spec ETSI TS 129 002 (3GPP TS 29.002) which contains a class definition for application context: APPLICATION-CONTEXT ::= CLASS { &Symmetric OPERATION-PACKAGE OPTIONAL, &InitiatorConsumerOf OPERATION-PACKAGE OPTIONAL, …
Norbert Hartl
  • 10,481
  • 5
  • 36
  • 46
0
votes
3 answers

C# for telecom applications?

who is using .net technologies for telecom applications? Are there any resources for this? I am interested in topics as SS7 signaling, ASN.1, MML Commands etc. Thanks
user182928
0
votes
1 answer

Pyasn1 BER encoding with carriage return \r\n

I'm handling BER encoded Call Data Records (CDR). from GPRS Tunneling protocol. In which I got one field's value with '\r\n' in it. '\xa0\x06\x80\x04\r\n\xc4\x086' -- This is the encoded string or bytearray which causing the issue. It has all the…
Haridas N
  • 529
  • 5
  • 20
0
votes
1 answer

Use path in ASN.1 Imports

Since i couldn't find the answer anywhere, thought should probably ask it. In ASN.1 we use IMPORTS to import modules from other ASN. The syntax is of course as follows, IMPORTS valuetag from eutra-def My question is how to import it from the ASN…
James
  • 1
  • 1
0
votes
1 answer

API to convert DN from ASCII string to ASN.1 DER encoding

Is there any API/C program to convert Distinguished name(DN) in ASCII String format to DER encoded ASN.1 DN ? For example I want to encode this string "C=CH, O=Texas, CN=iss" in ASN.1 DER format, in order to send in a packet. Please help me out on…
0
votes
1 answer

Perl module to do equivalent of openssl asn1parse

Using OpenSSL one can get parse and dump an ASN.1 DER file giving an output that looks like this: 100:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName 105:d=5 hl=2 l= 11 prim: PRINTABLESTRING :Big Number Services 118:d=3 …
rlandster
  • 7,294
  • 14
  • 58
  • 96