diff options
author | Maximilian Krambach <[email protected]> | 2018-08-22 14:32:31 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-08-22 14:32:31 +0000 |
commit | 129fa919b935d97d995bc6b457c7f6984c06e825 (patch) | |
tree | d25245b9ae7634acd99d713e12832fd97c988af0 /lang/js/src/Message.js | |
parent | js: Return error if signature has no fingerprint (diff) | |
download | gpgme-129fa919b935d97d995bc6b457c7f6984c06e825.tar.gz gpgme-129fa919b935d97d995bc6b457c7f6984c06e825.zip |
js: improve decryption performance
--
* src/Connection.js, src/Helpers.js: performance of decoding incoming
base64 data was improved to about 4 times the speed by introducing
two more efficient functions (thanks to [email protected] for
finding and testing them)
* src/gpgmejs.js: Decrypted data will now return as Uint8Array, if the
caller does not wish for a decoding. Decoding binary data will return
invalid data, and a Uint8Array may be desired. This can be indicated
by using the (new) 'binary' option in decrypt.
* src/Errors.js A new error in case this decoding fails
* src/Message.js, src/Connection.js: expected is change from base64
to binary, to avoid confusion later on.
Diffstat (limited to 'lang/js/src/Message.js')
-rw-r--r-- | lang/js/src/Message.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/src/Message.js b/lang/js/src/Message.js index b83caf6d..48813df7 100644 --- a/lang/js/src/Message.js +++ b/lang/js/src/Message.js @@ -64,7 +64,7 @@ export class GPGME_Message { } set expected (value){ - if (value === 'base64'){ + if (value === 'binary'){ this._expected = value; } } |