Set DEFAULT_SCHEME public
This commit is contained in:
parent
51d543a064
commit
af2c83f934
2 changed files with 6 additions and 5 deletions
|
@ -195,9 +195,10 @@ impl InputKeyMaterialList {
|
|||
Self::default()
|
||||
}
|
||||
|
||||
/// Add a new IKM to the list. The `not_before` field will be set to the current timestamp and
|
||||
/// the `not_after` will be set to the current timestamp plus the value of
|
||||
/// [DEFAULT_IKM_DURATION][crate::DEFAULT_IKM_DURATION].
|
||||
/// Add a new IKM to the list. The scheme will be set to the value of
|
||||
/// [DEFAULT_SCHEME][crate::DEFAULT_SCHEME], the `not_before` field will be set to the current
|
||||
/// timestamp and the `not_after` will be set to the current timestamp incremented with the
|
||||
/// value of [DEFAULT_IKM_DURATION][crate::DEFAULT_IKM_DURATION].
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
|
@ -45,6 +45,6 @@ pub const DEFAULT_IKM_DURATION: u64 = 315_569_252;
|
|||
/// [tropical_year]: https://en.wikipedia.org/wiki/Tropical_year
|
||||
#[cfg(feature = "encryption")]
|
||||
pub const DEFAULT_KEY_CTX_PERIODICITY: u64 = 31_556_925;
|
||||
/// Default scheme used when adding a new IKM.
|
||||
/// Default scheme used when adding a new IKM. The value is `XChaCha20Poly1305WithBlake3`.
|
||||
#[cfg(feature = "ikm-management")]
|
||||
const DEFAULT_SCHEME: Scheme = Scheme::XChaCha20Poly1305WithBlake3;
|
||||
pub const DEFAULT_SCHEME: Scheme = Scheme::XChaCha20Poly1305WithBlake3;
|
||||
|
|
Loading…
Reference in a new issue