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

decoding asn.1 compiler output as strings

I ran the free online compiler (at http://lionet.info/asn1c/asn1c.cgi) and created source files for the IMSRecord (telecom CDR). It built okay, but when I run the generated C executable, it prints the strings as hex characters, as follows: …
mitchmcc
  • 369
  • 3
  • 5
  • 18
0
votes
1 answer

ANSI C - Deallocation of nested BER TLV elements created using dynamic array

To build nested TLV elements (e.g., 6F1A840E315041592E5359532E4444463031A5088801025F2D02656E), I'm using the following data structure: typedef struct Element { int16_t nTag; // Tells you if pValue points to a primitive value or constructed one …
jpen
  • 2,129
  • 5
  • 32
  • 56
0
votes
0 answers

Disagreement between OpenSSL asn1parse and asn1Editor

I am trying to implement a SCEP service, my experience with cryptography++ is quite limited so this has been an uphill battle. Currently I am accepting a certificate request from a client, and I am working de interpret the request. The certificate…
user422005
  • 1,989
  • 16
  • 34
0
votes
1 answer

Encode XER to Buffer with asn1c

I am using asn1c to de/encode DER encoded data. That's working fine. However, for logging it would be nice to be able to write the sent/received data in XER format (XML-like). The asn1c generated files contain routines to write XER encoded data to a…
timos
  • 2,637
  • 18
  • 21
0
votes
1 answer

How to get Value inside/from ASN1_ENUMERATED unsing openssl in C++

I not found documentation on the page of openssl about how to work with ASN1_ENUMERATED. Using BERViewer to visualize the structure: So I used: ASN1_SEQUENCE_ANY *asn1SequenceAny = sk_ASN1_TYPE_new_null(); asn1SequenceAny =…
Cobaia
  • 1,503
  • 3
  • 22
  • 41
0
votes
2 answers

Parsing SNMP responses with PHP

I'm currently successfully reading out several properties on our switches over SNMP with php. Now i'm looking at making the resulting output of snmpget and snmpwalk actually usefull for the consumers of our API's. Problem is that the responses look…
ChrisR
  • 14,370
  • 16
  • 70
  • 107
0
votes
1 answer

From CRMF request into CertificateRequest (PKCS#10) Signature

I did a example code to understand how to get a CRMF (mozilla certificate request) to convert it into a CSR more similar to PKCS#10 I got the Base 64 CRMFRequest as a ASN1InputStream type. I convert it into a CertReqMsg type (Bouncycastle) when I…
Daniel Perez
  • 43
  • 10
-1
votes
1 answer

Go unmarshal asn failing

package main import ( "encoding/asn1" "fmt" ) type SimpleStruct struct { Value int } func main() { berBytes := []byte{0x02, 0x01, 0x05} var simpleStruct SimpleStruct _, err := asn1.Unmarshal(berBytes, &simpleStruct) …
ray an
  • 1,132
  • 3
  • 17
  • 42
-1
votes
1 answer

Is it worth to develop VANET simulations using Artery or Veins is enough?

*This might not be the usual techincal question but I hope it's accepted. I'm reading many publications but since now I did not came across any using Artery. The [Artery] tag itself has not been created yet. As the authors say, Artery is extending…
eugene
  • 68
  • 6
-1
votes
1 answer

Difference between ASN and ASCII

Please explain the difference between the ASN and ASCII formats. What are they used for?
user394741
  • 107
  • 2
  • 2
  • 6
-1
votes
1 answer

How to implement ASN1 decoding in Java Spring?

I need to decode ASN1 strings from a complex sequence but I just cannot figure out how this whole thing works. I'd like to do something like decoder = ASN1Library.initWithSequence(sequenceString); ParseObject obj =…
afe
  • 399
  • 1
  • 4
  • 25
-1
votes
1 answer

Parsing and editing ASN1 binary blob in C

I have a valid encoded ASN1 binary blob, which I want to modify. Moreover, I don't have the encoded ASN1's definitions file, but I know it's structure (e.g. let's say it's a sequence that contains few integers and an octet string). Therefore I'd…
SammyKab
  • 1
  • 3
-1
votes
1 answer

How can I use encapsulated a structure in asn1c? (using CONTAINING )

I would like to use CONTAINING in asn1c (http://lionet.info/asn1c/blog/). I don't know how can i give values for the CONTAINING structures. In my example i would like to give values in the Octasd SEQUENCE for version and tsapolicy. I thought i can…
-1
votes
1 answer

How to encrypt a key which is in the form of DER

I have a public key for asymmetric encryption in the form of DER (Distinguished Encoding Rules) encoded binary data, which is a restricted form of the ASN.1 (Abstract Syntax Notation One)…
Mak
  • 9
  • 5
-1
votes
1 answer

Create a correct PKCS7/CMS (ASN.1) from existing XML Signature in PHP

I have an XML digital signature, (xmlns="http://www.w3.org/2000/09/xmldsig) and I want to convert this into a PKCS7 signature. I belive I have to use an ASN.1 encoder such as https://github.com/FGrosse/PHPASN1 but I cannot understand how to create…
Patrik Grinsvall
  • 584
  • 1
  • 4
  • 22
1 2 3
51
52