argon2id_p1/algorithm.rs
1//! The Argon2 variant. Exactly one exists here.
2
3/// Argon2 primitive type: this crate implements Argon2id only.
4///
5/// The single variant keeps constructor call sites drop-in compatible with the
6/// general `argon2` crate while making Argon2d and Argon2i unrepresentable.
7#[derive(Copy, Clone, Debug, Eq, PartialEq)]
8pub enum Algorithm {
9 /// The hybrid variant (RFC 9106 ยง3.1): data-independent addressing for the
10 /// first two slices of the first pass, data-dependent for everything after.
11 Argon2id,
12}