[][src]Module koibumi_core::crypto

Provides methods to encrypt/decrypt Bitmessage messages.

Structs

Encrypted

A encrypted message.

KeyPair

A pair of a public key and a private key.

PrivateKey

A private key.

PublicKey

A public key.

Signature

A signature.

TooShortError

This error indicates that the provided length was shorter than the minimum.

Enums

DecryptError

This error indicates that the decryption failed.

EncryptError

This error indicates that the encryption failed.

PrivateKeyError

This error indicates that the operation on a private key failed.

PublicKeyError

This error indicates that the operation on a public key failed.

SignError

This error indicates that the signing failed.

VerifyError

This error indicates that the verification failed.

Functions

sign

Signs on data using a private key.

verify

Verifies a signature of data using a public key.