Module ockam_core::vault
source · Expand description
Core types and traits of the Ockam vault.
This module contains the core types and traits of the Ockam vault and is intended for use by other crates that either provide implementations for those traits, or use traits and types as an abstract dependency.
Examples
See the ockam_vault
crate for usage examples.
Modules
- Storage
- Various functions to help with testing implementations of the traits in
ockam_core::vault
.
Structs
- A public key
- A public key.
- Attributes for a specific vault.
- Binary representation of a Secret.
- Binary representation of Signature.
- Secret stored in a Vault Storage
Enums
- A secret key or reference.
- All possible
SecretKey
persistence types - All possible
SecretType
s
Constants
- AES128 private key length.
- AES128 private key length.
- AES256 private key length.
- AES256 private key length.
- Curve25519 public key length.
- Curve25519 public key length.
- Curve25519 private key length.
- Curve25519 private key length.
Traits
- Defines the Vault interface for asymmetric encryption.
- A trait for hashing input data into a fixed length output.
- Defines the
Secret
management interface for Ockam Vaults. - Defines the Vault interface for Signing.
- Defines the Vault interface for symmetric encryption.
- Defines the Vault interface for
Signature
verification.
Type Definitions
- Buffer for large binaries. (e.g. encrypted data)
- ID of a Key.
- Public Key Vector.
- Secret Key Vector.
- Signature Vector.
- Buffer for small vectors. (e.g. an array of attributes)