Skip to content

Commit

Permalink
update SMK
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk-signal committed Mar 10, 2020
1 parent a180eed commit b335a47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Manifest.lock
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ CHECKOUT OPTIONS:
:commit: 215afc41654f182bececd949e2410b4a819fbbfb
:git: https://github.com/signalapp/SignalCoreKit.git
SignalMetadataKit:
:commit: 1d738023e4cb19d0ea502f5a03a9368a1eaefe9e
:commit: 3fcb31137b80518607ceed7107516ecabe857699
:git: https://github.com/signalapp/SignalMetadataKit
Starscream:
:commit: b09ea163c3cb305152c65b299cb024610f52e735
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MockClient: NSObject {
func generateMockPreKey() -> PreKeyRecord {
let preKeyId: Int32 = Int32(arc4random_uniform(UInt32(INT32_MAX)))
let keyPair = Curve25519.generateKeyPair()
let preKey = PreKeyRecord(id: preKeyId, keyPair: keyPair, createdAt: Date())!
let preKey = PreKeyRecord(id: preKeyId, keyPair: keyPair, createdAt: Date())
self.preKeyStore.storePreKey(preKeyId, preKeyRecord: preKey)
return preKey
}
Expand All @@ -92,7 +92,7 @@ class MockClient: NSObject {
let generatedAt = Date()
let identityKeyPair = self.identityStore.identityKeyPair(nil)!
let signature = try! Ed25519.sign((keyPair.publicKey as NSData).prependKeyType() as Data, with: identityKeyPair)
let signedPreKey = SignedPreKeyRecord(id: signedPreKeyId, keyPair: keyPair, signature: signature, generatedAt: generatedAt)!
let signedPreKey = SignedPreKeyRecord(id: signedPreKeyId, keyPair: keyPair, signature: signature, generatedAt: generatedAt)
self.signedPreKeyStore.storeSignedPreKey(signedPreKeyId, signedPreKeyRecord: signedPreKey)
return signedPreKey
}
Expand Down
2 changes: 1 addition & 1 deletion _Prebuild/Manifest.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb

PODFILE CHECKSUM: ec1d8aac8db377ea49b938ad0a2d002fdf3c7dc7
PODFILE CHECKSUM: c864752d7a8294897aa70b8e9f1d1ef279cdcd25

COCOAPODS: 1.7.5

0 comments on commit b335a47

Please sign in to comment.