package core:crypto/blake

⌘K
Ctrl+K
or
/

    Types

    Blake256_Context ¶

    Blake256_Context :: struct {
    	h:     [8]u32,
    	s:     [4]u32,
    	t:     u64,
    	x:     [64]u8,
    	nx:    int,
    	is224: bool,
    	nullt: bool,
    }
    Related Procedures With Parameters

    Blake512_Context ¶

    Blake512_Context :: struct {
    	h:     [8]u64,
    	s:     [4]u64,
    	t:     u64,
    	x:     [128]u8,
    	nx:    int,
    	is384: bool,
    	nullt: bool,
    }
    Related Procedures With Parameters

    Constants

    BLOCKSIZE_256 ¶

    BLOCKSIZE_256 :: 64

    BLOCKSIZE_512 ¶

    BLOCKSIZE_512 :: 128

    DIGEST_SIZE_224 ¶

    DIGEST_SIZE_224 :: 28

    DIGEST_SIZE_256 ¶

    DIGEST_SIZE_256 :: 32

    DIGEST_SIZE_384 ¶

    DIGEST_SIZE_384 :: 48

    DIGEST_SIZE_512 ¶

    DIGEST_SIZE_512 :: 64

    SIZE_224 ¶

    SIZE_224 :: 28

    SIZE_256 ¶

    SIZE_256 :: 32

    SIZE_384 ¶

    SIZE_384 :: 48

    SIZE_512 ¶

    SIZE_512 :: 64

    Variables

    SIGMA ¶

    SIGMA: [160]int = …

    U256 ¶

    U256: [16]u32 = …

    U512 ¶

    U512: [16]u64 = …

    Procedures

    G256 ¶

    G256 :: proc "contextless" (
    	a, b, c, d: u32, 
    	m:          [16]u32, 
    	i, 
    	j:          int, 
    ) -> (u32, u32, u32, u32) {…}

    G512 ¶

    G512 :: proc "contextless" (
    	a, b, c, d: u64, 
    	m:          [16]u64, 
    	i, 
    	j:          int, 
    ) -> (u64, u64, u64, u64) {…}

    block256 ¶

    block256 :: proc "contextless" (ctx: ^Blake256_Context, p: []u8) {…}

    block512 ¶

    block512 :: proc "contextless" (ctx: ^Blake512_Context, p: []u8) {…}

    final ¶

    final :: proc "contextless" (ctx: ^$T, hash: []u8) {…}

    hash_bytes_224 ¶

    hash_bytes_224 :: proc "contextless" (data: []u8) -> [28]u8 {…}
     

    hash_bytes_224 will hash the given input and return the computed hash

    hash_bytes_256 ¶

    hash_bytes_256 :: proc "contextless" (data: []u8) -> [32]u8 {…}
     

    hash_bytes_256 will hash the given input and return the computed hash

    hash_bytes_384 ¶

    hash_bytes_384 :: proc "contextless" (data: []u8) -> [48]u8 {…}
     

    hash_bytes_384 will hash the given input and return the computed hash

    hash_bytes_512 ¶

    hash_bytes_512 :: proc "contextless" (data: []u8) -> [64]u8 {…}
     

    hash_bytes_512 will hash the given input and return the computed hash

    hash_bytes_to_buffer_224 ¶

    hash_bytes_to_buffer_224 :: proc(data, hash: []u8) {…}
     

    hash_bytes_to_buffer_224 will hash the given input and write the computed hash into the second parameter. It requires that the destination buffer is at least as big as the digest size

    hash_bytes_to_buffer_256 ¶

    hash_bytes_to_buffer_256 :: proc(data, hash: []u8) {…}
     

    hash_bytes_to_buffer_256 will hash the given input and write the computed hash into the second parameter. It requires that the destination buffer is at least as big as the digest size

    hash_bytes_to_buffer_384 ¶

    hash_bytes_to_buffer_384 :: proc(data, hash: []u8) {…}
     

    hash_bytes_to_buffer_384 will hash the given input and write the computed hash into the second parameter. It requires that the destination buffer is at least as big as the digest size

    hash_bytes_to_buffer_512 ¶

    hash_bytes_to_buffer_512 :: proc(data, hash: []u8) {…}
     

    hash_bytes_to_buffer_512 will hash the given input and write the computed hash into the second parameter. It requires that the destination buffer is at least as big as the digest size

    hash_file_224 ¶

    hash_file_224 :: proc(hd: os.Handle, load_at_once: bool = false) -> ([28]u8, bool) {…}
     

    hash_file_224 will read the file provided by the given handle and compute a hash

    hash_file_256 ¶

    hash_file_256 :: proc(hd: os.Handle, load_at_once: bool = false) -> ([32]u8, bool) {…}
     

    hash_file_256 will read the file provided by the given handle and compute a hash

    hash_file_384 ¶

    hash_file_384 :: proc(hd: os.Handle, load_at_once: bool = false) -> ([48]u8, bool) {…}
     

    hash_file_384 will read the file provided by the given handle and compute a hash

    hash_file_512 ¶

    hash_file_512 :: proc(hd: os.Handle, load_at_once: bool = false) -> ([64]u8, bool) {…}
     

    hash_file_512 will read the file provided by the given handle and compute a hash

    hash_stream_224 ¶

    hash_stream_224 :: proc(s: io.Stream) -> ([28]u8, bool) {…}
     

    hash_stream_224 will read the stream in chunks and compute a hash from its contents

    hash_stream_256 ¶

    hash_stream_256 :: proc(s: io.Stream) -> ([32]u8, bool) {…}
     

    hash_stream_256 will read the stream in chunks and compute a hash from its contents

    hash_stream_384 ¶

    hash_stream_384 :: proc(s: io.Stream) -> ([48]u8, bool) {…}
     

    hash_stream_384 will read the stream in chunks and compute a hash from its contents

    hash_stream_512 ¶

    hash_stream_512 :: proc(s: io.Stream) -> ([64]u8, bool) {…}
     

    hash_stream_512 will read the stream in chunks and compute a hash from its contents

    hash_string_224 ¶

    hash_string_224 :: proc "contextless" (data: string) -> [28]u8 {…}
     

    hash_string_224 will hash the given input and return the computed hash

    hash_string_256 ¶

    hash_string_256 :: proc "contextless" (data: string) -> [32]u8 {…}
     

    hash_string_256 will hash the given input and return the computed hash

    hash_string_384 ¶

    hash_string_384 :: proc "contextless" (data: string) -> [48]u8 {…}
     

    hash_string_384 will hash the given input and return the computed hash

    hash_string_512 ¶

    hash_string_512 :: proc "contextless" (data: string) -> [64]u8 {…}
     

    hash_string_512 will hash the given input and return the computed hash

    hash_string_to_buffer_224 ¶

    hash_string_to_buffer_224 :: proc(data: string, hash: []u8) {…}
     

    hash_string_to_buffer_224 will hash the given input and assign the computed hash to the second parameter. It requires that the destination buffer is at least as big as the digest size

    hash_string_to_buffer_256 ¶

    hash_string_to_buffer_256 :: proc(data: string, hash: []u8) {…}
     

    hash_string_to_buffer_256 will hash the given input and assign the computed hash to the second parameter. It requires that the destination buffer is at least as big as the digest size

    hash_string_to_buffer_384 ¶

    hash_string_to_buffer_384 :: proc(data: string, hash: []u8) {…}
     

    hash_string_to_buffer_384 will hash the given input and assign the computed hash to the second parameter. It requires that the destination buffer is at least as big as the digest size

    hash_string_to_buffer_512 ¶

    hash_string_to_buffer_512 :: proc(data: string, hash: []u8) {…}
     

    hash_string_to_buffer_512 will hash the given input and assign the computed hash to the second parameter. It requires that the destination buffer is at least as big as the digest size

    init ¶

    init :: proc "contextless" (ctx: ^$T) {…}

    update ¶

    update :: proc "contextless" (ctx: ^$T, data: []u8) {…}

    write_additional ¶

    write_additional :: proc "contextless" (ctx: ^$T, data: []u8) {…}

    Procedure Groups

    Source Files

    Generation Information

    Generated with odin version dev-2023-10 (vendor "odin") Windows_amd64 @ 2023-10-03 21:09:46.957288600 +0000 UTC