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
Max Radermacher
2659c6abc2
Wrap some OWSProfileManager methods in an #ifdef
2024-08-01 12:18:51 -05:00
Max Radermacher
0ed1f04b8d
Move E164/UUID handling in protobufs to callers
2024-08-01 12:18:13 -05:00
Max Radermacher
1528a4a969
Remove unused code from generated proto files
2024-08-01 12:17:05 -05:00
Sasha Weiss
5fa7a81444
Implement archive/restore for learned profile chat updates
2024-08-01 09:45:26 -07:00
Harry
3608e2796f
Return a quote stub if we fail to find original attachment in migration of quote
2024-07-31 17:00:07 -07:00
Max Radermacher
5fa7eddd0b
Use the Aci type when handling gv2 messages
2024-07-31 18:30:02 -05:00
Harry
2224160810
Use non-crashing sql execute method
2024-07-31 16:24:12 -07:00
Harry
493973279a
Only allow backup export in dev builds
2024-07-31 15:43:05 -07:00
Harry
2700cfe624
Block on migrating TSAttachments before creating backups
2024-07-31 15:33:11 -07:00
Harry
c1118a8d08
Pull in proto backup changes (attachment size now uint32 again)
2024-07-31 15:31:39 -07:00
Harry
4948828fad
Don't owsFailDebug for outgoing group update messages' nonexistent v2 attachments
2024-07-31 14:21:15 -06:00
Ehren Kret
69bd0af9ad
migrate OWSAES256Key from objc to swift
2024-07-31 12:23:25 -05:00
Ehren Kret
c091e083d0
crypto cleanup
2024-07-30 14:40:33 -07:00
Max Radermacher
c1a67e3fa9
Remove unused protobuf file
2024-07-30 16:34:52 -05:00