]> Repositorios git - scryer-prolog.git/commitdiff
remove entailed constraint
authorMarkus Triska <[email protected]>
Thu, 6 Aug 2020 21:17:08 +0000 (23:17 +0200)
committerMarkus Triska <[email protected]>
Thu, 6 Aug 2020 21:17:08 +0000 (23:17 +0200)
src/lib/crypto.pl

index af03e7d6f4ceb3618332f22e0f21080239934131..1f78c8cb4ce1bf20662cad43afde5c12b4a0b41a 100644 (file)
@@ -592,7 +592,6 @@ crypto_data_decrypt(CipherText0, Algorithm, Key, IV, PlainText, Options) :-
         encoding_chars(Encoding, AAD0, AAD),
         must_be(atom, Encoding),
         member(Encoding, [utf8,octet]),
-        must_be(list, CipherText0),
         encoding_chars(octet, CipherText0, CipherText1),
         maplist(char_code, TagChars, Tag),
         append(CipherText1, TagChars, CipherText),