Ehren Kret
5c405b4981
convert ContactsManagerProtocol from objc to swift
2024-08-06 09:14:11 -05:00
Ehren Kret
1374ce7edd
remove unnecessary forward class declarations
2024-08-06 08:57:26 -05:00
Ehren Kret
06000fc070
minor CryptoKit related cleanup
2024-08-06 08:38:43 -05:00
Ehren Kret
5103a84e60
remove dead code
2024-08-05 16:07:20 -05:00
Ehren Kret
aa8eb2390b
fix local var vs let warnings for cipher context
2024-08-05 15:58:28 -05:00
Marissa Le Coz
5fa37b52da
Turn on call drawer for 1:1 calls internally
2024-08-05 15:47:44 -04:00
Adam Sharp
e3cdbb7e6a
Asyncify VideoEditorModel
2024-08-05 14:51:25 -04:00
Ehren Kret
9d904d7de7
replace CommonCrypto with CryptoKit in AvatarBuilder
2024-08-05 12:29:18 -05:00
Ehren Kret
98672608aa
replace CommonCrypto with CryptoKit in OWSFingerprint
2024-08-05 12:29:18 -05:00
Ehren Kret
99b52c05b2
replace Cryptography.computeSHA256HMAC(_ 🔑 ) with CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
214683960a
replace Cryptography.computeSHA256HMAC(_ 🔑 truncatedToBytes:) with CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
ff785f18e7
remove HmacContext
2024-08-05 12:29:18 -05:00
Ehren Kret
5e84ac1661
replace HmacContext in Cryptography with CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
f0a1d5cb3b
switch from HmacContext to CryptoKit in HmacStreamTransform
2024-08-05 12:29:18 -05:00
Ehren Kret
eddffc615e
delete Sha256DigestContext
2024-08-05 12:29:18 -05:00
Ehren Kret
d708761bbc
replace Sha256DigestContext with SHA256 from CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
0ddbc9e5bc
replace use of Sha256DigestContext in Cryptography with CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
8487781856
rewrite MetadataStreamTransform to use CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
ba3ae61d5c
fix potential bug if .read(upToCount:) had read less than requested
2024-08-05 12:29:18 -05:00
Ehren Kret
3f04087244
replace Cryptography.computeSHA256Digest with CryptoKit.SHA256.hash(data:)
2024-08-05 12:29:18 -05:00
Ehren Kret
897d2441f5
continue splitting apart Cryptography.swift
2024-08-05 12:29:18 -05:00
Ehren Kret
c083decbc9
remove CommonCrypto from Cryptography.swift
2024-08-05 12:29:18 -05:00
Harry
a48353d658
Drop duplicate TSAttachments on a single TSMessage in the migration
2024-08-02 14:49:47 -07:00
Ehren Kret
db49fc1fe4
migrate Sha256DigestContext from CommonCrypto to CryptoKit
2024-08-02 11:15:19 -05:00
Ehren Kret
657e7d25df
add unit test for Sha256DigestContext
2024-08-02 11:15:19 -05:00
Ehren Kret
6a06a9ec53
replace CommonCrypto with CryptoKit in HmacContext
2024-08-02 11:14:29 -05:00
Ehren Kret
dad6e14cf9
add unit test for HmacContext using RFC 4231 test vectors
2024-08-02 11:14:29 -05:00
Ehren Kret
12ae11c728
use let for CipherContext now that it correctly uses reference semantics
2024-08-02 09:29:55 -05:00
Ehren Kret
4bfde67015
reduce visibility of enumerateInBlocks extension func
2024-08-02 09:29:55 -05:00
Ehren Kret
2048c1161a
stop memory leak if CipherContext is not used all the way to finalize
2024-08-02 09:29:55 -05:00
Ehren Kret
4a0617a62d
use new let syntax
2024-08-02 09:29:55 -05:00
Ehren Kret
715b76e153
remove unused cipher algorithms
2024-08-02 09:29:55 -05:00
Ehren Kret
6d79450518
move CipherContext into its own file
2024-08-02 09:29:55 -05:00
Ehren Kret
48149f0b5e
move HmacContext into its own file
2024-08-02 09:29:55 -05:00
Ehren Kret
829b9cac7e
rename SHA256DigestContext to Sha256DigestContext
2024-08-02 09:29:55 -05:00
Ehren Kret
e4147c9e4d
split SHA256DigestContext out to its own file
2024-08-02 09:29:55 -05:00
Ehren Kret
e1cfd116a2
rename OWSAES256Key in swift to Aes256Key
2024-08-02 09:29:55 -05:00
Ehren Kret
7320874263
move OWSAES256Key to its own file
2024-08-02 09:29:55 -05:00
Sasha Weiss
79d5ff9340
Remove MBInteractionArchiver protocol in favor of direct archiver access
2024-08-01 14:55:33 -07:00
Harry
c3db84f39a
Don't download v2 attachments in the NSE
2024-08-01 14:51:19 -07:00
Ehren Kret
462a24d88f
restrict visibility of Data extension method to same file
2024-08-01 16:21:16 -05:00
Ehren Kret
8db47c5f62
inline Cryptography.generateRandomBytes
2024-08-01 15:33:26 -05:00
Ehren Kret
557d6a67cc
migrate Cryptography over to swift
...
`srand` is not accessible in swift. Remove `srand` anyhow as anything
using `rand` for any actual randomness should be considered a bug in
need of fixing rather than viewing `srand` as an acceptable workaround.
2024-08-01 14:43:34 -05:00
Ehren Kret
3c32cbb978
fix test comment
2024-08-01 14:43:34 -05:00
Sasha Weiss
ca6758421c
Add doc comments for timestamp interaction properties
2024-08-01 12:39:59 -07:00
Harry
546ae94e7e
Drop legacy attachment files that are too big
2024-08-01 11:57:05 -07:00
Ehren Kret
fa1cef674c
migrate Randomness to swift
2024-08-01 13:26:07 -05:00
Harry
82862885c3
Add BackupAttachmentDownloadStore
2024-08-01 10:25:36 -07:00
Harry
5a7d154d16
Add BackupAttachmentDownloadQueue table
2024-08-01 10:24:27 -07:00
Max Radermacher
f11f7833df
Swiftify reuploadLocalProfile(…)
2024-08-01 12:18:51 -05:00