mirror of
https://github.com/lil-org/tokenary.git
synced 2025-01-05 20:16:25 +03:00
Fix WalletCore build warnings
This commit is contained in:
parent
fe831129a2
commit
53cef44995
@ -7,7 +7,6 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
09646B0A20FEACA5CAB093BF /* Pods_Encrypted_Ink.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 100FF49FA53ACCE128D86D88 /* Pods_Encrypted_Ink.framework */; };
|
||||
0DB729122674E2DB0011F7A1 /* EIP712ParameterEncoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DB729022674E2DB0011F7A1 /* EIP712ParameterEncoder.swift */; };
|
||||
0DB729142674E2DB0011F7A1 /* EIP712Parameter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DB729042674E2DB0011F7A1 /* EIP712Parameter.swift */; };
|
||||
0DB729152674E2DB0011F7A1 /* EIP712Error.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DB729052674E2DB0011F7A1 /* EIP712Error.swift */; };
|
||||
@ -22,6 +21,7 @@
|
||||
0DB7291E2674E2DB0011F7A1 /* EIP712Signable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DB7290F2674E2DB0011F7A1 /* EIP712Signable.swift */; };
|
||||
0DB7291F2674E2DB0011F7A1 /* EIP712Representable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DB729102674E2DB0011F7A1 /* EIP712Representable.swift */; };
|
||||
0DB729202674E2DB0011F7A1 /* EIP712Domain.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DB729112674E2DB0011F7A1 /* EIP712Domain.swift */; };
|
||||
28BDF30EBC80362870C988B6 /* Pods_Encrypted_Ink.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E2A642C960E4952955E6E82 /* Pods_Encrypted_Ink.framework */; };
|
||||
2C03D1D2269B407900EF10EA /* NetworkMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C03D1D1269B407900EF10EA /* NetworkMonitor.swift */; };
|
||||
2C03D1D5269B428C00EF10EA /* Notification.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C03D1D4269B428C00EF10EA /* Notification.swift */; };
|
||||
2C1995402674C4B900A8E370 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C19953F2674C4B900A8E370 /* AppDelegate.swift */; };
|
||||
@ -70,7 +70,6 @@
|
||||
0DB7290F2674E2DB0011F7A1 /* EIP712Signable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EIP712Signable.swift; sourceTree = "<group>"; };
|
||||
0DB729102674E2DB0011F7A1 /* EIP712Representable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EIP712Representable.swift; sourceTree = "<group>"; };
|
||||
0DB729112674E2DB0011F7A1 /* EIP712Domain.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EIP712Domain.swift; sourceTree = "<group>"; };
|
||||
100FF49FA53ACCE128D86D88 /* Pods_Encrypted_Ink.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Encrypted_Ink.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
2C03D1D1269B407900EF10EA /* NetworkMonitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkMonitor.swift; sourceTree = "<group>"; };
|
||||
2C03D1D4269B428C00EF10EA /* Notification.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Notification.swift; sourceTree = "<group>"; };
|
||||
2C19953C2674C4B900A8E370 /* Encrypted Ink.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Encrypted Ink.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
@ -105,8 +104,9 @@
|
||||
2CDAB3712675B3F0009F8B97 /* PasswordViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PasswordViewController.swift; sourceTree = "<group>"; };
|
||||
2CE3D011267F73C00032A62E /* Transaction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Transaction.swift; sourceTree = "<group>"; };
|
||||
2CE3D014267F73E80032A62E /* Account.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Account.swift; sourceTree = "<group>"; };
|
||||
3A73512BAD412202C7FEE47F /* Pods-Encrypted Ink.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Encrypted Ink.release.xcconfig"; path = "Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink.release.xcconfig"; sourceTree = "<group>"; };
|
||||
5D5B7FB8719AFFBA7D180C11 /* Pods-Encrypted Ink.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Encrypted Ink.debug.xcconfig"; path = "Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
35AD6E3AC630C8A9B4EC16D9 /* Pods-Encrypted Ink.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Encrypted Ink.release.xcconfig"; path = "Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink.release.xcconfig"; sourceTree = "<group>"; };
|
||||
3E2A642C960E4952955E6E82 /* Pods_Encrypted_Ink.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Encrypted_Ink.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A858B0F7D88913EAB1FA50B0 /* Pods-Encrypted Ink.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Encrypted Ink.debug.xcconfig"; path = "Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@ -114,7 +114,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
09646B0A20FEACA5CAB093BF /* Pods_Encrypted_Ink.framework in Frameworks */,
|
||||
28BDF30EBC80362870C988B6 /* Pods_Encrypted_Ink.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@ -156,7 +156,7 @@
|
||||
2C19953E2674C4B900A8E370 /* Encrypted Ink */,
|
||||
2C19953D2674C4B900A8E370 /* Products */,
|
||||
FB5786212D81829B0FADBD25 /* Pods */,
|
||||
FC39E7D2841BDD674B7E738B /* Frameworks */,
|
||||
8E59B61AC986C705990A0C02 /* Frameworks */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
@ -257,23 +257,23 @@
|
||||
path = Services;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8E59B61AC986C705990A0C02 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3E2A642C960E4952955E6E82 /* Pods_Encrypted_Ink.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
FB5786212D81829B0FADBD25 /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5D5B7FB8719AFFBA7D180C11 /* Pods-Encrypted Ink.debug.xcconfig */,
|
||||
3A73512BAD412202C7FEE47F /* Pods-Encrypted Ink.release.xcconfig */,
|
||||
A858B0F7D88913EAB1FA50B0 /* Pods-Encrypted Ink.debug.xcconfig */,
|
||||
35AD6E3AC630C8A9B4EC16D9 /* Pods-Encrypted Ink.release.xcconfig */,
|
||||
);
|
||||
path = Pods;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
FC39E7D2841BDD674B7E738B /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
100FF49FA53ACCE128D86D88 /* Pods_Encrypted_Ink.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
@ -281,12 +281,12 @@
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 2C19954C2674C4BA00A8E370 /* Build configuration list for PBXNativeTarget "Encrypted Ink" */;
|
||||
buildPhases = (
|
||||
9C519BFB338230046103665E /* [CP] Check Pods Manifest.lock */,
|
||||
3626CB05002789B293903501 /* [CP] Check Pods Manifest.lock */,
|
||||
2C1995382674C4B900A8E370 /* Sources */,
|
||||
2C1995392674C4B900A8E370 /* Frameworks */,
|
||||
2C19953A2674C4B900A8E370 /* Resources */,
|
||||
2C1995512674C6A100A8E370 /* ShellScript */,
|
||||
93A4B814EC07C49CFA44CD46 /* [CP] Embed Pods Frameworks */,
|
||||
DA399964E8F6C2CF5532D1CE /* [CP] Embed Pods Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
@ -359,24 +359,7 @@
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
|
||||
};
|
||||
93A4B814EC07C49CFA44CD46 /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
9C519BFB338230046103665E /* [CP] Check Pods Manifest.lock */ = {
|
||||
3626CB05002789B293903501 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
@ -398,6 +381,23 @@
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
DA399964E8F6C2CF5532D1CE /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Encrypted Ink/Pods-Encrypted Ink-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
@ -582,7 +582,7 @@
|
||||
};
|
||||
2C19954D2674C4BA00A8E370 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 5D5B7FB8719AFFBA7D180C11 /* Pods-Encrypted Ink.debug.xcconfig */;
|
||||
baseConfigurationReference = A858B0F7D88913EAB1FA50B0 /* Pods-Encrypted Ink.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
@ -609,7 +609,7 @@
|
||||
};
|
||||
2C19954E2674C4BA00A8E370 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 3A73512BAD412202C7FEE47F /* Pods-Encrypted Ink.release.xcconfig */;
|
||||
baseConfigurationReference = 35AD6E3AC630C8A9B4EC16D9 /* Pods-Encrypted Ink.release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
|
2
Podfile
2
Podfile
@ -7,5 +7,5 @@ target 'Encrypted Ink' do
|
||||
pod 'BlockiesSwift'
|
||||
pod 'Kingfisher'
|
||||
pod 'WalletConnect', git: 'https://github.com/grachyov/wallet-connect-swift', branch: 'master'
|
||||
pod 'TrustWalletCoreMacOS'
|
||||
pod 'TrustWalletCoreMacOS', '2.6.12.4'
|
||||
end
|
||||
|
18
Podfile.lock
18
Podfile.lock
@ -1,7 +1,7 @@
|
||||
PODS:
|
||||
- BigInt (5.2.0)
|
||||
- BlockiesSwift (0.1.2)
|
||||
- CryptoSwift (1.4.0)
|
||||
- CryptoSwift (1.4.1)
|
||||
- Kingfisher (6.3.0)
|
||||
- PromiseKit (6.15.3):
|
||||
- PromiseKit/CorePromise (= 6.15.3)
|
||||
@ -14,11 +14,11 @@ PODS:
|
||||
- Starscream (3.1.1)
|
||||
- SwiftProtobuf (1.17.0)
|
||||
- SwiftyJSON (4.3.0)
|
||||
- TrustWalletCoreMacOS (2.6.12.1):
|
||||
- TrustWalletCoreMacOS/Core (= 2.6.12.1)
|
||||
- TrustWalletCoreMacOS/Core (2.6.12.1):
|
||||
- TrustWalletCoreMacOS (2.6.12.4):
|
||||
- TrustWalletCoreMacOS/Core (= 2.6.12.4)
|
||||
- TrustWalletCoreMacOS/Core (2.6.12.4):
|
||||
- TrustWalletCoreMacOS/Types
|
||||
- TrustWalletCoreMacOS/Types (2.6.12.1):
|
||||
- TrustWalletCoreMacOS/Types (2.6.12.4):
|
||||
- SwiftProtobuf
|
||||
- WalletConnect (0.1.0):
|
||||
- CryptoSwift
|
||||
@ -33,7 +33,7 @@ PODS:
|
||||
DEPENDENCIES:
|
||||
- BlockiesSwift
|
||||
- Kingfisher
|
||||
- TrustWalletCoreMacOS
|
||||
- TrustWalletCoreMacOS (= 2.6.12.4)
|
||||
- WalletConnect (from `https://github.com/grachyov/wallet-connect-swift`, branch `master`)
|
||||
- Web3Swift.io (from `https://github.com/zeriontech/Web3Swift.git`, branch `develop`)
|
||||
|
||||
@ -69,17 +69,17 @@ CHECKOUT OPTIONS:
|
||||
SPEC CHECKSUMS:
|
||||
BigInt: f668a80089607f521586bbe29513d708491ef2f7
|
||||
BlockiesSwift: 22d8d56dd187e6bfd16cb8c8fbd4fd4896c3e65d
|
||||
CryptoSwift: 7cc902df1784de3b389a387756c7d710f197730c
|
||||
CryptoSwift: 0bc800a7e6a24c4fc9ebeab97d44b0d5f73a78bd
|
||||
Kingfisher: 6c3df386db71d82c0817a429d2c9421a77396529
|
||||
PromiseKit: 3b2b6995e51a954c46dbc550ce3da44fbfb563c5
|
||||
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
|
||||
Starscream: 4bb2f9942274833f7b4d296a55504dcfc7edb7b0
|
||||
SwiftProtobuf: 9c85136c6ba74b0a1b84279dbf0f6db8efb714e0
|
||||
SwiftyJSON: 6faa0040f8b59dead0ee07436cbf76b73c08fd08
|
||||
TrustWalletCoreMacOS: d32d311a66a4a73ca3f2df60ea335ba97a858423
|
||||
TrustWalletCoreMacOS: 3d2c29afa9f280bb3c2a47adb7fcdf55eefb23ae
|
||||
WalletConnect: 1df75d4355b1cacfc27d7ef2416fae43862d0eb4
|
||||
Web3Swift.io: 18fd06aed9d56df9c704f9c6f87b06675bb05b53
|
||||
|
||||
PODFILE CHECKSUM: b33433241056512e581c586a1dc7c2627fc01c52
|
||||
PODFILE CHECKSUM: df8a2f6221781ce7a8000541726bd0cabb709af1
|
||||
|
||||
COCOAPODS: 1.10.1
|
||||
|
13
Pods/CryptoSwift/README.md
generated
13
Pods/CryptoSwift/README.md
generated
@ -36,10 +36,10 @@ Good mood
|
||||
#### Hash (Digest)
|
||||
[MD5](http://tools.ietf.org/html/rfc1321)
|
||||
| [SHA1](http://tools.ietf.org/html/rfc3174)
|
||||
| [SHA224](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA256](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA384](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA512](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA2-224](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA2-256](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA2-384](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA2-512](http://tools.ietf.org/html/rfc6234)
|
||||
| [SHA3](http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf)
|
||||
|
||||
#### Cyclic Redundancy Check (CRC)
|
||||
@ -81,6 +81,7 @@ Good mood
|
||||
| [PKCS#7](http://tools.ietf.org/html/rfc5652#section-6.3)
|
||||
| [Zero padding](https://en.wikipedia.org/wiki/Padding_(cryptography)#Zero_padding)
|
||||
| [ISO78164](http://www.embedx.com/pdfs/ISO_STD_7816/info_isoiec7816-4%7Bed21.0%7Den.pdf)
|
||||
| [ISO10126](https://en.wikipedia.org/wiki/Padding_(cryptography)#ISO_10126)
|
||||
| No padding
|
||||
|
||||
#### Authenticated Encryption with Associated Data (AEAD)
|
||||
@ -121,7 +122,7 @@ It is recommended to enable [Whole-Module Optimization](https://swift.org/blog/w
|
||||
You can use [Swift Package Manager](https://swift.org/package-manager/) and specify dependency in `Package.swift` by adding this:
|
||||
|
||||
```swift
|
||||
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMinor(from: "1.4.0"))
|
||||
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMajor(from: "1.4.1"))
|
||||
```
|
||||
|
||||
See: [Package.swift - manual](http://blog.krzyzanowskim.com/2016/08/09/package-swift-manual/)
|
||||
@ -133,7 +134,7 @@ Notice: Swift Package Manager uses debug configuration for debug Xcode build, th
|
||||
You can use [CocoaPods](https://cocoapods.org/pods/CryptoSwift).
|
||||
|
||||
```ruby
|
||||
pod 'CryptoSwift', '~> 1.4.0'
|
||||
pod 'CryptoSwift', '~> 1.4.1'
|
||||
```
|
||||
|
||||
Bear in mind that CocoaPods will build CryptoSwift without [Whole-Module Optimization](https://swift.org/blog/whole-module-optimizations/) that may impact performance. You can change it manually after installation, or use [cocoapods-wholemodule](https://github.com/jedlewison/cocoapods-wholemodule) plugin.
|
||||
|
@ -16,8 +16,8 @@
|
||||
import Foundation
|
||||
|
||||
public extension Array where Element == UInt8 {
|
||||
func toBase64() -> String? {
|
||||
Data( self).base64EncodedString()
|
||||
func toBase64() -> String {
|
||||
Data(self).base64EncodedString()
|
||||
}
|
||||
|
||||
init(base64: String) {
|
||||
|
@ -19,7 +19,7 @@ public protocol PaddingProtocol {
|
||||
}
|
||||
|
||||
public enum Padding: PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164, iso10126
|
||||
|
||||
public func add(to: Array<UInt8>, blockSize: Int) -> Array<UInt8> {
|
||||
switch self {
|
||||
@ -33,6 +33,8 @@ public enum Padding: PaddingProtocol {
|
||||
return PKCS5.Padding().add(to: to, blockSize: blockSize)
|
||||
case .iso78164:
|
||||
return ISO78164Padding().add(to: to, blockSize: blockSize)
|
||||
case .iso10126:
|
||||
return ISO10126Padding().add(to: to, blockSize: blockSize)
|
||||
}
|
||||
}
|
||||
|
||||
@ -48,6 +50,8 @@ public enum Padding: PaddingProtocol {
|
||||
return PKCS5.Padding().remove(from: from, blockSize: blockSize)
|
||||
case .iso78164:
|
||||
return ISO78164Padding().remove(from: from, blockSize: blockSize)
|
||||
case .iso10126:
|
||||
return ISO10126Padding().remove(from: from, blockSize: blockSize)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
7
Pods/CryptoSwift/Sources/CryptoSwift/SHA2.swift
generated
7
Pods/CryptoSwift/Sources/CryptoSwift/SHA2.swift
generated
@ -43,6 +43,7 @@ public final class SHA2: DigestType {
|
||||
@usableFromInline
|
||||
var accumulatedHash64 = Array<UInt64>()
|
||||
|
||||
@frozen
|
||||
public enum Variant: RawRepresentable {
|
||||
case sha224, sha256, sha384, sha512
|
||||
|
||||
@ -316,8 +317,6 @@ extension SHA2: Updatable {
|
||||
self.process32(block: chunk, currentHash: &self.accumulatedHash32)
|
||||
case .sha384, .sha512:
|
||||
self.process64(block: chunk, currentHash: &self.accumulatedHash64)
|
||||
@unknown default:
|
||||
preconditionFailure()
|
||||
}
|
||||
processedBytes += chunk.count
|
||||
}
|
||||
@ -352,8 +351,6 @@ extension SHA2: Updatable {
|
||||
result[pos + 7] = UInt8(h & 0xff)
|
||||
pos += 8
|
||||
}
|
||||
@unknown default:
|
||||
preconditionFailure()
|
||||
}
|
||||
|
||||
// reset hash value for instance
|
||||
@ -363,8 +360,6 @@ extension SHA2: Updatable {
|
||||
self.accumulatedHash32 = self.variant.h.lazy.map { UInt32($0) } // FIXME: UInt64 for process64
|
||||
case .sha384, .sha512:
|
||||
self.accumulatedHash64 = self.variant.h
|
||||
@unknown default:
|
||||
preconditionFailure()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ extension String {
|
||||
/// - parameter cipher: Instance of `Cipher`
|
||||
/// - returns: base64 encoded string of encrypted bytes
|
||||
@inlinable
|
||||
public func encryptToBase64(cipher: Cipher) throws -> String? {
|
||||
public func encryptToBase64(cipher: Cipher) throws -> String {
|
||||
try self.bytes.encrypt(cipher: cipher).toBase64()
|
||||
}
|
||||
|
||||
|
18
Pods/Manifest.lock
generated
18
Pods/Manifest.lock
generated
@ -1,7 +1,7 @@
|
||||
PODS:
|
||||
- BigInt (5.2.0)
|
||||
- BlockiesSwift (0.1.2)
|
||||
- CryptoSwift (1.4.0)
|
||||
- CryptoSwift (1.4.1)
|
||||
- Kingfisher (6.3.0)
|
||||
- PromiseKit (6.15.3):
|
||||
- PromiseKit/CorePromise (= 6.15.3)
|
||||
@ -14,11 +14,11 @@ PODS:
|
||||
- Starscream (3.1.1)
|
||||
- SwiftProtobuf (1.17.0)
|
||||
- SwiftyJSON (4.3.0)
|
||||
- TrustWalletCoreMacOS (2.6.12.1):
|
||||
- TrustWalletCoreMacOS/Core (= 2.6.12.1)
|
||||
- TrustWalletCoreMacOS/Core (2.6.12.1):
|
||||
- TrustWalletCoreMacOS (2.6.12.4):
|
||||
- TrustWalletCoreMacOS/Core (= 2.6.12.4)
|
||||
- TrustWalletCoreMacOS/Core (2.6.12.4):
|
||||
- TrustWalletCoreMacOS/Types
|
||||
- TrustWalletCoreMacOS/Types (2.6.12.1):
|
||||
- TrustWalletCoreMacOS/Types (2.6.12.4):
|
||||
- SwiftProtobuf
|
||||
- WalletConnect (0.1.0):
|
||||
- CryptoSwift
|
||||
@ -33,7 +33,7 @@ PODS:
|
||||
DEPENDENCIES:
|
||||
- BlockiesSwift
|
||||
- Kingfisher
|
||||
- TrustWalletCoreMacOS
|
||||
- TrustWalletCoreMacOS (= 2.6.12.4)
|
||||
- WalletConnect (from `https://github.com/grachyov/wallet-connect-swift`, branch `master`)
|
||||
- Web3Swift.io (from `https://github.com/zeriontech/Web3Swift.git`, branch `develop`)
|
||||
|
||||
@ -69,17 +69,17 @@ CHECKOUT OPTIONS:
|
||||
SPEC CHECKSUMS:
|
||||
BigInt: f668a80089607f521586bbe29513d708491ef2f7
|
||||
BlockiesSwift: 22d8d56dd187e6bfd16cb8c8fbd4fd4896c3e65d
|
||||
CryptoSwift: 7cc902df1784de3b389a387756c7d710f197730c
|
||||
CryptoSwift: 0bc800a7e6a24c4fc9ebeab97d44b0d5f73a78bd
|
||||
Kingfisher: 6c3df386db71d82c0817a429d2c9421a77396529
|
||||
PromiseKit: 3b2b6995e51a954c46dbc550ce3da44fbfb563c5
|
||||
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
|
||||
Starscream: 4bb2f9942274833f7b4d296a55504dcfc7edb7b0
|
||||
SwiftProtobuf: 9c85136c6ba74b0a1b84279dbf0f6db8efb714e0
|
||||
SwiftyJSON: 6faa0040f8b59dead0ee07436cbf76b73c08fd08
|
||||
TrustWalletCoreMacOS: d32d311a66a4a73ca3f2df60ea335ba97a858423
|
||||
TrustWalletCoreMacOS: 3d2c29afa9f280bb3c2a47adb7fcdf55eefb23ae
|
||||
WalletConnect: 1df75d4355b1cacfc27d7ef2416fae43862d0eb4
|
||||
Web3Swift.io: 18fd06aed9d56df9c704f9c6f87b06675bb05b53
|
||||
|
||||
PODFILE CHECKSUM: b33433241056512e581c586a1dc7c2627fc01c52
|
||||
PODFILE CHECKSUM: df8a2f6221781ce7a8000541726bd0cabb709af1
|
||||
|
||||
COCOAPODS: 1.10.1
|
||||
|
6442
Pods/Pods.xcodeproj/project.pbxproj
generated
6442
Pods/Pods.xcodeproj/project.pbxproj
generated
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.4.0</string>
|
||||
<string>1.4.1</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
Loading…
Reference in New Issue
Block a user