Trait lair_keystore_api::actor::LairClientApiSender[][src]

pub trait LairClientApiSender: GhostChannelSender<LairClientApi> {
Show 21 methods fn lair_get_server_info(&self) -> LairClientApiFuture<LairServerInfo> { ... }
fn lair_get_last_entry_index(&self) -> LairClientApiFuture<KeystoreIndex> { ... }
fn lair_get_entry_type(
        &self,
        keystore_index: KeystoreIndex
    ) -> LairClientApiFuture<LairEntryType> { ... }
fn tls_cert_new_self_signed_from_entropy(
        &self,
        options: TlsCertOptions
    ) -> LairClientApiFuture<(KeystoreIndex, CertSni, CertDigest)> { ... }
fn tls_cert_get(
        &self,
        keystore_index: KeystoreIndex
    ) -> LairClientApiFuture<(CertSni, CertDigest)> { ... }
fn tls_cert_get_cert_by_index(
        &self,
        keystore_index: KeystoreIndex
    ) -> LairClientApiFuture<Cert> { ... }
fn tls_cert_get_cert_by_digest(
        &self,
        cert_digest: CertDigest
    ) -> LairClientApiFuture<Cert> { ... }
fn tls_cert_get_cert_by_sni(
        &self,
        cert_sni: CertSni
    ) -> LairClientApiFuture<Cert> { ... }
fn tls_cert_get_priv_key_by_index(
        &self,
        keystore_index: KeystoreIndex
    ) -> LairClientApiFuture<CertPrivKey> { ... }
fn tls_cert_get_priv_key_by_digest(
        &self,
        cert_digest: CertDigest
    ) -> LairClientApiFuture<CertPrivKey> { ... }
fn tls_cert_get_priv_key_by_sni(
        &self,
        cert_sni: CertSni
    ) -> LairClientApiFuture<CertPrivKey> { ... }
fn sign_ed25519_new_from_entropy(
        &self
    ) -> LairClientApiFuture<(KeystoreIndex, SignEd25519PubKey)> { ... }
fn sign_ed25519_get(
        &self,
        keystore_index: KeystoreIndex
    ) -> LairClientApiFuture<SignEd25519PubKey> { ... }
fn sign_ed25519_sign_by_index(
        &self,
        keystore_index: KeystoreIndex,
        message: Arc<Vec<u8>>
    ) -> LairClientApiFuture<SignEd25519Signature> { ... }
fn sign_ed25519_sign_by_pub_key(
        &self,
        pub_key: SignEd25519PubKey,
        message: Arc<Vec<u8>>
    ) -> LairClientApiFuture<SignEd25519Signature> { ... }
fn x25519_new_from_entropy(
        &self
    ) -> LairClientApiFuture<(KeystoreIndex, X25519PubKey)> { ... }
fn x25519_get(
        &self,
        keystore_index: KeystoreIndex
    ) -> LairClientApiFuture<X25519PubKey> { ... }
fn crypto_box_by_index(
        &self,
        keystore_index: KeystoreIndex,
        recipient: X25519PubKey,
        data: Arc<CryptoBoxData>
    ) -> LairClientApiFuture<CryptoBoxEncryptedData> { ... }
fn crypto_box_by_pub_key(
        &self,
        pub_key: X25519PubKey,
        recipient: X25519PubKey,
        data: Arc<CryptoBoxData>
    ) -> LairClientApiFuture<CryptoBoxEncryptedData> { ... }
fn crypto_box_open_by_index(
        &self,
        keystore_index: KeystoreIndex,
        sender: X25519PubKey,
        encrypted_data: Arc<CryptoBoxEncryptedData>
    ) -> LairClientApiFuture<Option<CryptoBoxData>> { ... }
fn crypto_box_open_by_pub_key(
        &self,
        pub_key: X25519PubKey,
        sender: X25519PubKey,
        encrypted_data: Arc<CryptoBoxEncryptedData>
    ) -> LairClientApiFuture<Option<CryptoBoxData>> { ... }
}
Expand description

Lair Client Actor Api.

Provided methods

Get lair server info.

fn lair_get_last_entry_index(&self) -> LairClientApiFuture<KeystoreIndex>

Get the highest entry index. Note, some entries my be stubs / erased values.

fn lair_get_entry_type(
    &self,
    keystore_index: KeystoreIndex
) -> LairClientApiFuture<LairEntryType>

Get the entry type for a given index.

Create a new self-signed tls certificate.

Get tls cert info by keystore index.

Fetch the certificate by entry index.

Fetch the certificate by digest.

Fetch the certificate by sni.

Fetch the certificate private key by entry index.

Fetch the certificate private key by digest.

Fetch the certificate private key by sni.

Create a new signature ed25519 keypair from entropy.

Get ed25519 keypair info by keystore index.

Generate a signature for message by keystore index.

Generate a signature for message by signature pub key.

Generate new x25519 keypair from entropy.

Get x25519 keypair by keystore index.

Generate encrypted crypto box data by sender keystore index for recipient pubkey.

Generate encrypted crypto box data by sender pubkey for recipient pubkey.

Open crypto box previously generated by recipient keystore index from sender pubkey.

Open crypto box previously generated by recipient pubkey from sender pubkey.

Implementors