Crate signcryption

Source

Structs§

Keypair
A signcryption keypair used to sign, verify and encrypt messages.
SignCrypt
Data structure containing the ciphertext, signature and additional data
SignState
Used to hold intermediate values during the signcryption process.

Enums§

Curve
The curve used, variants are Ristretto255 or Edwards25519. Ristretto255 is recommended and the default variant.
SignCryptError
Signcryption failure modes

Constants§

MACBYTES
Tag length
PUBLICKEYBYTES
Length of the public key
SECRETKEYBYTES
Length of the secret key
SEEDBYTES
Length of the seed for keypair creation
SHAREDBYTES
Length of the generated shared secret
SIGNBYTES
Length of the resulting signature

Functions§

ed25519_verify_before
Convenience function for verify_before
ristretto255_verify_before
Convenience function for verify_before
sign_after
Signing after encryption
sign_before
Message signing before encryption
signcrypt
Signs and encrypts a Message
unsigncrypt
Verifies and decrypts a SignCrypt struct
verify_after
Message verification after decryption
verify_before
Message verification before decryption
verify_public
Verifies the data was signed by a specific sender to a receiver without enabling the ability to decrypt the ciphertext