pub struct TpmCreds { /* private fields */ }
Trait Implementations§
source§impl CredsPriv for TpmCreds
impl CredsPriv for TpmCreds
source§impl CredsPub for TpmCreds
impl CredsPub for TpmCreds
source§fn public_sign(&self) -> &AsymKeyPub<Sign>
fn public_sign(&self) -> &AsymKeyPub<Sign>
Returns a reference to the public signing key which can be used to verify signatures.
fn concrete_pub(&self) -> ConcretePub
fn sign_kind(&self) -> Sign
source§impl Principaled for TpmCreds
impl Principaled for TpmCreds
source§impl Signer for TpmCreds
impl Signer for TpmCreds
source§fn init_sign(&self) -> Result<Box<dyn SignOp + '_>>
fn init_sign(&self) -> Result<Box<dyn SignOp + '_>>
Starts a new signing operation and returns the struct representing it.
source§fn sign(&self, parts: &mut dyn Iterator<Item = &[u8]>) -> Result<Signature>
fn sign(&self, parts: &mut dyn Iterator<Item = &[u8]>) -> Result<Signature>
Returns a signature over the given parts. It’s critical that subsequent invocations
of this method on the same instance return a Signature with
data
fields of the same
length.fn kind(&self) -> Sign
fn sign_writecap(&self, writecap: &mut Writecap) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for TpmCreds
impl Send for TpmCreds
impl Sync for TpmCreds
impl Unpin for TpmCreds
impl UnwindSafe for TpmCreds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> DecrypterExt for Twhere
T: Decrypter + ?Sized,
impl<T> DecrypterExt for Twhere T: Decrypter + ?Sized,
fn ser_decrypt<T: DeserializeOwned>(&self, ct: &Ciphertext<T>) -> Result<T>
source§impl<T> EncrypterExt for Twhere
T: Encrypter + ?Sized,
impl<T> EncrypterExt for Twhere T: Encrypter + ?Sized,
source§fn ser_encrypt<T: Serialize>(&self, value: &T) -> Result<Ciphertext<T>>
fn ser_encrypt<T: Serialize>(&self, value: &T) -> Result<Ciphertext<T>>
Serializes the given value into a new vector, then encrypts it and returns the resulting
ciphertext.