Type Definition askar_crypto::alg::AnyKey[][src]

pub type AnyKey = KeyT<dyn AnyKeyAlg + Send + Sync>;
Expand description

The type-erased representation for a concrete key instance

Trait Implementations

Encrypt a secret value in place, appending the verification tag and returning the length of the ciphertext Read more

Decrypt an encrypted (verification tag appended) value in place

Get the nonce and tag length for encryption

Get the ciphertext padding required

Check the validity of signature over a message with the specified signature type. Read more

Create a signature of the requested type and write it to the provided buffer. Read more

This is supported on crate feature alloc only.

Create a signature of the requested type and return an allocated buffer. Read more

Write the JWK representation to an encoder

This is supported on crate feature alloc only.

Create the JWK thumbprint of the key

This is supported on crate feature alloc only.

Create a JWK of the public key

This is supported on crate feature alloc only.

Create a JWK of the secret key

Get the length of a public key

Write the key public bytes to a buffer.

This is supported on crate feature alloc only.

Write the key public bytes to a new allocated buffer.

Get the length of a secret key

Write the key secret bytes to a buffer.

This is supported on crate feature alloc only.

Write the key secret bytes to a new allocated buffer.