Struct recrypt::api_480::Recrypt480[]

pub struct Recrypt480<H, S, R> { /* fields omitted */ }
Expand description

Recrypt public API - 480-bit If you are looking better performance, you might consider the 256-bit API in api.rs

Implementations

Construct a new Recrypt480 with pre-selected CSPRNG implementation.

The RNG will periodically reseed itself from the system’s best entropy source.

Construct a Recrypt480 with the given RNG. Unless you have specific needs using new() is recommended.

Trait Implementations

Using the random_bytes, generate a random element of G_T, which is one of the rth roots of unity in FP12. Read more

Convert our plaintext into a DecryptedSymmetricKey by hashing it. Typically you either use derive_private_key or derive_symmetric_key but not both. Read more

Derive a private key for a plaintext by hashing it twice (with known leading bytes) and modding it by the prime. Typically you either use derive_private_key or derive_symmetric_key but not both. Read more

Encrypt the plaintext to the to_public_key. Read more

Decrypt the value using private_key. Read more

Transform the value encrypted_value using the transform_key. The returned value can be decrypted by the private key associated to the to_public_key in the transform_key. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Generate a signing key pair for use with the Ed25519Signing trait using the random number generator used to back the RandomBytes struct.

Compute a PublicKey given a PrivateKey

Generate a random private key. Read more

Generate a public/private keypair. Read more

Generate a transform key which is used to delegate to the to_public_key from the from_private_key. Read more

Create a signature for the message using priv_key. Read more

Verify that the message was signed by the matching private key to pub_key. Note that if pub_key was augmented the private key used in the augmentation should be passed in as augmenting_priv_key. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Completely overwrites this value.

Performs the conversion.

Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.