Struct ockam_vault_sync_core::VaultSync [−][src]
pub struct VaultSync(_);
Vault sync wrapper
Implementations
impl VaultSync
[src]
pub fn start_another(&self) -> Result<Self>
[src]
Start another Vault at the same address.
impl VaultSync
[src]
pub fn create_with_mutex<T: VaultTrait>(vault: T) -> Self
[src]
Create and start a new Vault using Mutex.
pub async fn create_with_worker(
ctx: &Context,
vault_worker_address: Address,
error_domain: &'static str
) -> Result<Self>
[src]
ctx: &Context,
vault_worker_address: Address,
error_domain: &'static str
) -> Result<Self>
Create and start a new Vault using Worker.
pub async fn create<T: VaultTrait>(ctx: &Context, vault: T) -> Result<Self>
[src]
Start a Vault.
Trait Implementations
impl AsymmetricVault for VaultSync
[src]
fn ec_diffie_hellman(
&mut self,
context: &Secret,
peer_public_key: &PublicKey
) -> Result<Secret>
[src]
&mut self,
context: &Secret,
peer_public_key: &PublicKey
) -> Result<Secret>
impl Clone for VaultSync
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hasher for VaultSync
[src]
fn sha256(&mut self, data: &[u8]) -> Result<[u8; 32]>
[src]
fn hkdf_sha256(
&mut self,
salt: &Secret,
info: &[u8],
ikm: Option<&Secret>,
output_attributes: SmallBuffer<SecretAttributes>
) -> Result<SmallBuffer<Secret>>
[src]
&mut self,
salt: &Secret,
info: &[u8],
ikm: Option<&Secret>,
output_attributes: SmallBuffer<SecretAttributes>
) -> Result<SmallBuffer<Secret>>
impl KeyIdVault for VaultSync
[src]
fn get_secret_by_key_id(&mut self, key_id: &str) -> Result<Secret>
[src]
fn compute_key_id_for_public_key(
&mut self,
public_key: &PublicKey
) -> Result<KeyId>
[src]
&mut self,
public_key: &PublicKey
) -> Result<KeyId>
impl SecretVault for VaultSync
[src]
fn secret_generate(&mut self, attributes: SecretAttributes) -> Result<Secret>
[src]
fn secret_import(
&mut self,
secret: &[u8],
attributes: SecretAttributes
) -> Result<Secret>
[src]
&mut self,
secret: &[u8],
attributes: SecretAttributes
) -> Result<Secret>
fn secret_export(&mut self, context: &Secret) -> Result<SecretKey>
[src]
fn secret_attributes_get(
&mut self,
context: &Secret
) -> Result<SecretAttributes>
[src]
&mut self,
context: &Secret
) -> Result<SecretAttributes>
fn secret_public_key_get(&mut self, context: &Secret) -> Result<PublicKey>
[src]
fn secret_destroy(&mut self, context: Secret) -> Result<()>
[src]
impl Signer for VaultSync
[src]
impl SymmetricVault for VaultSync
[src]
fn aead_aes_gcm_encrypt(
&mut self,
context: &Secret,
plaintext: &[u8],
nonce: &[u8],
aad: &[u8]
) -> Result<Buffer<u8>>
[src]
&mut self,
context: &Secret,
plaintext: &[u8],
nonce: &[u8],
aad: &[u8]
) -> Result<Buffer<u8>>
fn aead_aes_gcm_decrypt(
&mut self,
context: &Secret,
cipher_text: &[u8],
nonce: &[u8],
aad: &[u8]
) -> Result<Buffer<u8>>
[src]
&mut self,
context: &Secret,
cipher_text: &[u8],
nonce: &[u8],
aad: &[u8]
) -> Result<Buffer<u8>>
impl Verifier for VaultSync
[src]
fn verify(
&mut self,
signature: &[u8; 64],
public_key: &PublicKey,
data: &[u8]
) -> Result<bool>
[src]
&mut self,
signature: &[u8; 64],
public_key: &PublicKey,
data: &[u8]
) -> Result<bool>
impl Zeroize for VaultSync
[src]
Auto Trait Implementations
impl !RefUnwindSafe for VaultSync
impl Send for VaultSync
impl Sync for VaultSync
impl Unpin for VaultSync
impl !UnwindSafe for VaultSync
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,