Skip to content

Commit 7674924

Browse files
author
Utngy Pisal
committed
Make more classes and members public
1 parent ee07656 commit 7674924

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Sources/HybridCrypto/AES Cipher/AESResult.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import Foundation
99

1010
public 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

Sources/HybridCrypto/Hybrid Cipher/HttpFriendlyResult.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ import Foundation
99

1010
public 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

Sources/HybridCrypto/Hybrid Cipher/HybridCipherResult.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Sources/HybridCrypto/Hybrid Cipher/HybridCrypto.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)