signal-desktop/libtextsecure
lilia ac7c95fed0 Validate argument lengths in crypto.js
These functions accept an array buffer and extract an AES and MAC key
from it without verifying it has the appropriate length. Ciphertext
messages are similarly dissected. The slice function does not raise an
error on out of bounds accesses but instead returns an empty or
partially-filled array. Empty or short arrays will be passed through to
the window.crypto.subtle API, where they will raise an error. We should
not rely on the Web Crypto API to validate key lengths or for MAC checks
to fail. Instead, validate the lengths of given parameters before
extracting their components.

// FREEBIE
2015-10-27 13:58:23 -07:00
..
storage Simplify filter predicate 2015-10-01 21:11:41 -07:00
test Move jquery from libtextsecure components 2015-10-19 12:51:59 -07:00
account_manager.js Reconnect provisioning socket 2015-10-23 18:33:07 -07:00
api.js Improve stack traces on HTTPErrors 2015-10-11 12:12:11 -07:00
axolotl_wrapper.js Pass bytebuffer to axolotlInstance 2015-10-02 00:03:49 -07:00
components.js Move jquery from libtextsecure components 2015-10-19 12:51:59 -07:00
contacts_parser.js Support for group sync 2015-06-25 13:24:32 -07:00
crypto.js Validate argument lengths in crypto.js 2015-10-27 13:58:23 -07:00
errors.js Refactor sendMessageToDevices 2015-10-10 16:36:30 -07:00
helpers.js Move handleAttachment and processDecrypted 2015-10-01 18:43:07 -07:00
key_worker.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
libaxolotl.js Plumb keys into outgoing conflicts 2015-07-20 16:13:17 -07:00
message_receiver.js Process incoming messages in order 2015-10-26 14:18:24 -07:00
outgoing_message.js Handle exceptions when fetching keys for devices 2015-10-23 15:53:20 -07:00
protobufs.js Load protobufs asynchronously. Fixes #223 2015-05-15 11:38:14 -07:00
sendmessage.js Refactor contents of sendMessageProto 2015-10-23 15:53:20 -07:00
storage.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
stringview.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
websocket-resources.js Simplify keepalive resets 2015-10-23 15:44:03 -07:00