File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 88import Foundation
99
1010public struct AESResult : Codable {
11- let salt : String
12- let iv : String
13- let encodedData : String
11+ public let salt : String
12+ public let iv : String
13+ public let encodedData : String
1414
1515 enum CodingKeys : String , CodingKey {
1616 case salt
Original file line number Diff line number Diff line change @@ -9,22 +9,22 @@ import Foundation
99
1010public struct HttpFriendlyResult : Codable {
1111 /// RSA-encrypted AES password of request body
12- let requestPassword : String
12+ public let requestPassword : String
1313
1414 /// IV that was used while encrypting the raw data
15- let iv : String
15+ public let iv : String
1616
1717 /// salt that was used while encrypting the raw data
18- let salt : String
18+ public let salt : String
1919
2020 /// RSA-encrypted AES password for peer/server to encrypt the response
21- let responsePassword : String
21+ public let responsePassword : String
2222
2323 /// AES-encrypted data
24- let encryptedData : String
24+ public let encryptedData : String
2525
2626 /// RSA-encrypted SHA512 hash of the raw data
27- let signature : String
27+ public let signature : String
2828
2929 enum CodingKeys : String , CodingKey {
3030 case requestPassword
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ public struct HybridCipherResult : Codable {
1212 /**
1313 * Should be saved for decrypting the encrypted response from server
1414 */
15- let rawResponsePassword : String
15+ public let rawResponsePassword : String
1616
1717 /**
1818 * Suitable for sending to server via REST API
1919 */
20- let httpParams : HttpFriendlyResult
20+ public let httpParams : HttpFriendlyResult
2121
2222 enum CodingKeys : String , CodingKey {
2323 case rawResponsePassword
Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ public struct Configuration {
8686 var aesKeyIterationCount : Int
8787 var rsaPadding : SwiftyPadding
8888
89- static let defaultCofig = Configuration (
89+ public static let defaultCofig = Configuration (
9090 aesKeySize: DEFAULT_AES_KEY_SIZE,
9191 aesMode: DEFAULT_AES_MODE,
9292 aesKeyIterationCount: DEFAULT_AES_KEY_ITERATION_COUNT,
9393 rsaPadding: DEFAULT_RSA_PADDING
9494 )
9595
96- static let DEFAULT_AES_KEY_SIZE = 16 // Bytes
97- static let DEFAULT_AES_KEY_ITERATION_COUNT = 100 // Rounds
98- static let DEFAULT_RSA_PADDING = SwiftyPadding . PKCS1
99- static let DEFAULT_AES_MODE = " AES/CBC/PKCS7Padding "
96+ public static let DEFAULT_AES_KEY_SIZE = 16 // Bytes
97+ public static let DEFAULT_AES_KEY_ITERATION_COUNT = 100 // Rounds
98+ public static let DEFAULT_RSA_PADDING = SwiftyPadding . PKCS1
99+ public static let DEFAULT_AES_MODE = " AES/CBC/PKCS7Padding "
100100}
You can’t perform that action at this time.
0 commit comments