mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
handle no domain separator case in keystore
This commit is contained in:
parent
04c7933c87
commit
29017766f4
2 changed files with 2 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ impl fmt::Display for KeywrapError {
|
||||||
KeywrapError::InvalidKekSize => f.write_str("Invalid key size"),
|
KeywrapError::InvalidKekSize => f.write_str("Invalid key size"),
|
||||||
KeywrapError::InvalidOutputSize => f.write_str("Invalid output size"),
|
KeywrapError::InvalidOutputSize => f.write_str("Invalid output size"),
|
||||||
KeywrapError::IntegrityCheckFailed => f.write_str("Authentication failed"),
|
KeywrapError::IntegrityCheckFailed => f.write_str("Authentication failed"),
|
||||||
|
KeywrapError::NoDomainSeperator => f.write_str("Missing domain separator"),
|
||||||
KeywrapError::UpgradeToNew((_k, _wk)) => {
|
KeywrapError::UpgradeToNew((_k, _wk)) => {
|
||||||
f.write_str("Legacy migration detected! New wrapped key transmitted to caller")
|
f.write_str("Legacy migration detected! New wrapped key transmitted to caller")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ pub enum KeywrapError {
|
||||||
InvalidKekSize,
|
InvalidKekSize,
|
||||||
InvalidOutputSize,
|
InvalidOutputSize,
|
||||||
IntegrityCheckFailed,
|
IntegrityCheckFailed,
|
||||||
|
NoDomainSeperator,
|
||||||
/// this is a bodge to return an error code that upgrades from a faulty early version of AES-KWP
|
/// this is a bodge to return an error code that upgrades from a faulty early version of AES-KWP
|
||||||
/// only works for 256-bit keys, but that is also all we used.
|
/// only works for 256-bit keys, but that is also all we used.
|
||||||
/// The return tuple is: (unwrapped key, correctly wrapped key)
|
/// The return tuple is: (unwrapped key, correctly wrapped key)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue