package core:crypto/legacy/keccak
Overview
package keccak implements the Keccak hash algorithm family.
During the SHA-3 standardization process, the padding scheme was changed thus Keccac and SHA-3 produce different outputs. Most users should use SHA-3 and/or SHAKE instead, however the legacy algorithm is provided for backward compatibility purposes.
Index
Types (1)
Variables (0)
This section is empty.
Procedure Groups (0)
This section is empty.
Types
Context ¶
Context :: struct { st: struct #raw_union { b: [200]u8, q: [25]u64, }, pt: int, rsiz: int, mdlen: int, dsbyte: u8, is_initialized: bool, is_finalized: bool, }
Context is a Keccak instance.
Related Procedures With Parameters
Constants
BLOCK_SIZE_224 ¶
BLOCK_SIZE_224 :: _sha3.RATE_224
BLOCK_SIZE_224 is the Keccak-224 block size in bytes.
BLOCK_SIZE_256 ¶
BLOCK_SIZE_256 :: _sha3.RATE_256
BLOCK_SIZE_256 is the Keccak-256 block size in bytes.
BLOCK_SIZE_384 ¶
BLOCK_SIZE_384 :: _sha3.RATE_384
BLOCK_SIZE_384 is the Keccak-384 block size in bytes.
BLOCK_SIZE_512 ¶
BLOCK_SIZE_512 :: _sha3.RATE_512
BLOCK_SIZE_512 is the Keccak-512 block size in bytes.
Variables
This section is empty.
Procedures
final ¶
final finalizes the Context, writes the digest to hash, and calls reset on the Context.
Iff finalize_clone is set, final will work on a copy of the Context, which is useful for for calculating rolling digests.
reset ¶
reset :: proc(ctx: ^Context) {…}
reset sanitizes the Context. The Context must be re-initialized to be used again.
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2024-10 (vendor "odin") Windows_amd64 @ 2024-10-05 21:10:06.084522900 +0000 UTC