Skip to content

Commit 7315095

Browse files
authored
mcf: improve Base64 comments (#2025)
1 parent 8e676f4 commit 7315095

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

mcf/src/base64.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ use alloc::{string::String, vec::Vec};
99
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
1010
#[non_exhaustive]
1111
pub enum Base64 {
12-
/// bcrypt encoding.
12+
/// bcrypt encoding. Also used by the following schemes:
13+
/// - scrypt
14+
/// - yescrypt
1315
///
1416
/// ```text
15-
/// ./ [A-Z] [a-z] [0-9]
16-
/// 0x2e-0x2f, 0x41-0x5a, 0x61-0x7a, 0x30-0x39
17+
/// ./ [0-9] [A-Z] [a-z]
18+
/// 0x2e-0x2f, 0x30-0x39, 0x41-0x5a, 0x61-0x7a
1719
/// ```
1820
Bcrypt,
1921

@@ -25,7 +27,7 @@ pub enum Base64 {
2527
/// ```
2628
Crypt,
2729

28-
/// `crypt(3)` Base64 encoding for the following schemes:
30+
/// `crypt(3)` Base64 encoding. Used by the following schemes:
2931
/// - sha1_crypt,
3032
/// - sha256_crypt,
3133
/// - sha512_crypt,

0 commit comments

Comments
 (0)