Module didcomm_rs::crypto[][src]

Re-exports

pub use encryptor::CryptoAlgorithm;
pub use signer::SignatureAlgorithm;

Modules

encryptor
signer

Enums

Error

Traits

Cypher

Trait must be implemented for plugable cryptography. Implemented by CryptoAlgorithm with raw-crypto feature.

Signer

Trait must be implemented for plugablu signatures. Implemented by SignatureAlgorithm with raw-crypto feature.

Type Definitions

AssymetricCyptherMethod

Return FnOnce signature definition for assymmetric cryptography method. Arguments sequence: Nonce, Key, Message.

SigningMethod

Return FnOnce signature definition for signature signing method. .0 == key: &[u8]; .1 == message;

SymmetricCypherMethod

Return FnOnce signature definition for symmetric cryptography method. Arguments sequence: Nonce, Key, Message.

ValidationMethod

Return FnOnce signature definition for signature validating method. .0 == key: &[u8]; .1 == message; .2 == signature;