Module prio::encrypt [−][src]
Utilities for ECIES encryption / decryption
Structs
PrivateKey | NIST P-256, private key |
PublicKey | NIST P-256, public key in X9.62 uncompressed format |
Enums
EncryptError | Possible errors from encryption / decryption. |
Constants
PUBLICKEY_LENGTH | Length of the EC public key (X9.62 format) |
TAG_LENGTH | Length of the AES-GCM tag |
Functions
decrypt_share | Decrypt a bytestring using the private key |
encrypt_share | Encrypt a bytestring using the public key |