std.crypto.kem.hybrid
The entries of std.crypto.kem.hybrid in the Zig reference. This page has 23 cards.
pub fn HybridKem(comptime params: Params) type
Constructs a hybrid KEM type from the given parameters.
- Kind
- type function
- Module
std.crypto.kem.hybrid
Length (in bytes) of a seed for deterministic encapsulation.
- Kind
- constant
- Module
std.crypto.kem.hybrid
An encapsulated shared secret with its ciphertext.
- Kind
- struct
- Module
std.crypto.kem.hybrid
Length in bytes of the ciphertext.
- Kind
- constant
- Module
std.crypto.kem.hybrid
Length in bytes of the shared secret.
- Kind
- constant
- Module
std.crypto.kem.hybrid
A hybrid KEM key pair.
- Kind
- struct
- Module
std.crypto.kem.hybrid
pub fn generate(io: std.Io) !KeyPair
Generates a new random key pair.
- Kind
- function
- Module
std.crypto.kem.hybrid
pub fn generateDeterministic(seed: [params.Nseed]u8) !KeyPair
Deterministically derives a key pair from a cryptographically secure seed.
- Kind
- function
- Module
std.crypto.kem.hybrid
A hybrid KEM public key (encapsulation key).
- Kind
- struct
- Module
std.crypto.kem.hybrid
pub fn encaps(pk: PublicKey, io: std.Io) !EncapsulatedSecret
Generates a shared secret, encapsulated for the public key, using random bytes.
- Kind
- function
- Module
std.crypto.kem.hybrid
pub fn encapsDeterministic(pk: PublicKey, seed: *const [encaps_seed_length]u8) !EncapsulatedSecret
Generates a shared secret, encapsulated for the public key, using the provided seed.
- Kind
- function
- Module
std.crypto.kem.hybrid
Size of a serialized representation of the key, in bytes.
- Kind
- constant
- Module
std.crypto.kem.hybrid
pub fn fromBytes(buf: *const [encoded_length]u8) PublicKey
Deserializes the key from a byte array.
- Kind
- function
- Module
std.crypto.kem.hybrid
pub fn toBytes(self: PublicKey) [encoded_length]u8
Serializes the key into a byte array.
- Kind
- function
- Module
std.crypto.kem.hybrid
A hybrid KEM secret key (decapsulation key).
- Kind
- struct
- Module
std.crypto.kem.hybrid
pub fn decaps(self: SecretKey, ct: *const [params.Nct]u8) ![params.Nss]u8
Decapsulates the shared secret from the ciphertext using the secret key.
- Kind
- function
- Module
std.crypto.kem.hybrid
Size of a serialized representation of the key, in bytes.
- Kind
- constant
- Module
std.crypto.kem.hybrid
pub fn fromBytes(buf: *const [encoded_length]u8) SecretKey
Deserializes the key from a byte array.
- Kind
- function
- Module
std.crypto.kem.hybrid
pub fn toBytes(self: SecretKey) [encoded_length]u8
Serializes the key into a byte array.
- Kind
- function
- Module
std.crypto.kem.hybrid
ML-KEM-768 combined with NIST P-256.
- Kind
- type
- Module
std.crypto.kem.hybrid
ML-KEM-768 combined with X25519 (Curve25519) aka X-Wing.
- Kind
- type
- Module
std.crypto.kem.hybrid
ML-KEM-1024 combined with NIST P-384.
- Kind
- type
- Module
std.crypto.kem.hybrid
Configuration parameters for a hybrid KEM.
- Kind
- struct
- Module
std.crypto.kem.hybrid