std.crypto.errors.KeyMismatchError
Both a public and secret key have been provided, but they are incompatible.
- Kind
- error set
- Module
std.crypto.errors
Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The entries of the 224 modules of the Zig reference that have fewer than 20 entries each, in the order of the module names. This page has 1,638 cards.
Both a public and secret key have been provided, but they are incompatible.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Encoded input is not in canonical form.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Square root has no solutions.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The requested output length is too long for the chosen algorithm.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Verification string doesn't match the provided password and parameters.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The signature doesn't verify for the given message and public key.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Point is not in the prime order group.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Parameters would be insecure to use.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Public key would be insecure to use.
std.crypto.errorsSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn final(self: *const Blake3, out: []u8) void
Finalize the hash and write any number of output bytes.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn finalizeSeek(self: *const Blake3, seek: u64, out: []u8) void
Finalize the hash and write any number of output bytes, starting at a given seek position.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn hash(b: []const u8, out: []u8, options: Options) void
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn hashParallel(b: []const u8, out: []u8, options: Options, allocator: Allocator, io: Io) error
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(options: Options) Blake3
Construct a new `Blake3` for the hash function, with an optional key.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn initKdf(context: []const u8, options: KdfOptions) Blake3
Construct a new `Blake3` for the key derivation function.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn reset(self: *Blake3) void
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn update(self: *Blake3, input: []const u8) void
Add input to the hash state.
std.crypto.hash.Blake3Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn Composition(comptime H1: type, comptime H2: type) type
The composition of two hash functions: H1 o H2, with the same API as regular hash functions.
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The block length, in bytes.
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The length of the hash output, in bytes.
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn final(d: *Self, out: *[digest_length]u8) void
Compute the final hash for the accumulated content: H1(H2(b)).
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn finalResult(d: *Self) [digest_length]u8
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn hash(b: []const u8, out: *[digest_length]u8, options: Options) void
Compute H1(H2(b)).
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(options: Options) Self
Initialize the hash composition with the given options.
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Options for both hashes.
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn update(d: *Self, b: []const u8) void
Add content to the hash.
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-256(SHA-256()).
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-384(SHA-384()).
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-512(SHA-512()).
std.crypto.hash.compositionSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn final(d: *Self, out: *[digest_length]u8) void
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn finalResult(d: *Self) [digest_length]u8
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn hash(data: []const u8, out: *[digest_length]u8, options: Options) void
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn hashResult(data: []const u8) [digest_length]u8
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(options: Options) Self
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn update(d: *Self, b: []const u8) void
std.crypto.hash.Md5Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn final(d: *Sha1, out: *[digest_length]u8) void
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn finalResult(d: *Sha1) [digest_length]u8
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn hash(b: []const u8, out: *[digest_length]u8, options: Options) void
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(options: Options) Sha1
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn peek(d: Sha1) [digest_length]u8
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn update(d: *Sha1, b: []const u8) void
std.crypto.hash.Sha1Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-256 truncated to leftmost 192 bits.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-512 with a different initialization vector truncated to leftmost 224 bits.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-512 with a different initialization vector truncated to leftmost 256 bits.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-512 truncated to leftmost 224 bits.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
SHA-512 truncated to leftmost 256 bits.
std.crypto.hash.sha2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn Hkdf(comptime Hmac: type) type
The Hkdf construction takes some source of initial keying material and derives one or more uniform keys from it.
std.crypto.kdf.hkdfSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn expand(out: []u8, ctx: []const u8, prk: [prk_length]u8) void
Derive a subkey from a master key `prk` and a subkey description `ctx`.
std.crypto.kdf.hkdfSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn extract(salt: []const u8, ikm: []const u8) [prk_length]u8
Return a master key from a salt and initial keying material.
std.crypto.kdf.hkdfSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn extractInit(salt: []const u8) Hmac
Initialize the creation of a master key from a salt and keying material that can be added later, possibly in chunks.
std.crypto.kdf.hkdfSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Length of a master key, in bytes.
std.crypto.kdf.hkdfSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
HKDF-SHA256.
std.crypto.kdf.hkdfSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
HKDF-SHA512.
std.crypto.kdf.hkdfSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.kem.kyber_d00Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.kem.kyber_d00Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.kem.kyber_d00Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.kem.ml_kemSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.kem.ml_kemSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.kem.ml_kemSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn create(out: *[mac_length]u8, msg: []const u8, key: *const [key_length]u8) void
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn final(st: *Poly1305, out: *[mac_length]u8) void
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn finalResult(d: *Poly1305) [mac_length]u8
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(key: *const [key_length]u8) Poly1305
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn pad(st: *Poly1305) void
Zero-pad to align the next input to the first byte of a block.
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn update(st: *Poly1305, m: []const u8) void
std.crypto.onetimeauth.Poly1305Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn calcSize(params: Params) usize
Compute the number of bytes of scratch memory `kdf` needs for `params`.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Options for hashing a password.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn kdf(allocator: mem.Allocator, derived_key: []u8, password: []const u8, salt: []const u8, params: Params, mode: Mode, io: Io) KdfError!void
Derives a key from the password, salt, and argon2 parameters.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Argon2 type.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Argon2 parameters.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromLimits(ops_limit: u32, mem_limit: usize) Self
Create parameters from ops and mem limits, where mem_limit given in bytes.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for interactive logins using argon2i type.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for interactive logins using argon2id type.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for normal usage using argon2i type.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for normal usage using argon2id type.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Recommended parameters for argon2id type according to the [OWASP cheat sheet](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html).
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for offline usage using argon2i type.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for offline usage using argon2id type.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strHash(password: []const u8, options: HashOptions, out: []u8, io: Io) Error![]const u8
Compute a hash of a password using the argon2 key derivation function.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strVerify(str: []const u8, password: []const u8, options: VerifyOptions, io: Io) Error!void
Verify that a previously computed hash is valid for a given password.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Options for hash verification.
std.crypto.pwhash.argon2Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn bcrypt(password: []const u8, salt: *const [salt_length]u8, params: Params) [dk_length]u8
Compute a hash of a password using 2^rounds_log rounds of the bcrypt key stretching function. bcrypt is a computationally expensive and cache-hard function, explicitly designed to slow down exhaustive searches.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Length (in bytes) of a password hash in crypt encoding.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Options for hashing a password.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn opensshKdf(pass: []const u8, salt: []const u8, key: []u8, rounds: u32) !void
The function used in OpenSSH to derive encryption keys from passphrases.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
bcrypt parameters.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Minimum recommended parameters according to the [OWASP cheat sheet](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html).
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn pbkdf(pass: []const u8, salt: []const u8, key: []u8, rounds: u32) !void
bcrypt-pbkdf is a key derivation function based on bcrypt.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strHash(password: []const u8, options: HashOptions, out: []u8, io: std.Io) Error![]const u8
Compute a hash of a password using 2^rounds_log rounds of the bcrypt key stretching function. bcrypt is a computationally expensive and cache-hard function, explicitly designed to slow down exhaustive searches.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strHashWithSalt(password: []const u8, options: HashOptions, out: []u8, salt: [salt_length]u8) Error![]const u8
Compute a deterministic hash of a password using the bcrypt key derivation function.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strVerify(str: []const u8, password: []const u8, options: VerifyOptions) Error!void
Verify that a previously computed hash is valid for a given password.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Options for hash verification.
std.crypto.pwhash.bcryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn BinValue(comptime max_len: usize) type
A wrapped binary value whose maximum size is `max_len`.
std.crypto.pwhash.phc_formatSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn constSlice(self: *const Self) []const u8
Return the slice containing the actual value.
std.crypto.pwhash.phc_formatSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromSlice(slice: []const u8) Error!Self
Wrap an existing byte slice.
std.crypto.pwhash.phc_formatSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn calcSize(params: anytype) usize
Compute the number of bytes required to serialize `params`.
std.crypto.pwhash.phc_formatSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn deserialize(comptime HashResult: type, str: []const u8) Error!HashResult
Deserialize a PHC-formatted string into a structure `HashResult`.
std.crypto.pwhash.phc_formatSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.pwhash.phc_formatSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn serialize(params: anytype, str: []u8) Error![]const u8
Serialize parameters into a PHC string.
std.crypto.pwhash.phc_formatSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Options for hashing a password.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn kdf(allocator: mem.Allocator, derived_key: []u8, password: []const u8, salt: []const u8, params: Params) KdfError!void
Apply scrypt to generate a key from a password. scrypt is defined in RFC 7914. allocator: mem.Allocator. derived_key: Slice of appropriate size for generated key.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Scrypt parameters.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromLimits(ops_limit: u64, mem_limit: usize) Self
Create parameters from ops and mem limits, where mem_limit given in bytes.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for interactive logins.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Recommended parameters according to the [OWASP cheat sheet](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html).
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Baseline parameters for offline usage.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strHash(password: []const u8, options: HashOptions, out: []u8, io: std.Io) Error![]const u8
Compute a hash of a password using the scrypt key derivation function.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strHashWithSalt(password: []const u8, options: HashOptions, out: []u8, salt: *const [default_salt_len]u8) Error![]const u8
Compute a deterministic hash of a password using the scrypt key derivation function.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn strVerify(str: []const u8, password: []const u8, options: VerifyOptions) Error!void
Verify that a previously computed hash is valid for a given password.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Options for hash verification.
std.crypto.pwhash.scryptSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
ML-DSA-44 (Module-Lattice-Based Digital Signature Algorithm, 44 parameter set) as specified in NIST FIPS 204.
std.crypto.sign.mldsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
ML-DSA-65 (Module-Lattice-Based Digital Signature Algorithm, 65 parameter set) as specified in NIST FIPS 204.
std.crypto.sign.mldsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
ML-DSA-87 (Module-Lattice-Based Digital Signature Algorithm, 87 parameter set) as specified in NIST FIPS 204.
std.crypto.sign.mldsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Key length in bytes.
std.crypto.stream.salsa.SalsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Nonce length in bytes.
std.crypto.stream.salsa.SalsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn xor(out: []u8, in: []const u8, counter: u64, key: [key_length]u8, nonce: [nonce_length]u8) void
Add the output of the Salsa stream cipher to `in` and stores the result into `out`.
std.crypto.stream.salsa.SalsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Key length in bytes.
std.crypto.stream.salsa.XSalsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Nonce length in bytes.
std.crypto.stream.salsa.XSalsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn xor(out: []u8, in: []const u8, counter: u64, key: [key_length]u8, nonce: [nonce_length]u8) void
Add the output of the XSalsa stream cipher to `in` and stores the result into `out`.
std.crypto.stream.salsa.XSalsaSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn add(comptime T: type, a: []const T, b: []const T, result: []T, endian: Endian) bool
Add two integers serialized as arrays of the same size, in constant time.
std.crypto.timing_safeSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn classify(ptr: anytype) void
Mark a value as sensitive or secret, helping to detect potential side-channel vulnerabilities.
std.crypto.timing_safeSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn compare(comptime T: type, a: []const T, b: []const T, endian: Endian) Order
Compare two integers serialized as arrays of the same size, in constant time.
std.crypto.timing_safeSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn declassify(ptr: anytype) void
Mark a value as non-sensitive or public, indicating it's safe from side-channel attacks.
std.crypto.timing_safeSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eql(comptime T: type, a: T, b: T) bool
Compares two arrays in constant time (for a given length) and returns whether they are equal.
std.crypto.timing_safeSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn sub(comptime T: type, a: []const T, b: []const T, result: []T, endian: Endian) bool
Subtract two integers serialized as arrays of the same size, in constant time.
std.crypto.timing_safeSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn end(c: *Client) Writer.Error!void
Sends a `close_notify` alert, which is necessary for the server to distinguish between a properly finished TLS session, or a truncation attack.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eof(c: Client) bool
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(input: *Reader, output: *Writer, options: Options) InitError!Client
Initiates a TLS handshake and establishes a TLSv1.2 or TLSv1.3 session. `host` is only borrowed during this function call. `input` is asserted to have buffer capacity at least `min_buffer_len`.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The `Reader` supplied to `init` requires a buffer capacity at least this amount.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.tls.ClientSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.cpu_contextSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromPosixSignalContext(ctx_ptr: ?*const anyopaque) ?Native
std.debug.cpu_contextSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromWindowsContext(ctx: *const std.os.windows.CONTEXT) Native
std.debug.cpu_contextSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Register state for the native architecture, used by `std.debug` for stack unwinding. `noreturn` if there is no implementation for the native architecture.
std.debug.cpu_contextSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn find(entries: []const CacheEntry, pc: usize) ?*const CacheEntry
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn populate(entry: *const CacheEntry, entries: []CacheEntry) void
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn computeRules(unwinder: *SelfUnwinder, gpa: Allocator, unwind: *const Dwarf.Unwind, load_offset: usize, explicit_fde_offset: ?usize) !CacheEntry
Compute the rule set for the address `unwinder.pc` from the information in `unwind`.
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn deinit(unwinder: *SelfUnwinder) void
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn getFp(unwinder: *const SelfUnwinder) usize
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(cpu_context: *const std.debug.cpu_context.Native) SelfUnwinder
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn next(unwinder: *SelfUnwinder, gpa: Allocator, cache_entry: *const CacheEntry) std.debug.SelfInfoError!usize
Applies the register rules given in `cache_entry` to the current state of `unwinder`.
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn regNative(ctx: *std.debug.cpu_context.Native, num: u16) error
std.debug.Dwarf.SelfUnwinderSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn deinit(unwind: *Unwind, gpa: Allocator) void
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Decoded version of the `.eh_frame_hdr` section.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parse(eh_frame_hdr_vaddr: u64, eh_frame_hdr_bytes: []const u8, addr_size_bytes: u8, endian: Endian) !EhFrameHeader
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn getFde(unwind: *const Unwind, fde_offset: u64, endian: Endian) !struct
Get the FDE at a given offset, as well as its associated CIE. This offset typically comes from `lookupPc`.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn initEhFrameHdr(header: EhFrameHeader, section_vaddr: u64, section_bytes_ptr: [*]const u8) Unwind
Initialize with unwind information from a header loaded from an `.eh_frame_hdr` section, and a pointer to the contents of the `.eh_frame` section. `.eh_frame_hdr` may embed a binary search table of FDEs.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn initSection(section: Section, section_vaddr: u64, section_bytes: []const u8) Unwind
Initialize with unwind information from the contents of a `.debug_frame` or `.eh_frame` section.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn lookupPc(unwind: *const Unwind, pc: u64, addr_size_bytes: u8, endian: Endian) !?u64
Given a program counter value, returns the offset of the corresponding FDE, or `null` if no matching FDE was found.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn prepare(unwind: *Unwind, gpa: Allocator, addr_size_bytes: u8, endian: Endian, need_lookup: bool, is_macho: bool) !void
Builds the CIE list and FDE lookup table if they are not already built.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.UnwindSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn deinit(self: *VirtualMachine, gpa: Allocator) void
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn read(reader: *std.Io.Reader, addr_size_bytes: u8, endian: std.builtin.Endian) !Instruction
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn populateCieLastRow(gpa: Allocator, cie: *Unwind.CommonInformationEntry, addr_size_bytes: u8, endian: std.builtin.Endian) !void
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn reset(self: *VirtualMachine) void
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Each row contains unwinding rules for a set of registers.
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn rowColumns(self: *const VirtualMachine, row: *const Row) []Column
Return a slice backed by the row's non-CFA columns.
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn runTo(vm: *VirtualMachine, gpa: Allocator, pc: u64, cie: *const Unwind.CommonInformationEntry, fde: *const Unwind.FrameDescriptionEntry, addr_size_bytes: u8, endian: std.builtin.Endian) !Row
Runs the CIE instructions, then the FDE instructions.
std.debug.Dwarf.Unwind.VirtualMachineSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.ElfFileSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn native(exe_path: []const u8) DebugInfoSearchPaths
std.debug.ElfFileSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.ElfFileSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn deinit(ef: *ElfFile, gpa: Allocator) void
std.debug.ElfFileSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn load(gpa: Allocator, io: Io, elf_file: Io.File, opt_build_id: ?[]const u8, di_search_paths: *const DebugInfoSearchPaths) LoadError!ElfFile
std.debug.ElfFileSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.debug.ElfFileSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.