[][src]Module cryptohelpers::rsa

RSA related thingies

Structs

RsaPrivateKey

Container for the private & public parts of an RSA key

RsaPublicKey

Container for RSA public key components

Signature

Represents an RSA signature

Enums

BinaryErrorKind

Binary error reason

Error

Represents an error for RSA operations

Traits

HasComponents
HasPrivateComponents
HasPublicComponents
PrivateKey

A trait for containers that contain private and public keys

PublicKey

A trait for containers that contain public keys

Functions

decrypt

Decrypt a stream data into output with key. Return the number of bytes read.

decrypt_slice

Decrypt slice data into output with key. Return the number of bytes written.

decrypt_slice_sync

Decrypt slice data into output with key. Return the number of bytes written.

decrypt_slice_to_vec

Decrypt a slice data to a new output vector with key key

decrypt_sync

Decrypt a stream data into output with key. Return the number of bytes read.

encrypt

Encrypt a stream data into output with key. Return the number of bytes read.

encrypt_slice

Encrypt a slice data into output with key. Return the number of bytes written.

encrypt_slice_sync

Encrypt a slice data into output with key. Return the number of bytes written.

encrypt_slice_to_vec

Encrypt a slice data to a new output vector with key key

encrypt_sync

Encrypt a stream data into output with key. Return the number of bytes read.

sign

Compute the signature for this stream, returning it and the number of bytes read

sign_slice

Compute the signature for a slice of bytes

sign_sync

Compute the signature for this stream, returning it and the number of bytes read