structstd.crypto.aead.chacha_poly[src]

Types

TypeChaCha20Poly1305[src]

ChaCha20-Poly1305 authenticated cipher, as designed for TLS

Source Code

Source code
pub const ChaCha20Poly1305 = ChaChaPoly1305(20)

TypeChaCha12Poly1305[src]

ChaCha20-Poly1305 authenticated 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 ChaCha12Poly1305 = ChaChaPoly1305(12)

TypeChaCha8Poly1305[src]

ChaCha20-Poly1305 authenticated 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 ChaCha8Poly1305 = ChaChaPoly1305(8)

TypeXChaCha20Poly1305[src]

XChaCha20-Poly1305 authenticated cipher

Source Code

Source code
pub const XChaCha20Poly1305 = XChaChaPoly1305(20)

TypeXChaCha12Poly1305[src]

XChaCha20-Poly1305 authenticated cipher 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 XChaCha12Poly1305 = XChaChaPoly1305(12)

TypeXChaCha8Poly1305[src]

XChaCha20-Poly1305 authenticated cipher 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 XChaCha8Poly1305 = XChaChaPoly1305(8)

Source Code

Source code
pub const chacha_poly = struct {
    pub const ChaCha20Poly1305 = @import("crypto/chacha20.zig").ChaCha20Poly1305;
    pub const ChaCha12Poly1305 = @import("crypto/chacha20.zig").ChaCha12Poly1305;
    pub const ChaCha8Poly1305 = @import("crypto/chacha20.zig").ChaCha8Poly1305;
    pub const XChaCha20Poly1305 = @import("crypto/chacha20.zig").XChaCha20Poly1305;
    pub const XChaCha12Poly1305 = @import("crypto/chacha20.zig").XChaCha12Poly1305;
    pub const XChaCha8Poly1305 = @import("crypto/chacha20.zig").XChaCha8Poly1305;
}