Module crypto.hmac stdlib

crypto.hmac
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
1
Imported by:
0
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

Imported by

This section is empty.

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn equal

fn equal(mac1 []u8, mac2 []u8) bool

equal compares 2 MACs for equality, without leaking timing info.

Note: if the lengths of the 2 MACs are different, probably a completely different hash function was used to generate them => no useful timing information.

#fn new

fn new(key []u8, data []u8, hash_func fn ([]u8) []u8, blocksize int) []u8

new returns a HMAC byte array, depending on the hash algorithm used.

Structs

This section is empty.

Interfaces

This section is empty.

Enums

This section is empty.