Expand description
Core types and traits of the Ockam vault.
This crate 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.
Structs§
- Public
Key - A public key
- Secret
- Handle to a cryptographic Secret Individual Vault implementations should map secret handles into implementation-specific Secret representations (e.g. binaries, or HSM references) stored inside Vault (e.g. using HashMap)
- Secret
Attributes - Attributes for a specific vault
SecretKey
- Secret
Key - Binary representation of a Secret.
- Signature
- Binary representation of Signature
Enums§
- Secret
Persistence - Possible
SecretKey
’s persistence - Secret
Type - All possible
SecretType
s
Constants§
- AES128_
SECRET_ LENGTH - AES128 private key length
- AES256_
SECRET_ LENGTH - AES256 private key length
- CURV
E25519_ PUBLIC_ LENGTH - Curve25519 public key length
- CURV
E25519_ SECRET_ LENGTH - Curve25519 private key length
- P256_
PUBLIC_ LENGTH - P256 public key length
- P256_
SECRET_ LENGTH - P256 private key length
Traits§
- Asymmetric
Vault - Vault with asymmetric encryption functionality
- Hasher
- A trait for hashing data into fixed length output
- KeyId
Vault - Key id related vault functionality
- Secret
Vault Secret
-management functionality- Signer
- Signing functionality
- Symmetric
Vault - Trait with symmetric encryption
- Verifier
- Signature verification functionality
Type Aliases§
- Buffer
- Buffer for large binaries (e.g. encrypted data)
- KeyId
- ID of a Key
- Public
KeyVec - Public Key Vector
- Secret
KeyVec - Secret Key Vector
- Signature
Vec - Signature Vector
- Small
Buffer - Buffer for small vectors (e.g. array of attributes)