abla/crypto/der
Generated from source.
Import with import "abla/crypto/der".
Source: abla/crypto/der/entry.ab
DerItem (class)
class DerItem(val tag: int, val start: int, val end: int, val ok: bool)
Holds a DER tag and its content byte range, or indicates a parse failure.
derFailed (fun)
fun derFailed(): DerItem
Returns a failed DER reader result.
derItem (fun)
fun derItem(data: string, at: int, limit: int): DerItem
The item at at, within limit.
DER_INTEGER (val)
val DER_INTEGER
Identifies a DER INTEGER.
DER_BIT_STRING (val)
val DER_BIT_STRING
Identifies a DER BIT STRING.
DER_OCTET_STRING (val)
val DER_OCTET_STRING
Identifies a DER OCTET STRING.
DER_OID (val)
val DER_OID
Identifies a DER OBJECT IDENTIFIER.
DER_SEQUENCE (val)
val DER_SEQUENCE
Identifies a DER SEQUENCE.
derPositiveInteger (fun)
fun derPositiveInteger(data: string, item: DerItem): string
An INTEGER's value with no leading zero, or "" if it isn't a positive one in its shortest form.
pemBody (fun)
fun pemBody(text: string, label: string): string
The base 64 between a PEM's BEGIN and END label, without branching on the characters, or "".
pemFind (fun)
fun pemFind(text: string, wanted: string, from: int): int
Returns the byte offset of the first occurrence at or after from, or -1 if absent.
pemLabel (fun)
fun pemLabel(text: string): string
The first label in a PEM text, or "".
pemInRange (fun)
@inline fun pemInRange(c: secretU32, low: int, high: int): secretU32
Returns an all-ones mask when the secret code is within the inclusive bounds, or zero otherwise.
ctBase64Value (fun)
@inline fun ctBase64Value(c: secretU32): secretU32
A base 64 character's value, with no table and no branch on it; 0 for what isn't one.
ctBase64Valid (fun)
@inline fun ctBase64Valid(c: secretU32): secretU32
All ones if c isn't a base 64 character.
pemBase64Decode (fun)
fun pemBase64Decode(body: string): string
Decodes base 64, skipping line breaks and spaces (a public fact), with no branch or table on a character. "" for anything else, or padding in the wrong place.
pemEmit (fun)
fun pemEmit(var out: ByteBuffer, byte: secretU32): void
The byte goes to the buffer as a value, as any copy of a secret does.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.