From d8c4558c80ea45b8e670ac5af52332e7ad3d00eb Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 10 Mar 2017 18:54:24 -0500 Subject: [PATCH] [SSK] Attachment digests // FREEBIE --- Podfile.lock | 4 ++-- Signal/src/UIColor+OWS.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Podfile.lock b/Podfile.lock index e0f1d67a8..fd4bacac0 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -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 diff --git a/Signal/src/UIColor+OWS.m b/Signal/src/UIColor+OWS.m index 43499458a..ef4cebb07 100644 --- a/Signal/src/UIColor+OWS.m +++ b/Signal/src/UIColor+OWS.m @@ -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])]; }