Commit Graph

63 Commits (6e2a85ccf1cf228627e1ccae787ab184fe387d50)

Author SHA1 Message Date
lilia 1023ea1732 Refactor textsecure.protos -> textsecure.protobuf
DRY up protobuf declarations and move to a slightly briefer naming
convention.

Also dropped some ArrayBuffer -> string conversions as
ProtoBuf.js handles ArrayBuffers just fine, and in fact, more
efficiently than strings.

Finally, dropped the btoa() wrappers, because that incurs an extra
string -> string conversion before the protobuf's internal string ->
array buffer conversion. In lieu of btoa, we can simply pass in the
optional string encoding argument to the protobuf's decode method,
which in these cases should be 'binary'.

Related: #17
11 years ago
lilia d7edfd4efb Remove reference to undefined function 11 years ago
Matt Corallo d6d17eaf19 Remove unused function 11 years ago
Matt Corallo f6f35c5b61 Fix a missing function and dont blow up on delivery receipts 11 years ago
Matt Corallo a6b0d1f84b Add entirely untested secondary device init 11 years ago
Matt Corallo 6455da5c9a Refactor a bunch of stuff re: session closing, add test cases 11 years ago
Matt Corallo c427da04f0 Add closeSession tests as Alice and fix re-requesting prekeys 11 years ago
Matt Corallo 6f3ee151f3 Add a BOB test-case around session closure 11 years ago
Matt Corallo a6426194ef Update BOB test cases 11 years ago
Matt Corallo 957587bd9a Add identity keys to MAC, begin updating test cases 11 years ago
Matt Corallo eab0911d3d I lied, there is no verification tag 11 years ago
Matt Corallo ebcfd4736e Fix session lookup in duplicate prekeymessage case 11 years ago
Matt Corallo 5040bfbe44 Fix pending verifications 11 years ago
Matt Corallo a76ae2f1f8 Add verification tags, make alice tests strict(ish) again 11 years ago
Matt Corallo 287b55120d First cut of ALICE test vectors 11 years ago
Matt Corallo 0d4ae6a8cb Fix undefined variable in for's (browser update to strict mode?) 11 years ago
Matt Corallo de83429962 v3 steps 11 years ago
Matt Corallo 66bf371aa7 Use staging server (ie update to server keys v2) and protocolv3 11 years ago
Matt Corallo 53f8ac9ad9 Generate signed keys (breaks registration) 11 years ago
Matt Corallo 4c3ee6f23b Compare equality w/o getString (in the future) 11 years ago
Matt Corallo 3190fe97f9 HMAC Update for Protov3 11 years ago
Matt Corallo b5c6e3d101 JS ed25519 11 years ago
Matt Corallo a2da4fffb0 Remove useless function 11 years ago
Matt Corallo 92514ad08f Fix missing baseKey 11 years ago
Matt Corallo ceca03c5d0 Close chainKey.key 11 years ago
Matt Corallo c953c6c16d closeSession 11 years ago
Matt Corallo d0fd3e94d8 sendMessage refactor, initial group stuff (breaks message storage) 11 years ago
Matt Corallo cf35b7056f Retry API, standardize <script> list 11 years ago
Matt Corallo c2d1d816f2 Save sessions in deviceObjects, test using fake_api, minor tweaks 11 years ago
Matt Corallo eb80a10ed1 Fix new function(){}() typo (thanks codedust on GitHub) 11 years ago
Matt Corallo aec36468bc Request new keys (largely untested) 11 years ago
Matt Corallo 68131a6e2a Add human readable version of errors 11 years ago
Matt Corallo 2d12a33ead Fix decoding/protos/tests 11 years ago
Matt Corallo 21b95ce1d3 Re-create some of d9bf0a4, which was broken and reverted in 1e6720 11 years ago
Matt Corallo d387cd22f5 s/getEncodedNumber// (with XXXs) 11 years ago
Matt Corallo 9aae93fc99 textsecure.protos 11 years ago
lilia 1e672030de Fix a couple things broken in d9bf0a4
Slight revert from said commit. We really do need the
IncomingPushMessageSignal protobuf at the UI layer, mostly because
it contains the 'source' attribute, without which we don't know
who sent the message.

Also fix a crash when there are no attachments on a message.
11 years ago
Matt Corallo d9bf0a41fb textsecure.storage, chromium.js 11 years ago
Matt Corallo ee2f43aba4 Fix, display (image) attachments 11 years ago
Marco 14ebef70cb fixed 'TypeError: Promise.resolve is not a constructor' in Firefox 11 years ago
Matt Corallo 4efb8a2616 Fix NaCL (maybe it should be removed?) 11 years ago
Matt Corallo 6bc19ef558 More namespacing 11 years ago
Matt Corallo 05101b69b0 Some initial helpers.js namespaceing 11 years ago
Matt Corallo 07a23f0759 Fix attachments 11 years ago
Matt Corallo 3103eaa192 Commit broken attachment loader (S3 403s I can't figure out...) 11 years ago
Matt Corallo ea1bd535dc Fix interpretation of prekeymsg.registrationId 11 years ago
Matt Corallo 2f16b884a5 Fixup last commit 11 years ago
Matt Corallo e3097746c0 Check registration ID on prekeymsg 11 years ago
Matt Corallo 76e7dcb77d Clean up session retreival (fixes #30) 11 years ago
Matt Corallo 8d408e6d8f THOUGH SALL USE TABSTOP AND SHIFTWIDTH 4 (so that indents read right) 11 years ago