From: Markus Triska Date: Thu, 21 May 2020 11:41:57 +0000 (+0200) Subject: document that lists of integers can be specified if encoding(octet) is used X-Git-Tag: v0.8.123~7^2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=1108c99688b926a00716fbe960fd416b3ed193a4;p=scryer-prolog.git document that lists of integers can be specified if encoding(octet) is used This seems to be a good compromise: The API now strongly encourages lists of characters, which are ideally suited to represent text, and also allows lists of bytes if the encoding(octet) option is used. --- diff --git a/src/prolog/lib/crypto.pl b/src/prolog/lib/crypto.pl index 67fef071..cd7f93c5 100644 --- a/src/prolog/lib/crypto.pl +++ b/src/prolog/lib/crypto.pl @@ -10,6 +10,10 @@ Especially for cryptographic applications, it as an advantage that using strings leaves little trace of what was processed in the system. + + For predicates that accept an encoding/1 option to specify the encoding + of the input data, if encoding(octet) is used, then the input can also + be specified as a list of bytes, i.e., integers between 0 and 255. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ :- module(crypto,