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 {
2222 /// The secret key used in the HMAC process.
2323 ///
2424 /// 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
2626 secret : Vec < u8 > ,
2727}
2828
@@ -61,7 +61,7 @@ impl HOTP {
6161 }
6262}
6363
64- /// All otp generation methods for the [`TOTP `] struct.
64+ /// All otp generation methods for the [`HOTP `] struct.
6565
6666impl HOTP {
6767 /// Generates and returns the HOTP value
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub struct TOTP {
2121 /// The secret key used in the HMAC process.
2222 ///
2323 /// 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 `]
2525 /// initializers.
2626 secret : Vec < u8 > ,
2727
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ use sha2::{Sha256, Sha512};
1111///
1212/// SHA1 is still primarily used, and some other authenticator applications
1313/// may not support other digest algorithms.
14+ ///
15+ /// [RFC6238]: https://datatracker.ietf.org/doc/html/rfc6238
1416
1517#[ derive( Debug , Copy , Clone , Hash ) ]
1618pub enum MacDigest {
You can’t perform that action at this time.
0 commit comments