hybrid/hybrid_pke library

Classes

ASECombinedCipher
Final class for the combined ciphertext It contains the KEM ciphertext, nonce, ciphertext, AAD, and salt

Functions

decryptString(ASECombinedCipher cc, ASEPrivateKey sk) Future<String>
Decrypts a string using the hybrid PKE scheme It uses the private key (sk) to generate a shared secret and then uses AES-GCM to decrypt the ciphertext (ct)
encryptString(String pt, ASEPublicKey pk) Future<ASECombinedCipher>
Encrypts a string using the hybrid PKE scheme It uses the public key (pk) to generate a shared secret and then uses AES-GCM to encrypt the plaintext (pt)