]> Repositorios git - scryer-prolog.git/commitdiff
document that lists of integers can be specified if encoding(octet) is used
authorMarkus Triska <[email protected]>
Thu, 21 May 2020 11:41:57 +0000 (13:41 +0200)
committerMarkus Triska <[email protected]>
Thu, 21 May 2020 11:41:57 +0000 (13:41 +0200)
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.

src/prolog/lib/crypto.pl

index 67fef0717bb6799207d580ead6ed5716361c6182..cd7f93c5d3cb44386739522e81c91f54fe8952c6 100644 (file)
 
    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,