Enum ockam_vault::VaultError [−][src]
pub enum VaultError {
Show 16 variants
SecretFromAnotherVault,
InvalidPublicKey,
UnknownEcdhKeyType,
InvalidKeyType,
EntryNotFound,
InvalidAesKeyLength,
InvalidHkdfOutputType,
InvalidPrivateKeyLen,
AeadAesGcmEncrypt,
AeadAesGcmDecrypt,
HkdfExpandError,
SecretNotFound,
InvalidCurve25519SecretLength,
InvalidCurve25519Secret,
InvalidBlsSecretLength,
InvalidBlsSecret,
}
Expand description
Represents the failures that can occur in an Ockam vault
Variants
Secret does not belong to this vault
Public key is invalid
Unknown ECDH key type
Invalid key type
Entry not found
Invalid AES key length
Invalid HKDF outputtype
Invalid private key length
AES encryption failed
AES decryption failed
HKDF key expansion failed
Secret not found
Invalid Curve25519 secret length
Invalid Curve25519 secret (scalar not clamped)
Invalid BLS secret length
Invalid BLS secret
Implementations
Integer code associated with the error domain.
Descriptive name for the error domain.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for VaultError
impl Send for VaultError
impl Sync for VaultError
impl Unpin for VaultError
impl UnwindSafe for VaultError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more