fork-openpgpjs/test/general
Daniel Huigens 2b30ab9c8f Replace data with message parameter in encrypt() and sign()
When encrypting/signing a stream, this allows you to indicate whether it's a
stream of Strings or Uint8Arrays (using message.fromText or message.fromBinary,
respectively.)

When signing text, this allows you to control whether to create a cleartext
message or a regular armored text message.

When creating a detached signature, it allows you to control whether it's "meant
for" (verifying against) a cleartext message. A cleartext message has trailing
whitespace trimmed before signing. This fixes the case of passing a detached
signature from sign() to encrypt(). Since encrypt() doesn't create a cleartext
message, the signature would be invalid if the text contained lines with
trailing whitespace.
2018-08-10 14:46:29 +02:00
..
armor.js Pass more tests 2018-08-10 14:44:01 +02:00
brainpool.js Replace data with message parameter in encrypt() and sign() 2018-08-10 14:46:29 +02:00
decompression.js Make (de)armoring and packet reading asynchronous 2018-08-10 14:44:01 +02:00
ecc_nist.js Replace data with message parameter in encrypt() and sign() 2018-08-10 14:46:29 +02:00
hkp.js Use let and const ES6 features. 2018-02-13 23:33:09 +01:00
index.js Streaming encryption (Web) 2018-08-10 14:44:01 +02:00
key.js Replace data with message parameter in encrypt() and sign() 2018-08-10 14:46:29 +02:00
keyring.js Make (de)armoring and packet reading asynchronous 2018-08-10 14:44:01 +02:00
oid.js OID's stored as Uint8Array 2018-03-01 11:35:16 -08:00
openpgp.js Replace data with message parameter in encrypt() and sign() 2018-08-10 14:46:29 +02:00
packet.js Wait for data to be read before resolving signatures 2018-08-10 14:46:28 +02:00
signature.js Replace data with message parameter in encrypt() and sign() 2018-08-10 14:46:29 +02:00
streaming.js Replace data with message parameter in encrypt() and sign() 2018-08-10 14:46:29 +02:00
testInputs.js Fix signatures of messages with leading/trailing whitespace 2018-08-10 14:46:29 +02:00
util.js Transfer Streams to Workers 2018-08-10 14:44:01 +02:00
wkd.js Add Web Key Directory lookup 2018-05-29 21:21:24 +02:00
x25519.js Replace data with message parameter in encrypt() and sign() 2018-08-10 14:46:29 +02:00