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
fn lair_get_server_info(&self) -> LairClientApiFuture<LairServerInfo>
fn lair_get_server_info(&self) -> LairClientApiFuture<LairServerInfo>
Get lair server info.
fn lair_get_last_entry_index(&self) -> LairClientApiFuture<KeystoreIndex>
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>
fn lair_get_entry_type(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<LairEntryType>
Get the entry type for a given index.
fn tls_cert_new_self_signed_from_entropy(
&self,
options: TlsCertOptions
) -> LairClientApiFuture<(KeystoreIndex, CertSni, CertDigest)>
fn tls_cert_new_self_signed_from_entropy(
&self,
options: TlsCertOptions
) -> LairClientApiFuture<(KeystoreIndex, CertSni, CertDigest)>
Create a new self-signed tls certificate.
fn tls_cert_get(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<(CertSni, CertDigest)>
fn tls_cert_get(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<(CertSni, CertDigest)>
Get tls cert info by keystore index.
fn tls_cert_get_cert_by_index(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<Cert>
fn tls_cert_get_cert_by_index(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<Cert>
Fetch the certificate by entry index.
fn tls_cert_get_cert_by_digest(
&self,
cert_digest: CertDigest
) -> LairClientApiFuture<Cert>
fn tls_cert_get_cert_by_digest(
&self,
cert_digest: CertDigest
) -> LairClientApiFuture<Cert>
Fetch the certificate by digest.
fn tls_cert_get_cert_by_sni(
&self,
cert_sni: CertSni
) -> LairClientApiFuture<Cert>
fn tls_cert_get_cert_by_sni(
&self,
cert_sni: CertSni
) -> LairClientApiFuture<Cert>
Fetch the certificate by sni.
fn tls_cert_get_priv_key_by_index(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<CertPrivKey>
fn tls_cert_get_priv_key_by_index(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<CertPrivKey>
Fetch the certificate private key by entry index.
fn tls_cert_get_priv_key_by_digest(
&self,
cert_digest: CertDigest
) -> LairClientApiFuture<CertPrivKey>
fn tls_cert_get_priv_key_by_digest(
&self,
cert_digest: CertDigest
) -> LairClientApiFuture<CertPrivKey>
Fetch the certificate private key by digest.
fn tls_cert_get_priv_key_by_sni(
&self,
cert_sni: CertSni
) -> LairClientApiFuture<CertPrivKey>
fn tls_cert_get_priv_key_by_sni(
&self,
cert_sni: CertSni
) -> LairClientApiFuture<CertPrivKey>
Fetch the certificate private key by sni.
Create a new signature ed25519 keypair from entropy.
fn sign_ed25519_get(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<SignEd25519PubKey>
fn sign_ed25519_get(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<SignEd25519PubKey>
Get ed25519 keypair info by keystore index.
fn sign_ed25519_sign_by_index(
&self,
keystore_index: KeystoreIndex,
message: Arc<Vec<u8>>
) -> LairClientApiFuture<SignEd25519Signature>
fn sign_ed25519_sign_by_index(
&self,
keystore_index: KeystoreIndex,
message: Arc<Vec<u8>>
) -> LairClientApiFuture<SignEd25519Signature>
Generate a signature for message by keystore index.
fn sign_ed25519_sign_by_pub_key(
&self,
pub_key: SignEd25519PubKey,
message: Arc<Vec<u8>>
) -> LairClientApiFuture<SignEd25519Signature>
fn sign_ed25519_sign_by_pub_key(
&self,
pub_key: SignEd25519PubKey,
message: Arc<Vec<u8>>
) -> LairClientApiFuture<SignEd25519Signature>
Generate a signature for message by signature pub key.
fn x25519_new_from_entropy(
&self
) -> LairClientApiFuture<(KeystoreIndex, X25519PubKey)>
fn x25519_new_from_entropy(
&self
) -> LairClientApiFuture<(KeystoreIndex, X25519PubKey)>
Generate new x25519 keypair from entropy.
fn x25519_get(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<X25519PubKey>
fn x25519_get(
&self,
keystore_index: KeystoreIndex
) -> LairClientApiFuture<X25519PubKey>
Get x25519 keypair by keystore index.
fn crypto_box_by_index(
&self,
keystore_index: KeystoreIndex,
recipient: X25519PubKey,
data: Arc<CryptoBoxData>
) -> LairClientApiFuture<CryptoBoxEncryptedData>
fn crypto_box_by_index(
&self,
keystore_index: KeystoreIndex,
recipient: X25519PubKey,
data: Arc<CryptoBoxData>
) -> LairClientApiFuture<CryptoBoxEncryptedData>
Generate encrypted crypto box data by sender keystore index for recipient pubkey.
fn crypto_box_by_pub_key(
&self,
pub_key: X25519PubKey,
recipient: X25519PubKey,
data: Arc<CryptoBoxData>
) -> LairClientApiFuture<CryptoBoxEncryptedData>
fn crypto_box_by_pub_key(
&self,
pub_key: X25519PubKey,
recipient: X25519PubKey,
data: Arc<CryptoBoxData>
) -> LairClientApiFuture<CryptoBoxEncryptedData>
Generate encrypted crypto box data by sender pubkey for recipient pubkey.
fn crypto_box_open_by_index(
&self,
keystore_index: KeystoreIndex,
sender: X25519PubKey,
encrypted_data: Arc<CryptoBoxEncryptedData>
) -> LairClientApiFuture<Option<CryptoBoxData>>
fn crypto_box_open_by_index(
&self,
keystore_index: KeystoreIndex,
sender: X25519PubKey,
encrypted_data: Arc<CryptoBoxEncryptedData>
) -> LairClientApiFuture<Option<CryptoBoxData>>
Open crypto box previously generated by recipient keystore index from sender pubkey.
fn crypto_box_open_by_pub_key(
&self,
pub_key: X25519PubKey,
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>>
Open crypto box previously generated by recipient pubkey from sender pubkey.