mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Increase totp secret size (#3061)
This commit is contained in:
parent
4049cb0a3a
commit
e4f5c2313d
|
@ -10,8 +10,9 @@ use rand::prelude::*;
|
|||
use crate::be::dbvalue::{DbTotpAlgoV1, DbTotpV1};
|
||||
use crate::repl::proto::{ReplTotpAlgoV1, ReplTotpV1};
|
||||
|
||||
// This is 64 bits of entropy, as the examples in https://tools.ietf.org/html/rfc6238 show.
|
||||
const SECRET_SIZE_BYTES: usize = 8;
|
||||
// Update to match advice that totp hmac key should be the same
|
||||
// number of bytes as the output.
|
||||
const SECRET_SIZE_BYTES: usize = 32;
|
||||
pub const TOTP_DEFAULT_STEP: u64 = 30;
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
|
|
Loading…
Reference in a new issue