mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
3.2 KiB
Swift
42 lines
3.2 KiB
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
enum TestConstants {
|
|
// Test keys (from here https://github.com/jagerman/session-pysogs/blob/docs/contrib/auth-example.py)
|
|
static let publicKey: String = "88672ccb97f40bb57238989226cf429b575ba355443f47bc76c5ab144a96c65b"
|
|
static let privateKey: String = "30d796c1ddb4dc455fd998a98aa275c247494a9a7bde9c1fee86ae45cd585241"
|
|
static let edKeySeed: String = "c010d89eccbaf5d1c6d19df766c6eedf965d4a28a56f87c9fc819edb59896dd9"
|
|
static let edPublicKey: String = "bac6e71efd7dfa4a83c98ed24f254ab2c267f9ccdb172a5280a0444ad24e89cc"
|
|
static let edSecretKey: String = "c010d89eccbaf5d1c6d19df766c6eedf965d4a28a56f87c9fc819edb59896dd9bac6e71efd7dfa4a83c98ed24f254ab2c267f9ccdb172a5280a0444ad24e89cc"
|
|
static let blind15PublicKey: String = "98932d4bccbe595a8789d7eb1629cefc483a0eaddc7e20e8fe5c771efafd9af5"
|
|
static let blind15SecretKey: String = "16663322d6b684e1c9dcc02b9e8642c3affd3bc431a9ea9e63dbbac88ce7a305"
|
|
static let blind25PublicKey: String = "c0a17a5594f3708414f61a76517ddb02a97d07e715c4225188977990fc6283f0"
|
|
static let blind25SecretKey: String = "8c35261f847cb4a49e3699af92b14171f17e23c711a17ccc5d829bb611267e02"
|
|
static let serverPublicKey: String = "c3b3c6f32f0ab5a57f853cc4f30f5da7fda5624b0c77b3fb0829de562ada081d"
|
|
|
|
static let invalidImageData: Data = Data([1, 2, 3])
|
|
static let validImageData: Data = Data(hex: "ffd8ffe000104a46494600010100004800480000ffe1008045" +
|
|
"78696600004d4d002a000000080005011200030000000100010000011a0005000000010000004a011b000500000001" +
|
|
"0000005201280003000000010002000087690004000000010000005a00000000000000480000000100000048000000" +
|
|
"010002a00200040000000100000001a0030004000000010000000100000000ffed003850686f746f73686f7020332e" +
|
|
"30003842494d04040000000000003842494d0425000000000010d41d8cd98f00b204e9800998ecf8427effc0001108" +
|
|
"0001000103011100021101031101ffc4001f0000010501010101010100000000000000000102030405060708090a0b" +
|
|
"ffc400b5100002010303020403050504040000017d01020300041105122131410613516107227114328191a1082342" +
|
|
"b1c11552d1f02433627282090a161718191a25262728292a3435363738393a434445464748494a535455565758595a" +
|
|
"636465666768696a737475767778797a838485868788898a92939495969798999aa2a3a4a5a6a7a8a9aab2b3b4b5b6" +
|
|
"b7b8b9bac2c3c4c5c6c7c8c9cad2d3d4d5d6d7d8d9dae1e2e3e4e5e6e7e8e9eaf1f2f3f4f5f6f7f8f9faffc4001f01" +
|
|
"00030101010101010101010000000000000102030405060708090a0bffc400b5110002010204040304070504040001" +
|
|
"0277000102031104052131061241510761711322328108144291a1b1c109233352f0156272d10a162434e125f11718" +
|
|
"191a262728292a35363738393a434445464748494a535455565758595a636465666768696a737475767778797a8283" +
|
|
"8485868788898a92939495969798999aa2a3a4a5a6a7a8a9aab2b3b4b5b6b7b8b9bac2c3c4c5c6c7c8c9cad2d3d4d5" +
|
|
"d6d7d8d9dae2e3e4e5e6e7e8e9eaf2f3f4f5f6f7f8f9faffdb00430001010101010101010101010101010101010101" +
|
|
"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101ffdb" +
|
|
"0043010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" +
|
|
"0101010101010101010101010101010101010101ffdd00040001ffda000c03010002110311003f00fefe2803ffd9")
|
|
}
|
|
|
|
public enum TestError: Error, Equatable {
|
|
case mock
|
|
}
|