abla/crypto/hkdf
Generated from source.
Import with import "abla/crypto/hkdf".
Source: abla/crypto/hkdf/entry.ab
HKDF_SHA1 (val)
val HKDF_SHA1
Selects SHA-1 for HKDF.
HKDF_SHA256 (val)
val HKDF_SHA256
Selects SHA-256 for HKDF.
HKDF_SHA384 (val)
val HKDF_SHA384
Selects SHA-384 for HKDF.
HKDF_SHA512 (val)
val HKDF_SHA512
Selects SHA-512 for HKDF.
hkdfExtract (fun)
fun hkdfExtract(hash: int, salt: string, ikm: string): string
HKDF-Extract: the pseudorandom key from the input keying material. An empty salt is a string of hash-length zeros. hash is one of HKDF_SHA1, HKDF_SHA256, HKDF_SHA384, HKDF_SHA512.
hkdfExpand (fun)
fun hkdfExpand(hash: int, prk: string, info: string, length: int): CryptoResult
HKDF-Expand: length bytes of output keying material from a pseudorandom key and context information. The output is a buffer of its own, exactly length bytes (not a slice of the blocks it was made from: wiping it leaves nothing of the output behind, and wiping the blocks, which this function does, cannot zero it). The strings the computation built on the way (each block with the info that follows it) are not wiped: a string cannot be told to be unshared.
hkdf (fun)
fun hkdf(hash: int, salt: string, ikm: string, info: string, length: int): CryptoResult
Extract and Expand together, RFC 5869 section 2.
tls13ExpandLabel (fun)
fun tls13ExpandLabel(hash: int, secret: string, label: string, context: string,
length: int): CryptoResult
HKDF-Expand-Label(Secret, Label, Context, Length) of TLS 1.3: label is written without its "tls13 " prefix.
tls13DeriveSecret (fun)
fun tls13DeriveSecret(hash: int, secret: string, label: string, transcriptHash: string): CryptoResult
Derive-Secret(Secret, Label, Messages): Expand-Label with the transcript hash as the context and the hash's length as the output size. transcriptHash is the hash of the messages (of the empty string for none), which the caller computes.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.