Difference between revisions of "Unit ASN.1"
From Ultibo.org
Line 140: | Line 140: | ||
---- | ---- | ||
− | '' | + | |
+ | '''ASN1 tag''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PASN1Tag = ^TASN1Tag;</code> | ||
+ | |||
+ | <code>TASN1Tag = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>TagNumber:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>TagClass:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Length:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Constructed:Boolean;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Contents:PByte;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ASN1 OID''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PASN1OID = ^TASN1OID;</code> | ||
+ | |||
+ | <code>TASN1OID = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Len:Integer;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>OID:array[0..ASN1_MAX_OID_LEN - 1] of LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Public variables === | === Public variables === |
Revision as of 00:27, 19 April 2018
Return to Unit Reference
Contents
[hide]Description
Ultibo ASN.1 interface unit
Abstract Syntax Notation One (ASN.1) is an interface description language for defining data structures that can be serialized and deserialized in a standard, cross-platform way. It's broadly used in telecommunications and computer networking, and especially in cryptography.
This unit currently only provides the basic functionality required by X509 to read and parse a certificate in DER format.
It is expected that this unit will be expanded to incorporate additional functions over time.
Constants
[Expand]
ASN1 specific constants
ASN1_*
Type definitions
ASN1 tag
ASN1 OID
Public variables
None defined
Function declarations
To be documented
Return to Unit Reference