Authenticated encryption in library(crypto), new encoding/1 option for hashes (#515)

* shorten n_newlines//1

* remove unneeded variable

* ADDED: authenticated encryption and decryption with ChaCha20-Poly1305

* ADDED: encoding/1 option for crypto_data_hash/3 and crypto_data_hkdf/4
This commit is contained in:
Markus Triska
2020-05-16 19:51:41 +02:00
committed by GitHub
parent 9e0208ec71
commit 862ae26631
5 changed files with 295 additions and 29 deletions

View File

@@ -380,7 +380,7 @@ The modules that ship with Scryer Prolog are also called
* [`crypto`](src/prolog/lib/crypto.pl)
Cryptographically secure random numbers and hashes, HMAC-based
key derivation (HKDF), password-based key derivation (PBKDF2),
and reasoning about elliptic curves.
authenticated encryption, and reasoning about elliptic curves.
To read contents of external files, use `phrase_from_file/2` from
[`library(pio)`](src/prolog/lib/pio.pl) to apply a DCG to