structstd.crypto.stream.chacha[src]

Types

TypeChaCha20IETF[src]

IETF-variant of the ChaCha20 stream cipher, as designed for TLS.

Source Code

Source code
pub const ChaCha20IETF = ChaChaIETF(20)

TypeChaCha12IETF[src]

IETF-variant of the ChaCha20 stream cipher, reduced to 12 rounds. Reduced-rounds versions are faster than the full-round version, but have a lower security margin. However, ChaCha is still believed to have a comfortable security even with only 8 rounds.

Source Code

Source code
pub const ChaCha12IETF = ChaChaIETF(12)

TypeChaCha8IETF[src]

IETF-variant of the ChaCha20 stream cipher, reduced to 8 rounds. Reduced-rounds versions are faster than the full-round version, but have a lower security margin. However, ChaCha is still believed to have a comfortable security even with only 8 rounds.

Source Code

Source code
pub const ChaCha8IETF = ChaChaIETF(8)

TypeChaCha20With64BitNonce[src]

Original ChaCha20 stream cipher.

Source Code

Source code
pub const ChaCha20With64BitNonce = ChaChaWith64BitNonce(20)

TypeChaCha12With64BitNonce[src]

Original ChaCha20 stream cipher, reduced to 12 rounds. Reduced-rounds versions are faster than the full-round version, but have a lower security margin. However, ChaCha is still believed to have a comfortable security even with only 8 rounds.

Source Code

Source code
pub const ChaCha12With64BitNonce = ChaChaWith64BitNonce(12)

TypeChaCha8With64BitNonce[src]

Original ChaCha20 stream cipher, reduced to 8 rounds. Reduced-rounds versions are faster than the full-round version, but have a lower security margin. However, ChaCha is still believed to have a comfortable security even with only 8 rounds.

Source Code

Source code
pub const ChaCha8With64BitNonce = ChaChaWith64BitNonce(8)

TypeXChaCha20IETF[src]

XChaCha20 (nonce-extended version of the IETF ChaCha20 variant) stream cipher

Source Code

Source code
pub const XChaCha20IETF = XChaChaIETF(20)

TypeXChaCha12IETF[src]

XChaCha20 (nonce-extended version of the IETF ChaCha20 variant) stream cipher, reduced to 12 rounds Reduced-rounds versions are faster than the full-round version, but have a lower security margin. However, ChaCha is still believed to have a comfortable security even with only 8 rounds.

Source Code

Source code
pub const XChaCha12IETF = XChaChaIETF(12)

TypeXChaCha8IETF[src]

XChaCha20 (nonce-extended version of the IETF ChaCha20 variant) stream cipher, reduced to 8 rounds Reduced-rounds versions are faster than the full-round version, but have a lower security margin. However, ChaCha is still believed to have a comfortable security even with only 8 rounds.

Source Code

Source code
pub const XChaCha8IETF = XChaChaIETF(8)

Source Code

Source code
pub const chacha = struct {
    pub const ChaCha20IETF = @import("crypto/chacha20.zig").ChaCha20IETF;
    pub const ChaCha12IETF = @import("crypto/chacha20.zig").ChaCha12IETF;
    pub const ChaCha8IETF = @import("crypto/chacha20.zig").ChaCha8IETF;
    pub const ChaCha20With64BitNonce = @import("crypto/chacha20.zig").ChaCha20With64BitNonce;
    pub const ChaCha12With64BitNonce = @import("crypto/chacha20.zig").ChaCha12With64BitNonce;
    pub const ChaCha8With64BitNonce = @import("crypto/chacha20.zig").ChaCha8With64BitNonce;
    pub const XChaCha20IETF = @import("crypto/chacha20.zig").XChaCha20IETF;
    pub const XChaCha12IETF = @import("crypto/chacha20.zig").XChaCha12IETF;
    pub const XChaCha8IETF = @import("crypto/chacha20.zig").XChaCha8IETF;
}