[SSK] Attachment digests

// FREEBIE
This commit is contained in:
Michael Kirk 2017-03-10 18:54:24 -05:00
parent afbbe769a5
commit d8c4558c80
2 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ CHECKOUT OPTIONS:
:commit: a3c843cc8a423c5924c663490978f81dba34d04e
:git: https://github.com/WhisperSystems/SignalProtocolKit.git
SignalServiceKit:
:commit: 1e6925ebc194a71dae2bfc126c7e47be6f4f639c
:commit: b21c628d569bee2d72c18a8286d17701f58f0df6
:git: https://github.com/WhisperSystems/SignalServiceKit.git
SocketRocket:
:commit: 877ac7438be3ad0b45ef5ca3969574e4b97112bf
@ -174,4 +174,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 48dbf2fb380d626bb799a782dd41b6bf1e466506
COCOAPODS: 1.1.1
COCOAPODS: 1.2.0

View File

@ -102,7 +102,7 @@
NSUInteger hashingLength = 8;
unsigned long long choose;
NSData *hashData = [Cryptography computeSHA256:contactData truncatedToBytes:hashingLength];
NSData *hashData = [Cryptography computeSHA256Digest:contactData truncatedToBytes:hashingLength];
[hashData getBytes:&choose length:hashingLength];
return [colors objectAtIndex:(choose % [colors count])];
}