Commit Graph

37 Commits

Author SHA1 Message Date
Matthew Chen 8ae200ac21 Fix build breakage around SignalCoreKit. 2018-10-01 09:07:40 -04:00
Matthew Chen 0125535d4d Pull out SignalCoreKit. 2018-10-01 09:06:40 -04:00
Matthew Chen 9b94580dae Update assertions.
* Streamline precompiled headers.
* Remove obsolete assertions in Constraints.h.
2018-09-14 14:30:06 -04:00
Michael Kirk 9ec82b9a44 graceful failure when receiving too-small profile data 2018-09-07 11:02:52 -06:00
Michael Kirk a2852ee930 Overflow math and safer asserts in Cryptography.m
Also removed some unused code
2018-09-07 11:02:52 -06:00
Michael Kirk c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen f473f60111 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 3a50377902 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 713606271c Rename fail macros in Obj-C. 2018-08-27 10:29:51 -04:00
Michael Kirk 1295a09ab3 add comment 2018-08-22 16:25:53 -06:00
Matthew Chen db3df249bf Merge NSData categories. 2018-08-09 13:50:55 -04:00
Matthew Chen 64c6d820fd Fix typo. 2018-08-06 09:26:02 -04:00
Matthew Chen d709a02493 Clean up formatting. 2018-08-06 09:02:40 -04:00
Michael Kirk 0bc03b0fd4 Move seed 2018-08-03 14:26:43 -06:00
Matthew Chen 4a4edc68e7 Clean up data. 2018-07-26 17:20:11 -06:00
Michael Kirk 8c5d6ba9bb Respond to code review. 2018-07-23 12:21:54 -06:00
Michael Kirk b42f528713 Integrate with new contact discovery endpoint
Also:
* use system cookie parsing
* add AESGCM additional authenticated data parameter

// FREEBIE
2018-07-23 12:21:54 -06:00
Matthew Chen 460f7344ad Remote attestation. 2018-07-20 09:55:18 -04:00
Matthew Chen 6686ecb125 Remote attestation. 2018-07-20 09:55:17 -04:00
Matthew Chen 6bc145ce3a Fix more build warnings. 2018-06-01 17:37:06 -04:00
Matthew Chen 1a441cc40c Respond to CR. 2018-05-22 14:24:04 -04:00
Matthew Chen 59c745756a Clean up codebase. 2018-03-02 15:05:14 -05:00
Matthew Chen baf6fcc535 Add 2FA registration view. 2018-03-02 10:55:00 -05:00
Michael Kirk 3d5f7e6bf3 Clean up logging
- tag all log lines for easier filtering
- use up-to-date database path

// FREEBIE
2018-02-14 09:16:42 -08:00
Matthew Chen 9815bca825 Clean up ahead of PR. 2017-12-19 11:16:01 -05:00
Matthew Chen 6e840ff956 Fix build warnings from XCode 9. 2017-11-09 02:52:44 -05:00
Michael Kirk cf9874302b Remove unecessary subdata for unpadded attachment
// FREEBIE
2017-10-27 08:51:23 -07:00
Michael Kirk ce51d2da3e Example (disabled) padding strategy for attachment sender
The padding strategy the sender uses can change without needing to
update the receiver, so long as we continue to record the unpadded
length of the attachment in the attachment pointer.

// FREEBIE
2017-10-27 08:47:53 -07:00
Michael Kirk cbbb376860 Handle receiving padded attachments
Don't send padded attachments yet.

// FREEBIE
2017-10-27 08:47:53 -07:00
Michael Kirk 259695a9fd Attachments require digest or show explanatory error.
// FREEBIE
2017-10-27 08:42:54 -07:00
Michael Kirk 0ab958f03a cleanup per codereview
- reference OWS OpenSSL
- clarify comments
- fix typo

// FREEBIE
2017-08-21 16:37:16 -04:00
Michael Kirk 0f9f26a577 handle remote user's profile key has changed
// FREEBIE
2017-08-21 16:37:16 -04:00
Michael Kirk 72fbb02028 aes-gcm via openssl
// FREEBIE
2017-08-21 16:37:16 -04:00
Michael Kirk 97afa4d48a verification on decrypt
// FREEBIE
2017-08-15 15:19:40 -04:00
Michael Kirk 7499b3aaf0 Avatar API integration / WIP crypto scheme
Crypto Scheme:

- Name (un)padding
- WIP AES-GCM (funtioning, but need to verify against android
  implementation, and tag functionality)

Changes to avatar API:

- hard code avatar domain (cdn.signal.org)
- avatar form hands out new avatar key, invalidating old avatar
- preliminary aes-gcm integration

Also:

- New type to represent AES128 keys, rather than passing around opaque
  data blobs everywhere, we can use the compiler to help us make sure
  we're passing compliant keying material.

- Started using factory pattern for API requests. This is intended to be
  a lighter weight way to implement new API requests, rather than the
  current 1-method class ceremony.

// FREEBIE
2017-08-14 12:45:37 -04:00
Michael Kirk ccb4a88742 Import SSK (and history) into Signal-iOS
git remote add ssk ../SignalServiceKit
git remote update
git merge -s ours --allow-unrelated-histories --no-commit ssk/master
git read-tree --prefix=SignalServiceKit -u ssk/master
git commit
2017-07-21 13:55:01 -04:00