Update repository to zkgroup v0.6.0
This commit is contained in:
parent
82ce7ef9c5
commit
d3b36dbf7d
@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "ZKGroup"
|
||||
s.version = "0.5.0"
|
||||
s.version = "0.6.0"
|
||||
s.summary = "Swift API for the Rust zkgroup crate."
|
||||
s.homepage = "https://signal.org/"
|
||||
s.license = { :type => "GPLv3", :file => "LICENSE" }
|
||||
|
||||
@ -14,7 +14,6 @@
|
||||
20A67AB42374813600CB56A1 /* AuthCredentialResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20A67AB12374813600CB56A1 /* AuthCredentialResponse.swift */; };
|
||||
20A67AB52374813600CB56A1 /* AuthCredentialPresentation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20A67AB22374813600CB56A1 /* AuthCredentialPresentation.swift */; };
|
||||
20A67ABA2374814A00CB56A1 /* ClientZkProfileOperations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20A67AB62374814A00CB56A1 /* ClientZkProfileOperations.swift */; };
|
||||
20A67ABB2374814A00CB56A1 /* ChangeSignature.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20A67AB72374814A00CB56A1 /* ChangeSignature.swift */; };
|
||||
20A67ABC2374814A00CB56A1 /* ClientZkGroupCipher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20A67AB82374814A00CB56A1 /* ClientZkGroupCipher.swift */; };
|
||||
20A67ABD2374814A00CB56A1 /* ClientZkAuthOperations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20A67AB92374814A00CB56A1 /* ClientZkAuthOperations.swift */; };
|
||||
20A67AC12374819000CB56A1 /* GroupMasterKey.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20A67ABE2374819000CB56A1 /* GroupMasterKey.swift */; };
|
||||
@ -62,7 +61,6 @@
|
||||
20A67AB12374813600CB56A1 /* AuthCredentialResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthCredentialResponse.swift; sourceTree = "<group>"; };
|
||||
20A67AB22374813600CB56A1 /* AuthCredentialPresentation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthCredentialPresentation.swift; sourceTree = "<group>"; };
|
||||
20A67AB62374814A00CB56A1 /* ClientZkProfileOperations.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ClientZkProfileOperations.swift; sourceTree = "<group>"; };
|
||||
20A67AB72374814A00CB56A1 /* ChangeSignature.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChangeSignature.swift; sourceTree = "<group>"; };
|
||||
20A67AB82374814A00CB56A1 /* ClientZkGroupCipher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ClientZkGroupCipher.swift; sourceTree = "<group>"; };
|
||||
20A67AB92374814A00CB56A1 /* ClientZkAuthOperations.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ClientZkAuthOperations.swift; sourceTree = "<group>"; };
|
||||
20A67ABE2374819000CB56A1 /* GroupMasterKey.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GroupMasterKey.swift; sourceTree = "<group>"; };
|
||||
@ -159,7 +157,6 @@
|
||||
20A67ABF2374819000CB56A1 /* GroupIdentifier.swift */,
|
||||
20A67ABE2374819000CB56A1 /* GroupMasterKey.swift */,
|
||||
20A67AC02374819000CB56A1 /* GroupPublicParams.swift */,
|
||||
20A67AB72374814A00CB56A1 /* ChangeSignature.swift */,
|
||||
20A67AB92374814A00CB56A1 /* ClientZkAuthOperations.swift */,
|
||||
20A67AB82374814A00CB56A1 /* ClientZkGroupCipher.swift */,
|
||||
20A67AB62374814A00CB56A1 /* ClientZkProfileOperations.swift */,
|
||||
@ -317,7 +314,6 @@
|
||||
20A67AD6237481AD00CB56A1 /* Native.swift in Sources */,
|
||||
20A67AE5237481AD00CB56A1 /* ProfileKeyCredentialRequestContext.swift in Sources */,
|
||||
20A67ADC237481AD00CB56A1 /* ServerPublicParams.swift in Sources */,
|
||||
20A67ABB2374814A00CB56A1 /* ChangeSignature.swift in Sources */,
|
||||
20A67AB32374813600CB56A1 /* AuthCredential.swift in Sources */,
|
||||
20A67ABA2374814A00CB56A1 /* ClientZkProfileOperations.swift in Sources */,
|
||||
20A67AD5237481AD00CB56A1 /* ServerZkProfileOperations.swift in Sources */,
|
||||
|
||||
78
ZKGroup.xcodeproj/xcshareddata/xcschemes/ZKGroup.xcscheme
Normal file
78
ZKGroup.xcodeproj/xcshareddata/xcschemes/ZKGroup.xcscheme
Normal file
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1140"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "4C6814DF229EFF00006FC282"
|
||||
BuildableName = "ZKGroup.framework"
|
||||
BlueprintName = "ZKGroup"
|
||||
ReferencedContainer = "container:ZKGroup.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO"
|
||||
parallelizable = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "4C6814E8229EFF00006FC282"
|
||||
BuildableName = "ZKGroupTests.xctest"
|
||||
BlueprintName = "ZKGroupTests"
|
||||
ReferencedContainer = "container:ZKGroup.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "4C6814DF229EFF00006FC282"
|
||||
BuildableName = "ZKGroup.framework"
|
||||
BlueprintName = "ZKGroup"
|
||||
ReferencedContainer = "container:ZKGroup.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@ -49,19 +49,9 @@ public class ClientZkGroupCipher {
|
||||
}
|
||||
|
||||
public func encryptProfileKey(profileKey: ProfileKey, uuid: ZKGUuid) throws -> ProfileKeyCiphertext {
|
||||
var randomness: [UInt8] = Array(repeating: 0, count: Int(32))
|
||||
let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness)
|
||||
guard result == errSecSuccess else {
|
||||
throw ZkGroupException.AssertionError
|
||||
}
|
||||
|
||||
return try encryptProfileKey(randomness: randomness, profileKey: profileKey, uuid: uuid)
|
||||
}
|
||||
|
||||
public func encryptProfileKey(randomness: [UInt8], profileKey: ProfileKey, uuid: ZKGUuid) throws -> ProfileKeyCiphertext {
|
||||
var newContents: [UInt8] = Array(repeating: 0, count: ProfileKeyCiphertext.SIZE)
|
||||
|
||||
let ffi_return = FFI_GroupSecretParams_encryptProfileKeyDeterministic(groupSecretParams.getInternalContentsForFFI(), UInt32(groupSecretParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count), profileKey.getInternalContentsForFFI(), UInt32(profileKey.getInternalContentsForFFI().count), uuid.getInternalContentsForFFI(), UInt32(uuid.getInternalContentsForFFI().count), &newContents, UInt32(newContents.count))
|
||||
let ffi_return = FFI_GroupSecretParams_encryptProfileKey(groupSecretParams.getInternalContentsForFFI(), UInt32(groupSecretParams.getInternalContentsForFFI().count), profileKey.getInternalContentsForFFI(), UInt32(profileKey.getInternalContentsForFFI().count), uuid.getInternalContentsForFFI(), UInt32(uuid.getInternalContentsForFFI().count), &newContents, UInt32(newContents.count))
|
||||
|
||||
if (ffi_return != Native.FFI_RETURN_OK) {
|
||||
throw ZkGroupException.ZkGroupError
|
||||
@ -106,9 +96,11 @@ public class ClientZkGroupCipher {
|
||||
}
|
||||
|
||||
public func encryptBlob(randomness: [UInt8], plaintext: [UInt8]) throws -> [UInt8] {
|
||||
var newContents: [UInt8] = Array(repeating: 0, count: Int(plaintext.count+28))
|
||||
let paddedPlaintext = Array(repeating:0, count: 4) + plaintext
|
||||
|
||||
let ffi_return = FFI_GroupSecretParams_encryptBlobDeterministic(groupSecretParams.getInternalContentsForFFI(), UInt32(groupSecretParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count), plaintext, UInt32(plaintext.count), &newContents, UInt32(newContents.count))
|
||||
var newContents: [UInt8] = Array(repeating: 0, count: Int(paddedPlaintext.count+28))
|
||||
|
||||
let ffi_return = FFI_GroupSecretParams_encryptBlobDeterministic(groupSecretParams.getInternalContentsForFFI(), UInt32(groupSecretParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count), paddedPlaintext, UInt32(paddedPlaintext.count), &newContents, UInt32(newContents.count))
|
||||
if (ffi_return == Native.FFI_RETURN_INPUT_ERROR) {
|
||||
throw ZkGroupException.VerificationFailed
|
||||
}
|
||||
@ -124,6 +116,7 @@ public class ClientZkGroupCipher {
|
||||
var newContents: [UInt8] = Array(repeating: 0, count: Int(blobCiphertext.count-28))
|
||||
|
||||
let ffi_return = FFI_GroupSecretParams_decryptBlob(groupSecretParams.getInternalContentsForFFI(), UInt32(groupSecretParams.getInternalContentsForFFI().count), blobCiphertext, UInt32(blobCiphertext.count), &newContents, UInt32(newContents.count))
|
||||
|
||||
if (ffi_return == Native.FFI_RETURN_INPUT_ERROR) {
|
||||
throw ZkGroupException.VerificationFailed
|
||||
}
|
||||
@ -132,7 +125,18 @@ public class ClientZkGroupCipher {
|
||||
throw ZkGroupException.ZkGroupError
|
||||
}
|
||||
|
||||
return newContents
|
||||
if newContents.count < 4 {
|
||||
throw ZkGroupException.VerificationFailed
|
||||
}
|
||||
|
||||
var paddingLen = newContents.withUnsafeBytes({ $0.load(fromByteOffset:0, as: UInt32.self) })
|
||||
paddingLen = UInt32(bigEndian: paddingLen)
|
||||
|
||||
if (newContents.count < (4 + paddingLen)) {
|
||||
throw ZkGroupException.VerificationFailed
|
||||
}
|
||||
|
||||
return Array(newContents[4 ..< newContents.endIndex - Int(paddingLen)])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ import libzkgroup
|
||||
|
||||
public class GroupPublicParams : ByteArray {
|
||||
|
||||
public static let SIZE: Int = 128
|
||||
public static let SIZE: Int = 96
|
||||
|
||||
public init(contents: [UInt8]) throws {
|
||||
try super.init(newContents: contents, expectedLength: GroupPublicParams.SIZE)
|
||||
@ -45,17 +45,6 @@ public class GroupPublicParams : ByteArray {
|
||||
|
||||
}
|
||||
|
||||
public func verifySignature(message: [UInt8], changeSignature: ChangeSignature) throws {
|
||||
let ffi_return = FFI_GroupPublicParams_verifySignature(self.contents, UInt32(self.contents.count), message, UInt32(message.count), changeSignature.getInternalContentsForFFI(), UInt32(changeSignature.getInternalContentsForFFI().count))
|
||||
if (ffi_return == Native.FFI_RETURN_INPUT_ERROR) {
|
||||
throw ZkGroupException.VerificationFailed
|
||||
}
|
||||
|
||||
if (ffi_return != Native.FFI_RETURN_OK) {
|
||||
throw ZkGroupException.ZkGroupError
|
||||
}
|
||||
}
|
||||
|
||||
public func serialize() -> [UInt8] {
|
||||
return contents
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ import libzkgroup
|
||||
|
||||
public class GroupSecretParams : ByteArray {
|
||||
|
||||
public static let SIZE: Int = 384
|
||||
public static let SIZE: Int = 352
|
||||
|
||||
public static func generate() throws -> GroupSecretParams {
|
||||
var randomness: [UInt8] = Array(repeating: 0, count: Int(32))
|
||||
@ -104,33 +104,6 @@ public class GroupSecretParams : ByteArray {
|
||||
|
||||
}
|
||||
|
||||
public func sign(message: [UInt8]) throws -> ChangeSignature {
|
||||
var randomness: [UInt8] = Array(repeating: 0, count: Int(32))
|
||||
let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness)
|
||||
guard result == errSecSuccess else {
|
||||
throw ZkGroupException.AssertionError
|
||||
}
|
||||
|
||||
return try sign(randomness: randomness, message: message)
|
||||
}
|
||||
|
||||
public func sign(randomness: [UInt8], message: [UInt8]) throws -> ChangeSignature {
|
||||
var newContents: [UInt8] = Array(repeating: 0, count: ChangeSignature.SIZE)
|
||||
|
||||
let ffi_return = FFI_GroupSecretParams_signDeterministic(self.contents, UInt32(self.contents.count), randomness, UInt32(randomness.count), message, UInt32(message.count), &newContents, UInt32(newContents.count))
|
||||
|
||||
if (ffi_return != Native.FFI_RETURN_OK) {
|
||||
throw ZkGroupException.ZkGroupError
|
||||
}
|
||||
|
||||
do {
|
||||
return try ChangeSignature(contents: newContents)
|
||||
} catch ZkGroupException.InvalidInput {
|
||||
throw ZkGroupException.AssertionError
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public func serialize() -> [UInt8] {
|
||||
return contents
|
||||
}
|
||||
|
||||
@ -28,23 +28,6 @@ public class ProfileKeyCommitment : ByteArray {
|
||||
}
|
||||
}
|
||||
|
||||
public func getProfileKeyVersion() throws -> ProfileKeyVersion {
|
||||
var newContents: [UInt8] = Array(repeating: 0, count: ProfileKeyVersion.SIZE)
|
||||
|
||||
let ffi_return = FFI_ProfileKeyCommitment_getProfileKeyVersion(self.contents, UInt32(self.contents.count), &newContents, UInt32(newContents.count))
|
||||
|
||||
if (ffi_return != Native.FFI_RETURN_OK) {
|
||||
throw ZkGroupException.ZkGroupError
|
||||
}
|
||||
|
||||
do {
|
||||
return try ProfileKeyVersion(contents: newContents)
|
||||
} catch ZkGroupException.InvalidInput {
|
||||
throw ZkGroupException.AssertionError
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public func serialize() -> [UInt8] {
|
||||
return contents
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -3,6 +3,12 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define AESGCM_NONCE_LEN 12
|
||||
|
||||
#define AESGCM_TAG_LEN 12
|
||||
|
||||
#define AES_KEY_LEN 32
|
||||
|
||||
#define AUTH_CREDENTIAL_LEN 404
|
||||
|
||||
#define AUTH_CREDENTIAL_PRESENTATION_LEN 620
|
||||
@ -21,9 +27,9 @@
|
||||
|
||||
#define GROUP_MASTER_KEY_LEN 32
|
||||
|
||||
#define GROUP_PUBLIC_PARAMS_LEN 128
|
||||
#define GROUP_PUBLIC_PARAMS_LEN 96
|
||||
|
||||
#define GROUP_SECRET_PARAMS_LEN 384
|
||||
#define GROUP_SECRET_PARAMS_LEN 352
|
||||
|
||||
#define NUM_AUTH_CRED_ATTRIBUTES 4
|
||||
|
||||
@ -88,13 +94,6 @@ int32_t FFI_GroupPublicParams_getGroupIdentifier(const uint8_t *groupPublicParam
|
||||
uint8_t *groupIdentifierOut,
|
||||
uint32_t groupIdentifierLen);
|
||||
|
||||
int32_t FFI_GroupPublicParams_verifySignature(const uint8_t *groupPublicParams,
|
||||
uint32_t groupPublicParamsLen,
|
||||
const uint8_t *message,
|
||||
uint32_t messageLen,
|
||||
const uint8_t *changeSignature,
|
||||
uint32_t changeSignatureLen);
|
||||
|
||||
int32_t FFI_GroupSecretParams_checkValidContents(const uint8_t *groupSecretParams,
|
||||
uint32_t groupSecretParamsLen);
|
||||
|
||||
@ -135,16 +134,14 @@ int32_t FFI_GroupSecretParams_encryptBlobDeterministic(const uint8_t *groupSecre
|
||||
uint8_t *blobCiphertextOut,
|
||||
uint32_t blobCiphertextLen);
|
||||
|
||||
int32_t FFI_GroupSecretParams_encryptProfileKeyDeterministic(const uint8_t *groupSecretParams,
|
||||
uint32_t groupSecretParamsLen,
|
||||
const uint8_t *randomness,
|
||||
uint32_t randomnessLen,
|
||||
const uint8_t *profileKey,
|
||||
uint32_t profileKeyLen,
|
||||
const uint8_t *uuid,
|
||||
uint32_t uuidLen,
|
||||
uint8_t *profileKeyCiphertextOut,
|
||||
uint32_t profileKeyCiphertextLen);
|
||||
int32_t FFI_GroupSecretParams_encryptProfileKey(const uint8_t *groupSecretParams,
|
||||
uint32_t groupSecretParamsLen,
|
||||
const uint8_t *profileKey,
|
||||
uint32_t profileKeyLen,
|
||||
const uint8_t *uuid,
|
||||
uint32_t uuidLen,
|
||||
uint8_t *profileKeyCiphertextOut,
|
||||
uint32_t profileKeyCiphertextLen);
|
||||
|
||||
int32_t FFI_GroupSecretParams_encryptUuid(const uint8_t *groupSecretParams,
|
||||
uint32_t groupSecretParamsLen,
|
||||
@ -168,26 +165,12 @@ int32_t FFI_GroupSecretParams_getPublicParams(const uint8_t *groupSecretParams,
|
||||
uint8_t *groupPublicParamsOut,
|
||||
uint32_t groupPublicParamsLen);
|
||||
|
||||
int32_t FFI_GroupSecretParams_signDeterministic(const uint8_t *groupSecretParams,
|
||||
uint32_t groupSecretParamsLen,
|
||||
const uint8_t *randomness,
|
||||
uint32_t randomnessLen,
|
||||
const uint8_t *message,
|
||||
uint32_t messageLen,
|
||||
uint8_t *changeSignatureOut,
|
||||
uint32_t changeSignatureLen);
|
||||
|
||||
int32_t FFI_ProfileKeyCiphertext_checkValidContents(const uint8_t *profileKeyCiphertext,
|
||||
uint32_t profileKeyCiphertextLen);
|
||||
|
||||
int32_t FFI_ProfileKeyCommitment_checkValidContents(const uint8_t *profileKeyCommitment,
|
||||
uint32_t profileKeyCommitmentLen);
|
||||
|
||||
int32_t FFI_ProfileKeyCommitment_getProfileKeyVersion(const uint8_t *profileKeyCommitment,
|
||||
uint32_t profileKeyCommitmentLen,
|
||||
uint8_t *profileKeyVersionOut,
|
||||
uint32_t profileKeyVersionLen);
|
||||
|
||||
int32_t FFI_ProfileKeyCredentialPresentation_checkValidContents(const uint8_t *profileKeyCredentialPresentation,
|
||||
uint32_t profileKeyCredentialPresentationLen);
|
||||
|
||||
|
||||
@ -30,109 +30,112 @@ class ZKGroupTests: XCTestCase {
|
||||
0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22]
|
||||
|
||||
let authPresentationResult: [UInt8] = [
|
||||
0xc0, 0x51, 0xa9, 0xc1, 0x4d, 0xd9, 0x80, 0xbb, 0xc6, 0x6f, 0x30, 0x98, 0x0f, 0xb9, 0x95, 0x74,
|
||||
0x09, 0x38, 0x30, 0xba, 0x52, 0x65, 0xf7, 0x87, 0x1f, 0x57, 0x23, 0xa6, 0x87, 0xdc, 0x75, 0x35,
|
||||
0xca, 0x44, 0x2d, 0x45, 0xf9, 0xf4, 0x39, 0xc9, 0x32, 0x76, 0x46, 0x13, 0x95, 0x52, 0x75, 0xd8,
|
||||
0x22, 0xbd, 0x3a, 0xb1, 0xf2, 0x91, 0x04, 0xc0, 0x35, 0x8d, 0xa2, 0x9f, 0x83, 0x15, 0x05, 0x2d,
|
||||
0x7c, 0x5f, 0x9f, 0x31, 0x95, 0xe5, 0xed, 0x27, 0xfc, 0xaf, 0x25, 0x56, 0x4e, 0xb3, 0xc4, 0x19,
|
||||
0xda, 0x5b, 0x0d, 0x7e, 0x2f, 0x4f, 0x4b, 0xaa, 0x70, 0xc1, 0x2d, 0xc1, 0x21, 0x74, 0xe3, 0x7d,
|
||||
0x50, 0xc2, 0xa9, 0x3b, 0x80, 0x3d, 0x8c, 0x97, 0x2f, 0x12, 0xaf, 0x02, 0x6a, 0xb6, 0x0d, 0x91,
|
||||
0xa4, 0xc4, 0xba, 0x54, 0x84, 0x2e, 0x73, 0x07, 0x3c, 0x0b, 0x52, 0x0f, 0x25, 0x13, 0x10, 0x5a,
|
||||
0x6e, 0x72, 0x35, 0x02, 0x04, 0xc1, 0x8d, 0x68, 0x66, 0x45, 0xca, 0x49, 0x91, 0xac, 0x56, 0xa5,
|
||||
0x57, 0xf1, 0xe0, 0x5f, 0x77, 0x16, 0x97, 0xfb, 0x6a, 0xef, 0x6d, 0x1d, 0xb7, 0x2e, 0x63, 0x25,
|
||||
0xe0, 0xd3, 0x97, 0xfb, 0x79, 0x51, 0xfd, 0xfa, 0x1e, 0x3a, 0xe3, 0x28, 0x24, 0x42, 0x63, 0xd4,
|
||||
0x8b, 0x4a, 0x74, 0xde, 0x88, 0xe5, 0x4f, 0xc8, 0xb8, 0x42, 0x7b, 0xf5, 0x69, 0x11, 0xf0, 0x4b,
|
||||
0xe8, 0x37, 0x3b, 0xf9, 0xf4, 0x07, 0x2a, 0x68, 0x93, 0xfc, 0x77, 0x9c, 0x34, 0x74, 0x61, 0xb2,
|
||||
0x14, 0x89, 0x14, 0xfd, 0x88, 0xa3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 0xcf, 0x08, 0x36, 0x0f, 0x9f, 0x0b, 0xae, 0x4f, 0x16, 0xb8, 0xa1, 0xba,
|
||||
0xaa, 0x33, 0x43, 0x80, 0xf3, 0x1c, 0x67, 0x07, 0x40, 0x98, 0xe1, 0xef, 0xd5, 0x63, 0xed, 0x0f,
|
||||
0x7b, 0x9f, 0xef, 0x40, 0xfa, 0xdc, 0x20, 0x07, 0x88, 0x55, 0x15, 0x13, 0x9e, 0xd1, 0xcd, 0x8c,
|
||||
0x40, 0x73, 0x17, 0x79, 0x21, 0x6d, 0x13, 0x09, 0x49, 0xc0, 0x91, 0x30, 0x1d, 0xb2, 0xb7, 0xa1,
|
||||
0xc8, 0x24, 0xb8, 0xa8, 0x0e, 0xcf, 0x32, 0x07, 0xe0, 0x9b, 0x6b, 0x27, 0x6e, 0xef, 0xa5, 0x82,
|
||||
0x3b, 0xa5, 0x3c, 0xe4, 0x08, 0xc6, 0xa0, 0x0f, 0x15, 0x3f, 0xd4, 0x36, 0x7f, 0xb7, 0x63, 0xb6,
|
||||
0x2a, 0x0d, 0xa6, 0xdd, 0x5d, 0x46, 0xd5, 0x00, 0x18, 0xa2, 0xe0, 0xc5, 0x59, 0xb0, 0x86, 0x6b,
|
||||
0x32, 0x65, 0x9d, 0xbc, 0xe1, 0x5e, 0xc2, 0xec, 0x30, 0x74, 0x34, 0x8c, 0x19, 0xc2, 0x37, 0xd9,
|
||||
0x6e, 0x0e, 0x6f, 0x97, 0x37, 0x66, 0x7c, 0x09, 0x78, 0x3a, 0x82, 0x59, 0x10, 0x25, 0xbb, 0xec,
|
||||
0x56, 0xfe, 0xce, 0xc8, 0x6a, 0xe3, 0xb8, 0xa9, 0x73, 0xef, 0xad, 0x7d, 0xc9, 0x2b, 0x75, 0xb7,
|
||||
0xa2, 0x99, 0xca, 0x03, 0x79, 0x28, 0x62, 0x0c, 0x31, 0x20, 0xeb, 0x22, 0x8b, 0x2f, 0xb8, 0x58,
|
||||
0x73, 0x78, 0x3b, 0x00, 0xd5, 0xcf, 0xbf, 0x49, 0x24, 0x6a, 0xda, 0xd4, 0xf7, 0xdc, 0xa7, 0xe1,
|
||||
0x13, 0xf7, 0xff, 0xae, 0x48, 0x04, 0xd3, 0x0a, 0x5f, 0xd6, 0x3d, 0xff, 0x8e, 0xe3, 0x5d, 0xf1,
|
||||
0x9a, 0x4b, 0xf6, 0xab, 0x6b, 0xc2, 0x8e, 0x0a, 0x0e, 0xd5, 0x4c, 0x3b, 0x4b, 0xdd, 0x3d, 0x68,
|
||||
0x7e, 0x9a, 0xe2, 0x52, 0x0c, 0xb9, 0xfc, 0x08, 0xc6, 0x75, 0xd6, 0xcb, 0x06, 0xd4, 0x78, 0x8b,
|
||||
0x6b, 0x46, 0x04, 0xdd, 0x19, 0x7c, 0x3f, 0xfc, 0x67, 0xa3, 0x4f, 0xd0, 0x82, 0xeb, 0x38, 0x3b,
|
||||
0xc7, 0x7c, 0x3e, 0x1e, 0xd6, 0x7d, 0xd7, 0x0a, 0x86, 0xe9, 0xab, 0xae, 0xf9, 0x24, 0xa3, 0x25,
|
||||
0xb4, 0xbf, 0x24, 0xfd, 0x59, 0xab, 0xeb, 0xd9, 0x69, 0x8d, 0x73, 0x02, 0x33, 0x1d, 0x35, 0x8e,
|
||||
0x8c, 0xd9, 0xa9, 0x10, 0x83, 0xf7, 0x4f, 0x09, 0x34, 0x10, 0xec, 0xcf, 0xc3, 0x23, 0xf7, 0xe4,
|
||||
0xeb, 0xf4, 0x37, 0x2b, 0x31, 0xf5, 0xc3, 0x5d, 0x66, 0x8b, 0xa5, 0xf2, 0xa4, 0x05, 0x2a, 0x56,
|
||||
0xa0, 0xf6, 0x80, 0x93, 0x48, 0x62, 0x45, 0x53, 0x40, 0xe2, 0x01, 0x00]
|
||||
|
||||
let profileKeyPresentationResult: [UInt8] = [
|
||||
0x30, 0xc7, 0xb1, 0xe8, 0x50, 0x9d, 0xe1, 0x65, 0xc1, 0x7e, 0x48, 0x58, 0x32, 0xa2, 0xbb, 0xde,
|
||||
0xe5, 0x2c, 0x56, 0x46, 0xe4, 0x38, 0x0a, 0x9e, 0x09, 0x90, 0x93, 0x43, 0xe4, 0xab, 0xcf, 0x52,
|
||||
0x70, 0xad, 0x9b, 0xa7, 0x19, 0x49, 0x65, 0xfd, 0x62, 0x9f, 0x47, 0x3c, 0x8b, 0x56, 0xbf, 0x28,
|
||||
0xd2, 0xcf, 0xc4, 0x6c, 0x8a, 0x32, 0xc4, 0xd3, 0x91, 0xb8, 0xb1, 0x95, 0xfe, 0x8b, 0x64, 0x41,
|
||||
0xa6, 0x04, 0x35, 0x23, 0x7e, 0x98, 0x7f, 0x46, 0xd0, 0x17, 0x83, 0x25, 0x28, 0xd7, 0x0b, 0x5d,
|
||||
0x67, 0x5a, 0x49, 0xed, 0x17, 0x00, 0x29, 0xb7, 0xd7, 0x8a, 0xdd, 0xff, 0xe7, 0xd8, 0x73, 0x3f,
|
||||
0x90, 0xef, 0xce, 0x84, 0x0c, 0x49, 0x8f, 0x30, 0xe3, 0xd6, 0x3d, 0xb3, 0x8c, 0xd3, 0xe9, 0xa6,
|
||||
0x3e, 0x7c, 0xfd, 0xfc, 0x92, 0x23, 0xff, 0x9a, 0xbd, 0x46, 0xab, 0x49, 0x09, 0x17, 0xf9, 0x35,
|
||||
0x86, 0xc5, 0xf3, 0x34, 0x66, 0x6b, 0x37, 0xe6, 0xa6, 0xcb, 0x97, 0x0b, 0x12, 0xf8, 0xff, 0x03,
|
||||
0x13, 0x50, 0xdb, 0xf5, 0x33, 0x71, 0x09, 0x95, 0x20, 0xe7, 0xa9, 0x71, 0xa0, 0x84, 0x3e, 0x11,
|
||||
0x0a, 0xba, 0xbf, 0xf7, 0x9b, 0x27, 0x97, 0x27, 0xb0, 0xb1, 0x02, 0x4d, 0x85, 0x8d, 0xe2, 0x55,
|
||||
0x05, 0x01, 0x12, 0x13, 0x01, 0x31, 0x52, 0xcb, 0x2f, 0xc8, 0xfa, 0xce, 0xd9, 0x4e, 0xed, 0x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, 0x48, 0xa5, 0xf7,
|
||||
0x68, 0xfd, 0x6c, 0x28, 0x51, 0xd1, 0x99, 0xd0, 0xd8, 0x20, 0xbd, 0xdf, 0x73, 0x97, 0x95, 0x70,
|
||||
0xa4, 0xbb, 0x12, 0x15, 0x00, 0xe2, 0x04, 0x03, 0xb1, 0xc2, 0x87, 0x9c, 0xf4, 0x24, 0x80, 0x6f,
|
||||
0x87, 0x61, 0xef, 0xa3, 0x55, 0xad, 0x09, 0x4a, 0xd1, 0x30, 0x71, 0x8e, 0xf1, 0x7b, 0x6e, 0xc0,
|
||||
0x2e, 0x56, 0x7f, 0x19, 0xc0, 0x25, 0x2e, 0x0c, 0x96, 0xdb, 0xa6, 0xc8, 0xee, 0x90, 0xe0, 0xf1,
|
||||
0x27, 0x21, 0x7e, 0x50, 0x87, 0xd5, 0xa8, 0x55, 0x48, 0xb9, 0x1b, 0x5b, 0xe2, 0xff, 0x67, 0x8a,
|
||||
0xea, 0x18, 0xb9, 0xe0, 0x17, 0x11, 0xfe, 0x06, 0x22, 0xb6, 0x8f, 0xb0, 0x58, 0xa6, 0x64, 0x18,
|
||||
0xfa, 0xa6, 0x1d, 0x44, 0x14, 0xeb, 0x18, 0x0c, 0x31, 0x86, 0x6e, 0x8d, 0x47, 0x38, 0xae, 0x69,
|
||||
0x3c, 0xd4, 0x4b, 0xb7, 0xbf, 0x70, 0x5c, 0x09, 0xc7, 0xae, 0x1d, 0x99, 0x70, 0x44, 0x1d, 0xfb,
|
||||
0x46, 0x11, 0xb9, 0xf5, 0xda, 0xc8, 0x17, 0x2a, 0xed, 0x0a, 0xdf, 0xad, 0x6a, 0xad, 0xa8, 0xe9,
|
||||
0x26, 0x9e, 0x64, 0x79, 0x2a, 0xf1, 0x21, 0x08, 0xa5, 0x53, 0xfd, 0xa3, 0x3d, 0xb1, 0x37, 0xa4,
|
||||
0xc1, 0x18, 0x67, 0x33, 0xf1, 0x28, 0x9f, 0x35, 0xab, 0xf4, 0xa1, 0x12, 0x52, 0x9d, 0xb3, 0x53,
|
||||
0xc9, 0xc0, 0x39, 0x28, 0x62, 0x96, 0x2d, 0x02, 0xa8, 0x57, 0xd1, 0xef, 0x09, 0x36, 0x1d, 0xf5,
|
||||
0x07, 0x28, 0x9c, 0x37, 0x94, 0x87, 0x47, 0xfc, 0x82, 0x86, 0xe7, 0x22, 0xe2, 0x04, 0x81, 0x4c,
|
||||
0xbc, 0xc5, 0x99, 0x46, 0x34, 0x96, 0x14, 0x0c, 0xcd, 0xe8, 0x3c, 0x7e, 0x5b, 0x20, 0x59, 0xf9,
|
||||
0x8b, 0x53, 0x3b, 0x17, 0x19, 0x24, 0x5f, 0x0c, 0x0b, 0x0d, 0x1e, 0x14, 0x0e, 0x92, 0xfa, 0xb0,
|
||||
0xaa, 0x6a, 0x88, 0xf7, 0x5b, 0xc4, 0x9b, 0x0c, 0x2c, 0x66, 0xf0, 0x64, 0xe2, 0xfe, 0x60, 0x16,
|
||||
0x89, 0xa6, 0xa7, 0xbc, 0x0c, 0xd6, 0x97, 0x72, 0x78, 0x99, 0x8a, 0xb4, 0xf2, 0x71, 0x09, 0x9a,
|
||||
0x27, 0x58, 0x62, 0xe0, 0x5f, 0x07, 0x88, 0x0b, 0x71, 0x5f, 0x86, 0xe2, 0xb5, 0xce, 0x7e, 0xcf,
|
||||
0xd7, 0x89, 0xd6, 0xf9, 0x05, 0xad, 0x79, 0x4b, 0x84, 0x13, 0x26, 0x4f, 0x7b, 0x06, 0x68, 0x91,
|
||||
0x76, 0xc6, 0xbe, 0xac, 0x19, 0x17, 0x08, 0x0a, 0xab, 0xac, 0x04, 0x09, 0xd5, 0x68, 0xb7, 0x39,
|
||||
0x0a, 0x7d, 0x2b, 0x71, 0x19, 0xf9, 0xc5, 0x87, 0xec, 0x4b, 0xfa, 0x7c, 0x8c, 0x53, 0x97, 0x8a,
|
||||
0x72, 0xf4, 0xf1, 0x4e, 0xa6, 0x81, 0xd8, 0x0c, 0xaf, 0x08, 0x20, 0xc4, 0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xad, 0x54, 0x76, 0x3f, 0xe5, 0x43, 0xa9,
|
||||
0x62, 0x62, 0x70, 0xc2, 0xde, 0x74, 0x27, 0xac, 0x24, 0xda, 0xe8, 0x5e, 0x6e, 0xde, 0xc7, 0x43,
|
||||
0x29, 0xcb, 0x66, 0x3b, 0xc1, 0xea, 0xe2, 0x0a, 0xd6, 0xdd, 0x63, 0x5b, 0xa1, 0x12, 0x5a, 0x25,
|
||||
0x7f, 0x5b, 0xe8, 0x02, 0x30, 0xc4, 0xc3, 0x14, 0x97, 0x4f, 0x30, 0x3a, 0xc3, 0x56, 0x5c, 0x28,
|
||||
0xd5, 0x23, 0x85, 0x89, 0x1b, 0xf1, 0x0a, 0x03, 0x5e, 0x7c, 0xb0, 0x9e, 0x83, 0x78, 0xcf, 0xad,
|
||||
0x94, 0x94, 0x2c, 0xca, 0x29, 0xab, 0xce, 0xa0, 0xbf, 0xc0, 0x6f, 0x0c, 0xd8, 0xc9, 0xc2, 0xf7,
|
||||
0xb2, 0xa7, 0xff, 0x9d, 0xc1, 0xf1, 0xc5, 0x07, 0x6c, 0xaf, 0x3b, 0x86, 0xfa, 0x00, 0x32, 0x09,
|
||||
0xfc, 0xee, 0x14, 0x36, 0xb5, 0x08, 0xdc, 0x75, 0x37, 0x6f, 0x98, 0xd2, 0xf3, 0x89, 0xb0, 0xe3,
|
||||
0x6f, 0xdd, 0xf0, 0x2c, 0x88, 0xce, 0xed, 0x02, 0xf1, 0xa5, 0xf3, 0x24, 0x05, 0x21, 0x94, 0xd1,
|
||||
0x2b, 0x1e, 0x37, 0xa0, 0x49, 0xaa, 0xf4, 0xc9, 0x1f, 0xf3, 0x04, 0x20, 0x16, 0xc1, 0x52, 0x05,
|
||||
0xac, 0xef, 0xd1, 0xb8, 0xfb, 0xe8, 0x93, 0x0a, 0x86, 0xe9, 0xab, 0xae, 0xf9, 0x24, 0xa3, 0x25,
|
||||
0xb4, 0xbf, 0x24, 0xfd, 0x59, 0xab, 0xeb, 0xd9, 0x69, 0x8d, 0x73, 0x02, 0x33, 0x1d, 0x35, 0x8e,
|
||||
0x8c, 0xd9, 0xa9, 0x10, 0x83, 0xf7, 0x4f, 0x09, 0x34, 0x10, 0xec, 0xcf, 0xc3, 0x23, 0xf7, 0xe4,
|
||||
0xeb, 0xf4, 0x37, 0x2b, 0x31, 0xf5, 0xc3, 0x5d, 0x66, 0x8b, 0xa5, 0xf2, 0xa4, 0x05, 0x2a, 0x56,
|
||||
0xa0, 0xf6, 0x80, 0x93, 0x48, 0x62, 0x45, 0x53, 0x3a, 0xbd, 0x32, 0x7d, 0xb8, 0x4c, 0xf1, 0x09,
|
||||
0x3e, 0x6e, 0xce, 0x13, 0x90, 0x76, 0x2a, 0x67, 0x7d, 0xe2, 0xa2, 0x3f, 0x83, 0x4e, 0x84, 0x2a,
|
||||
0x8f, 0x0b, 0x38, 0xc2, 0xd0, 0xef, 0x63, 0x5c, 0xb0, 0xb5, 0xbf, 0xbf, 0x51, 0x5b, 0xb3, 0xe2,
|
||||
0x68, 0x8d, 0x38, 0xbc, 0x8b, 0x4f, 0x99, 0xb9, 0x40, 0xd4, 0x66, 0x3e, 0xce, 0x9a, 0x5f, 0xdb,
|
||||
0xb4, 0x49, 0x6e, 0xf1, 0xec, 0x0a, 0x76, 0x61]
|
||||
|
||||
let serverSignatureResult: [UInt8] = [
|
||||
0x81, 0x9c, 0x59, 0xfc, 0xac, 0xa7, 0x02, 0x3b, 0x13, 0x87, 0x5e, 0xf6, 0x3e, 0xf9, 0x8d, 0xf3, 0x14, 0xde, 0x2a, 0x6a, 0x56, 0xd3, 0x14, 0xf6, 0x3c, 0xb9, 0x8c, 0x23, 0x4b, 0x55, 0xf5, 0x06, 0xaf, 0xf6, 0x47, 0x5d, 0x29, 0x57, 0x89, 0xc6, 0x6a, 0x11, 0xcd, 0xde, 0xc1, 0x60, 0x2e, 0xf1, 0xc4, 0xa2, 0x44, 0x14, 0x16, 0x8f, 0xe9, 0xba, 0x10, 0x36, 0xba, 0x28, 0x6b, 0x47, 0xea, 0x07]
|
||||
0xc1, 0x45, 0xcb, 0xb3, 0x91, 0xc7, 0xe3, 0xb4, 0x70, 0xd3, 0xf2, 0xa7, 0x02, 0xdf, 0xd4, 0xb8,
|
||||
0xed, 0x29, 0x9e, 0x0d, 0xd9, 0x48, 0xe7, 0x33, 0x23, 0x1e, 0xf2, 0x96, 0x93, 0xdb, 0x14, 0x0f,
|
||||
0xad, 0xce, 0x61, 0xb3, 0x9c, 0x54, 0xa1, 0x23, 0x45, 0xb7, 0xa7, 0x1c, 0x49, 0x2d, 0xbd, 0x71,
|
||||
0x4b, 0x04, 0xbf, 0x76, 0x76, 0x3a, 0xfe, 0x9e, 0x7a, 0xe7, 0x57, 0x3c, 0x18, 0xe3, 0xc3, 0x09]
|
||||
|
||||
func testAuthIntegration() throws {
|
||||
|
||||
@ -224,7 +227,7 @@ class ZKGroupTests: XCTestCase {
|
||||
|
||||
XCTAssertEqual(plaintext.serialize(), uuid.serialize())
|
||||
|
||||
let profileKeyCiphertext = try clientZkGroupCipher.encryptProfileKey(randomness: TEST_ARRAY_32_4, profileKey: profileKey, uuid: uuid)
|
||||
let profileKeyCiphertext = try clientZkGroupCipher.encryptProfileKey(profileKey: profileKey, uuid: uuid)
|
||||
let decryptedProfileKey = try clientZkGroupCipher.decryptProfileKey(profileKeyCiphertext: profileKeyCiphertext, uuid: uuid)
|
||||
XCTAssertEqual(profileKey.serialize(), decryptedProfileKey.serialize())
|
||||
|
||||
@ -237,11 +240,9 @@ class ZKGroupTests: XCTestCase {
|
||||
let uuidCiphertextRecv = try presentation.getUuidCiphertext()
|
||||
XCTAssertEqual(uuidCiphertext.serialize(), uuidCiphertextRecv.serialize())
|
||||
|
||||
let pkvA = try profileKeyCommitment.getProfileKeyVersion()
|
||||
let pkvB = try profileKey.getProfileKeyVersion(uuid: uuid)
|
||||
XCTAssertEqual(pkvA.serialize(), pkvB.serialize())
|
||||
let pkvC = try ProfileKeyVersion(contents: pkvA.serialize())
|
||||
XCTAssertEqual(pkvA.serialize(), pkvC.serialize())
|
||||
let pkvC = try ProfileKeyVersion(contents: pkvB.serialize())
|
||||
XCTAssertEqual(pkvB.serialize(), pkvC.serialize())
|
||||
}
|
||||
|
||||
func testServerSignatures() throws {
|
||||
@ -294,10 +295,11 @@ class ZKGroupTests: XCTestCase {
|
||||
let plaintext: [UInt8] = [
|
||||
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
|
||||
0x18, 0x19]
|
||||
let ciphertext: [UInt8] = [
|
||||
0xc0, 0x9c, 0x16, 0x75, 0x4b, 0x32, 0x86, 0x7f, 0xd5, 0x11, 0x9d, 0x18, 0x81, 0xd6, 0x2e,
|
||||
0x7c, 0x96, 0x7f, 0x6e, 0x3a, 0x8a, 0xf5, 0xf0, 0x9a, 0xc8, 0x4f, 0x7b, 0x74, 0xfc, 0xc6,
|
||||
0xd0, 0xe4, 0xd5, 0x9c, 0x9f, 0x4a, 0x17, 0x5e, 0x0f, 0x48, 0x9c, 0x47, 0xe4, 0x81, 0xf1]
|
||||
let ciphertext: [UInt8] = [
|
||||
0x3e, 0xe2, 0xa9, 0x19, 0x44, 0xd8, 0xb4, 0xc6, 0x4f, 0x4a, 0xc3, 0xb9, 0x4d, 0x48, 0x52, 0x94,
|
||||
0xea, 0x3a, 0x44, 0x48, 0x0f, 0x5e, 0x2b, 0x9c, 0x51, 0xb6, 0x5d, 0x51, 0x1c, 0xb8, 0x86, 0xa7,
|
||||
0x97, 0x12, 0x19, 0x0c, 0x22, 0x16, 0xcb, 0xad, 0x76, 0xb6, 0x90, 0x05, 0x5a, 0x97, 0xd3, 0xeb,
|
||||
0x59]
|
||||
|
||||
let ciphertext2 = try clientZkGroupCipher.encryptBlob(randomness: TEST_ARRAY_32_2, plaintext: plaintext)
|
||||
let plaintext2 = try clientZkGroupCipher.decryptBlob(blobCiphertext: ciphertext2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user