abla/crypto/sha3/raw

Generated from source.

Source module; follow its importing module's re-export links.

Source: abla/crypto/sha3/raw.ab

Keccak.absorbAt (extension fun)

trusted fun Keccak.absorbAt(address: int, count: int): void

Absorbs count bytes at address (a string's, an array's: anything in memory).

Keccak.squeezeTo (extension fun)

trusted fun Keccak.squeezeTo(address: int, count: int): void

Squeezes count bytes to address. The first call ends the input.

Keccak.finish (extension fun)

trusted fun Keccak.finish(): void

Ends the input: the suffix and the 10*1 padding, and the first permutation.

sha3Permute (fun)

@noinline trusted fun sha3Permute(s: int): void

The permutation: the lanes in locals where the target has registers for them, else the words in memory, round by round.

sha3PermuteLanes (fun)

@noinline trusted fun sha3PermuteLanes(s: int): void

Keccak-f[1600] over the 25 lanes at address s, with 64-bit lane operations (every target but Xtensa).

sha3PermuteWords (fun)

@noinline trusted fun sha3PermuteWords(s: int): void

The permutation: 24 rounds. The round constants are literals, so nothing is looked up.

sha3Load64 (fun)

@inline trusted fun sha3Load64(address: int): secretU64

Loads a secret lane from a readable 64-bit address.

sha3Round (fun)

@inline trusted fun sha3Round(s: int, rc: secretU64): void

One round of Keccak-f[1600] on the 25 lanes at s (and 5 lanes of scratch at s + 200), with the round constant rc.

sha3Store64 (fun)

@inline trusted fun sha3Store64(address: int, value: secretU64): void

Stores a secret lane as a single 64-bit word at a writable address.

sha3Load (fun)

@inline trusted fun sha3Load(address: int): secretU64

BEGIN SHA3 SECRET CORE

sha3Store (fun)

@inline trusted fun sha3Store(address: int, value: secretU64): void

Stores a secret lane as two 32-bit words at a writable address.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.