Home GnuPG
Diffusion GPGME 129fa919b935

js: improve decryption performance

Description

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 rrenkert@intevation.de 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.

Details

Provenance
mkrambachAuthored on Aug 22 2018, 4:32 PM
Parents
rM94a0ed361ea0: js: Return error if signature has no fingerprint
Branches
Unknown
Tags
Unknown