Crate ockam_vault_core

Crate ockam_vault_core 

Source
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§

PublicKey
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)
SecretAttributes
Attributes for a specific vault SecretKey
SecretKey
Binary representation of a Secret.
Signature
Binary representation of Signature

Enums§

SecretPersistence
Possible SecretKey’s persistence
SecretType
All possible SecretTypes

Constants§

AES128_SECRET_LENGTH
AES128 private key length
AES256_SECRET_LENGTH
AES256 private key length
CURVE25519_PUBLIC_LENGTH
Curve25519 public key length
CURVE25519_SECRET_LENGTH
Curve25519 private key length
P256_PUBLIC_LENGTH
P256 public key length
P256_SECRET_LENGTH
P256 private key length

Traits§

AsymmetricVault
Vault with asymmetric encryption functionality
Hasher
A trait for hashing data into fixed length output
KeyIdVault
Key id related vault functionality
SecretVault
Secret-management functionality
Signer
Signing functionality
SymmetricVault
Trait with symmetric encryption
Verifier
Signature verification functionality

Type Aliases§

Buffer
Buffer for large binaries (e.g. encrypted data)
KeyId
ID of a Key
PublicKeyVec
Public Key Vector
SecretKeyVec
Secret Key Vector
SignatureVec
Signature Vector
SmallBuffer
Buffer for small vectors (e.g. array of attributes)