File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub struct HOTP {
22
22
/// The secret key used in the HMAC process.
23
23
///
24
24
/// Often given as a Base32 key, which can be conveniently initialize using
25
- /// the [`HOTP::new_from_base32 `] initializers
25
+ /// the [`HOTP::from_base32 `] initializers
26
26
secret : Vec < u8 > ,
27
27
}
28
28
@@ -61,7 +61,7 @@ impl HOTP {
61
61
}
62
62
}
63
63
64
- /// All otp generation methods for the [`TOTP `] struct.
64
+ /// All otp generation methods for the [`HOTP `] struct.
65
65
66
66
impl HOTP {
67
67
/// Generates and returns the HOTP value
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub struct TOTP {
21
21
/// The secret key used in the HMAC process.
22
22
///
23
23
/// Often given as a Base32 key, which can be conveniently initialize using
24
- /// the [`TOTP::new_from_base32 `] or [`TOTP::new_from_base32_with_digest `]
24
+ /// the [`TOTP::from_base32 `] or [`TOTP::from_base32_with_digest `]
25
25
/// initializers.
26
26
secret : Vec < u8 > ,
27
27
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ use sha2::{Sha256, Sha512};
11
11
///
12
12
/// SHA1 is still primarily used, and some other authenticator applications
13
13
/// may not support other digest algorithms.
14
+ ///
15
+ /// [RFC6238]: https://datatracker.ietf.org/doc/html/rfc6238
14
16
15
17
#[ derive( Debug , Copy , Clone , Hash ) ]
16
18
pub enum MacDigest {
You can’t perform that action at this time.
0 commit comments