Build Information
Failed to build CryptorECC, reference 1.2.201 (148526
), with Swift 6.2 (beta) for Android on 19 Jun 2025 18:49:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/BlueECC.git
Reference: 1.2.201
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/Kitura/BlueECC
* tag 1.2.201 -> FETCH_HEAD
HEAD is now at 1485268 Update podspec to specify Swift 5.2 as the minimum supported
Cloned https://github.com/Kitura/BlueECC.git
Revision (git rev-parse @):
1485268a54f8135435a825a855e733f026fa6cc8
SUCCESS checkout https://github.com/Kitura/BlueECC.git at 1.2.201
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/Kitura/BlueECC.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/Kitura/OpenSSL.git
[3/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.36s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (4.36s)
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/13] Compiling CryptorECC ECSignable.swift
/host/spi-builder-workspace/Sources/CryptorECC/ECSignable.swift:89:30: error: cannot find type 'CFError' in scope
87 |
88 | // Memory storage for error from SecKeyCreateSignature
89 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
90 | // cfSignature is CFData that is ANS1 encoded as a sequence of two UInts (r and s)
91 | guard let cfSignature = SecKeyCreateSignature(key.nativeKey,
/host/spi-builder-workspace/Sources/CryptorECC/ECSignable.swift:91:33: error: cannot find 'SecKeyCreateSignature' in scope
89 | var error: Unmanaged<CFError>? = nil
90 | // cfSignature is CFData that is ANS1 encoded as a sequence of two UInts (r and s)
91 | guard let cfSignature = SecKeyCreateSignature(key.nativeKey,
| `- error: cannot find 'SecKeyCreateSignature' in scope
92 | key.curve.signingAlgorithm,
93 | hash as CFData,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:60:31: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:61:27: error: cannot find type 'SecKeyAlgorithm' in scope
59 | let hashLength = CC_LONG(SHA256_DIGEST_LENGTH)
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
| `- error: cannot find type 'SecKeyAlgorithm' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
/host/spi-builder-workspace/Sources/CryptorECC/ECSignable.swift:93:63: error: cannot find type 'CFData' in scope
91 | guard let cfSignature = SecKeyCreateSignature(key.nativeKey,
92 | key.curve.signingAlgorithm,
93 | hash as CFData,
| `- error: cannot find type 'CFData' in scope
94 | &error)
95 | else {
[4/14] Compiling CryptorECC ECDecryptable.swift
/host/spi-builder-workspace/Sources/CryptorECC/ECDecryptable.swift:132:30: error: cannot find type 'CFError' in scope
130 | return Data(bytes: decrypted, count: Int(decMsgLen))
131 | #else
132 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
133 | guard let eData = SecKeyCreateDecryptedData(key.nativeKey,
134 | key.curve.encryptionAlgorithm,
/host/spi-builder-workspace/Sources/CryptorECC/ECDecryptable.swift:133:27: error: cannot find 'SecKeyCreateDecryptedData' in scope
131 | #else
132 | var error: Unmanaged<CFError>? = nil
133 | guard let eData = SecKeyCreateDecryptedData(key.nativeKey,
| `- error: cannot find 'SecKeyCreateDecryptedData' in scope
134 | key.curve.encryptionAlgorithm,
135 | self as CFData,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:60:31: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:62:31: error: cannot find 'SecKeyAlgorithm' in scope
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
| `- error: cannot find 'SecKeyAlgorithm' in scope
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
/host/spi-builder-workspace/Sources/CryptorECC/ECDecryptable.swift:135:61: error: cannot find type 'CFData' in scope
133 | guard let eData = SecKeyCreateDecryptedData(key.nativeKey,
134 | key.curve.encryptionAlgorithm,
135 | self as CFData,
| `- error: cannot find type 'CFData' in scope
136 | &error)
137 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECEncryptable.swift:162:30: error: cannot find type 'CFError' in scope
160 | return ekFinal + cipher + tagFinal
161 | #else
162 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
163 | guard let eData = SecKeyCreateEncryptedData(key.nativeKey,
164 | key.curve.encryptionAlgorithm,
/host/spi-builder-workspace/Sources/CryptorECC/ECEncryptable.swift:163:27: error: cannot find 'SecKeyCreateEncryptedData' in scope
161 | #else
162 | var error: Unmanaged<CFError>? = nil
163 | guard let eData = SecKeyCreateEncryptedData(key.nativeKey,
| `- error: cannot find 'SecKeyCreateEncryptedData' in scope
164 | key.curve.encryptionAlgorithm,
165 | self as CFData,
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:60:27: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/ECEncryptable.swift:165:61: error: cannot find type 'CFData' in scope
163 | guard let eData = SecKeyCreateEncryptedData(key.nativeKey,
164 | key.curve.encryptionAlgorithm,
165 | self as CFData,
| `- error: cannot find type 'CFData' in scope
166 | &error)
167 | else {
[5/14] Compiling CryptorECC ECEncryptable.swift
/host/spi-builder-workspace/Sources/CryptorECC/ECDecryptable.swift:132:30: error: cannot find type 'CFError' in scope
130 | return Data(bytes: decrypted, count: Int(decMsgLen))
131 | #else
132 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
133 | guard let eData = SecKeyCreateDecryptedData(key.nativeKey,
134 | key.curve.encryptionAlgorithm,
/host/spi-builder-workspace/Sources/CryptorECC/ECDecryptable.swift:133:27: error: cannot find 'SecKeyCreateDecryptedData' in scope
131 | #else
132 | var error: Unmanaged<CFError>? = nil
133 | guard let eData = SecKeyCreateDecryptedData(key.nativeKey,
| `- error: cannot find 'SecKeyCreateDecryptedData' in scope
134 | key.curve.encryptionAlgorithm,
135 | self as CFData,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:60:31: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:62:31: error: cannot find 'SecKeyAlgorithm' in scope
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
| `- error: cannot find 'SecKeyAlgorithm' in scope
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
/host/spi-builder-workspace/Sources/CryptorECC/ECDecryptable.swift:135:61: error: cannot find type 'CFData' in scope
133 | guard let eData = SecKeyCreateDecryptedData(key.nativeKey,
134 | key.curve.encryptionAlgorithm,
135 | self as CFData,
| `- error: cannot find type 'CFData' in scope
136 | &error)
137 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECEncryptable.swift:162:30: error: cannot find type 'CFError' in scope
160 | return ekFinal + cipher + tagFinal
161 | #else
162 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
163 | guard let eData = SecKeyCreateEncryptedData(key.nativeKey,
164 | key.curve.encryptionAlgorithm,
/host/spi-builder-workspace/Sources/CryptorECC/ECEncryptable.swift:163:27: error: cannot find 'SecKeyCreateEncryptedData' in scope
161 | #else
162 | var error: Unmanaged<CFError>? = nil
163 | guard let eData = SecKeyCreateEncryptedData(key.nativeKey,
| `- error: cannot find 'SecKeyCreateEncryptedData' in scope
164 | key.curve.encryptionAlgorithm,
165 | self as CFData,
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:60:27: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/ECEncryptable.swift:165:61: error: cannot find type 'CFData' in scope
163 | guard let eData = SecKeyCreateEncryptedData(key.nativeKey,
164 | key.curve.encryptionAlgorithm,
165 | self as CFData,
| `- error: cannot find type 'CFData' in scope
166 | &error)
167 | else {
[6/14] Compiling CryptorECC ECError.swift
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:60:31: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:90:49: error: cannot find 'CC_SHA256' in scope
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
| `- error: cannot find 'CC_SHA256' in scope
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
92 | keySize: 65)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:49: error: cannot find 'CC_LONG' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:57: error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:61:27: error: cannot find type 'SecKeyAlgorithm' in scope
59 | let hashLength = CC_LONG(SHA256_DIGEST_LENGTH)
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
| `- error: cannot find type 'SecKeyAlgorithm' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:63:56: error: cannot find type 'CC_LONG' in scope
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
| `- error: cannot find type 'CC_LONG' in scope
64 | let hashLength: CC_LONG
65 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:64:21: error: cannot find type 'CC_LONG' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
| `- error: cannot find type 'CC_LONG' in scope
65 | #endif
66 | let keySize: Int
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:88:62: error: cannot infer contextual base in reference to member 'prime256v1'
86 | #else
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
| `- error: cannot infer contextual base in reference to member 'prime256v1'
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:89:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:97:49: error: cannot find 'CC_SHA384' in scope
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
| `- error: cannot find 'CC_SHA384' in scope
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
99 | keySize: 97)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:49: error: cannot find 'CC_LONG' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:57: error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:95:62: error: cannot infer contextual base in reference to member 'secp384r1'
93 |
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
| `- error: cannot infer contextual base in reference to member 'secp384r1'
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:96:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:104:49: error: cannot find 'CC_SHA512' in scope
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
| `- error: cannot find 'CC_SHA512' in scope
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
106 | keySize: 133)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:49: error: cannot find 'CC_LONG' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:57: error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:102:62: error: cannot infer contextual base in reference to member 'secp521r1'
100 |
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
| `- error: cannot infer contextual base in reference to member 'secp521r1'
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:103:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:282:47: error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
280 | }
281 | #else
282 | let kAsymmetricCryptoManagerKeyType = kSecAttrKeyTypeECSECPrimeRandom
| `- error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
283 | let kAsymmetricCryptoManagerKeySize: Int
284 | if curve == .prime256v1 {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:293:13: error: cannot find 'kSecAttrKeyType' in scope
291 | // parameters
292 | let parameters: [String: AnyObject] = [
293 | kSecAttrKeyType as String: kAsymmetricCryptoManagerKeyType,
| `- error: cannot find 'kSecAttrKeyType' in scope
294 | kSecAttrKeySizeInBits as String: kAsymmetricCryptoManagerKeySize as AnyObject,
295 | ]
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:294:13: error: cannot find 'kSecAttrKeySizeInBits' in scope
292 | let parameters: [String: AnyObject] = [
293 | kSecAttrKeyType as String: kAsymmetricCryptoManagerKeyType,
294 | kSecAttrKeySizeInBits as String: kAsymmetricCryptoManagerKeySize as AnyObject,
| `- error: cannot find 'kSecAttrKeySizeInBits' in scope
295 | ]
296 | var pubKey, privKey: SecKey?
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:296:30: error: cannot find type 'SecKey' in scope
294 | kSecAttrKeySizeInBits as String: kAsymmetricCryptoManagerKeySize as AnyObject,
295 | ]
296 | var pubKey, privKey: SecKey?
| `- error: cannot find type 'SecKey' in scope
297 | let status = SecKeyGeneratePair(parameters as CFDictionary, &pubKey, &privKey)
298 | guard status == 0, let newPubKey = pubKey, let newPrivKey = privKey else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:297:22: error: cannot find 'SecKeyGeneratePair' in scope
295 | ]
296 | var pubKey, privKey: SecKey?
297 | let status = SecKeyGeneratePair(parameters as CFDictionary, &pubKey, &privKey)
| `- error: cannot find 'SecKeyGeneratePair' in scope
298 | guard status == 0, let newPubKey = pubKey, let newPrivKey = privKey else {
299 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:297:55: error: cannot find type 'CFDictionary' in scope
295 | ]
296 | var pubKey, privKey: SecKey?
297 | let status = SecKeyGeneratePair(parameters as CFDictionary, &pubKey, &privKey)
| `- error: cannot find type 'CFDictionary' in scope
298 | guard status == 0, let newPubKey = pubKey, let newPrivKey = privKey else {
299 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:301:30: error: cannot find type 'CFError' in scope
299 | throw ECError.failedNativeKeyCreation
300 | }
301 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
302 | guard let pubBytes = SecKeyCopyExternalRepresentation(newPubKey, &error) else {
303 | guard let error = error?.takeRetainedValue() else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:302:30: error: cannot find 'SecKeyCopyExternalRepresentation' in scope
300 | }
301 | var error: Unmanaged<CFError>? = nil
302 | guard let pubBytes = SecKeyCopyExternalRepresentation(newPubKey, &error) else {
| `- error: cannot find 'SecKeyCopyExternalRepresentation' in scope
303 | guard let error = error?.takeRetainedValue() else {
304 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:362:34: error: cannot find type 'CFError' in scope
360 | }
361 | #else
362 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
363 | /*
364 | From Apple docs:
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:367:34: error: cannot find 'SecKeyCopyExternalRepresentation' in scope
365 | For an elliptic curve private key, `SecKeyCopyExternalRepresentation` output is formatted as the public key concatenated with the big endian encoding of the secret scalar, or 04 || X || Y || K.
366 | */
367 | guard let keyBytes = SecKeyCopyExternalRepresentation(nativeKey, &error) else {
| `- error: cannot find 'SecKeyCopyExternalRepresentation' in scope
368 | guard let error = error?.takeRetainedValue() else {
369 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:449:34: error: cannot find type 'CFError' in scope
447 | #else
448 | let keyData = publicKeyData + privateKeyData
449 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:450:32: error: cannot find 'SecKeyCreateWithData' in scope
448 | let keyData = publicKeyData + privateKeyData
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
| `- error: cannot find 'SecKeyCreateWithData' in scope
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:451:54: error: cannot find 'kSecAttrKeyType' in scope
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
| `- error: cannot find 'kSecAttrKeyType' in scope
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
453 | &error)
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:451:71: error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
| `- error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
453 | &error)
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:452:54: error: cannot find 'kSecAttrKeyClass' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
| `- error: cannot find 'kSecAttrKeyClass' in scope
453 | &error)
454 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:452:72: error: cannot find 'kSecAttrKeyClassPrivate' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
| `- error: cannot find 'kSecAttrKeyClassPrivate' in scope
453 | &error)
454 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:450:64: error: cannot find type 'CFData' in scope
448 | let keyData = publicKeyData + privateKeyData
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
| `- error: cannot find type 'CFData' in scope
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:452:100: error: cannot find type 'CFDictionary' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
| `- error: cannot find type 'CFDictionary' in scope
453 | &error)
454 | else {
[7/14] Compiling CryptorECC ECPrivateKey.swift
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:60:31: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:90:49: error: cannot find 'CC_SHA256' in scope
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
| `- error: cannot find 'CC_SHA256' in scope
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
92 | keySize: 65)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:49: error: cannot find 'CC_LONG' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:57: error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:61:27: error: cannot find type 'SecKeyAlgorithm' in scope
59 | let hashLength = CC_LONG(SHA256_DIGEST_LENGTH)
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
| `- error: cannot find type 'SecKeyAlgorithm' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:63:56: error: cannot find type 'CC_LONG' in scope
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
| `- error: cannot find type 'CC_LONG' in scope
64 | let hashLength: CC_LONG
65 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:64:21: error: cannot find type 'CC_LONG' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
| `- error: cannot find type 'CC_LONG' in scope
65 | #endif
66 | let keySize: Int
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:88:62: error: cannot infer contextual base in reference to member 'prime256v1'
86 | #else
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
| `- error: cannot infer contextual base in reference to member 'prime256v1'
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:89:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:97:49: error: cannot find 'CC_SHA384' in scope
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
| `- error: cannot find 'CC_SHA384' in scope
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
99 | keySize: 97)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:49: error: cannot find 'CC_LONG' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:57: error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:95:62: error: cannot infer contextual base in reference to member 'secp384r1'
93 |
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
| `- error: cannot infer contextual base in reference to member 'secp384r1'
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:96:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:104:49: error: cannot find 'CC_SHA512' in scope
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
| `- error: cannot find 'CC_SHA512' in scope
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
106 | keySize: 133)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:49: error: cannot find 'CC_LONG' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:57: error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:102:62: error: cannot infer contextual base in reference to member 'secp521r1'
100 |
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
| `- error: cannot infer contextual base in reference to member 'secp521r1'
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:103:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:282:47: error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
280 | }
281 | #else
282 | let kAsymmetricCryptoManagerKeyType = kSecAttrKeyTypeECSECPrimeRandom
| `- error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
283 | let kAsymmetricCryptoManagerKeySize: Int
284 | if curve == .prime256v1 {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:293:13: error: cannot find 'kSecAttrKeyType' in scope
291 | // parameters
292 | let parameters: [String: AnyObject] = [
293 | kSecAttrKeyType as String: kAsymmetricCryptoManagerKeyType,
| `- error: cannot find 'kSecAttrKeyType' in scope
294 | kSecAttrKeySizeInBits as String: kAsymmetricCryptoManagerKeySize as AnyObject,
295 | ]
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:294:13: error: cannot find 'kSecAttrKeySizeInBits' in scope
292 | let parameters: [String: AnyObject] = [
293 | kSecAttrKeyType as String: kAsymmetricCryptoManagerKeyType,
294 | kSecAttrKeySizeInBits as String: kAsymmetricCryptoManagerKeySize as AnyObject,
| `- error: cannot find 'kSecAttrKeySizeInBits' in scope
295 | ]
296 | var pubKey, privKey: SecKey?
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:296:30: error: cannot find type 'SecKey' in scope
294 | kSecAttrKeySizeInBits as String: kAsymmetricCryptoManagerKeySize as AnyObject,
295 | ]
296 | var pubKey, privKey: SecKey?
| `- error: cannot find type 'SecKey' in scope
297 | let status = SecKeyGeneratePair(parameters as CFDictionary, &pubKey, &privKey)
298 | guard status == 0, let newPubKey = pubKey, let newPrivKey = privKey else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:297:22: error: cannot find 'SecKeyGeneratePair' in scope
295 | ]
296 | var pubKey, privKey: SecKey?
297 | let status = SecKeyGeneratePair(parameters as CFDictionary, &pubKey, &privKey)
| `- error: cannot find 'SecKeyGeneratePair' in scope
298 | guard status == 0, let newPubKey = pubKey, let newPrivKey = privKey else {
299 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:297:55: error: cannot find type 'CFDictionary' in scope
295 | ]
296 | var pubKey, privKey: SecKey?
297 | let status = SecKeyGeneratePair(parameters as CFDictionary, &pubKey, &privKey)
| `- error: cannot find type 'CFDictionary' in scope
298 | guard status == 0, let newPubKey = pubKey, let newPrivKey = privKey else {
299 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:301:30: error: cannot find type 'CFError' in scope
299 | throw ECError.failedNativeKeyCreation
300 | }
301 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
302 | guard let pubBytes = SecKeyCopyExternalRepresentation(newPubKey, &error) else {
303 | guard let error = error?.takeRetainedValue() else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:302:30: error: cannot find 'SecKeyCopyExternalRepresentation' in scope
300 | }
301 | var error: Unmanaged<CFError>? = nil
302 | guard let pubBytes = SecKeyCopyExternalRepresentation(newPubKey, &error) else {
| `- error: cannot find 'SecKeyCopyExternalRepresentation' in scope
303 | guard let error = error?.takeRetainedValue() else {
304 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:362:34: error: cannot find type 'CFError' in scope
360 | }
361 | #else
362 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
363 | /*
364 | From Apple docs:
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:367:34: error: cannot find 'SecKeyCopyExternalRepresentation' in scope
365 | For an elliptic curve private key, `SecKeyCopyExternalRepresentation` output is formatted as the public key concatenated with the big endian encoding of the secret scalar, or 04 || X || Y || K.
366 | */
367 | guard let keyBytes = SecKeyCopyExternalRepresentation(nativeKey, &error) else {
| `- error: cannot find 'SecKeyCopyExternalRepresentation' in scope
368 | guard let error = error?.takeRetainedValue() else {
369 | throw ECError.failedNativeKeyCreation
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:449:34: error: cannot find type 'CFError' in scope
447 | #else
448 | let keyData = publicKeyData + privateKeyData
449 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:450:32: error: cannot find 'SecKeyCreateWithData' in scope
448 | let keyData = publicKeyData + privateKeyData
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
| `- error: cannot find 'SecKeyCreateWithData' in scope
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:451:54: error: cannot find 'kSecAttrKeyType' in scope
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
| `- error: cannot find 'kSecAttrKeyType' in scope
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
453 | &error)
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:451:71: error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
| `- error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
453 | &error)
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:452:54: error: cannot find 'kSecAttrKeyClass' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
| `- error: cannot find 'kSecAttrKeyClass' in scope
453 | &error)
454 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:452:72: error: cannot find 'kSecAttrKeyClassPrivate' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
| `- error: cannot find 'kSecAttrKeyClassPrivate' in scope
453 | &error)
454 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:450:64: error: cannot find type 'CFData' in scope
448 | let keyData = publicKeyData + privateKeyData
449 | var error: Unmanaged<CFError>? = nil
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
| `- error: cannot find type 'CFData' in scope
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:452:100: error: cannot find type 'CFDictionary' in scope
450 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
451 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
452 | kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary,
| `- error: cannot find type 'CFDictionary' in scope
453 | &error)
454 | else {
[8/14] Compiling CryptorECC ECPublicKey.swift
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:60:27: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:142:34: error: cannot find type 'CFError' in scope
140 | self.nativeKey = ecKey
141 | #else
142 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:143:32: error: cannot find 'SecKeyCreateWithData' in scope
141 | #else
142 | var error: Unmanaged<CFError>? = nil
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
| `- error: cannot find 'SecKeyCreateWithData' in scope
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
145 | kSecAttrKeyClass: kSecAttrKeyClassPublic] as CFDictionary,
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:144:54: error: cannot find 'kSecAttrKeyType' in scope
142 | var error: Unmanaged<CFError>? = nil
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
| `- error: cannot find 'kSecAttrKeyType' in scope
145 | kSecAttrKeyClass: kSecAttrKeyClassPublic] as CFDictionary,
146 | &error)
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:144:71: error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
142 | var error: Unmanaged<CFError>? = nil
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
| `- error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
145 | kSecAttrKeyClass: kSecAttrKeyClassPublic] as CFDictionary,
146 | &error)
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:145:54: error: cannot find 'kSecAttrKeyClass' in scope
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
145 | kSecAttrKeyClass: kSecAttrKeyClassPublic] as CFDictionary,
| `- error: cannot find 'kSecAttrKeyClass' in scope
146 | &error)
147 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:145:72: error: cannot find 'kSecAttrKeyClassPublic' in scope
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
145 | kSecAttrKeyClass: kSecAttrKeyClassPublic] as CFDictionary,
| `- error: cannot find 'kSecAttrKeyClassPublic' in scope
146 | &error)
147 | else {
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:143:64: error: cannot find type 'CFData' in scope
141 | #else
142 | var error: Unmanaged<CFError>? = nil
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
| `- error: cannot find type 'CFData' in scope
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
145 | kSecAttrKeyClass: kSecAttrKeyClassPublic] as CFDictionary,
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:145:99: error: cannot find type 'CFDictionary' in scope
143 | guard let secKey = SecKeyCreateWithData(keyData as CFData,
144 | [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
145 | kSecAttrKeyClass: kSecAttrKeyClassPublic] as CFDictionary,
| `- error: cannot find type 'CFDictionary' in scope
146 | &error)
147 | else {
[9/14] Compiling CryptorECC ECSignature.swift
/host/spi-builder-workspace/Sources/CryptorECC/ECSignature.swift:111:30: error: cannot find type 'CFError' in scope
109 |
110 | // Memory storage for error from SecKeyVerifySignature
111 | var error: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
112 | return SecKeyVerifySignature(ecPublicKey.nativeKey,
113 | ecPublicKey.curve.signingAlgorithm,
/host/spi-builder-workspace/Sources/CryptorECC/ECSignature.swift:112:16: error: cannot find 'SecKeyVerifySignature' in scope
110 | // Memory storage for error from SecKeyVerifySignature
111 | var error: Unmanaged<CFError>? = nil
112 | return SecKeyVerifySignature(ecPublicKey.nativeKey,
| `- error: cannot find 'SecKeyVerifySignature' in scope
113 | ecPublicKey.curve.signingAlgorithm,
114 | hash as CFData,
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:60:27: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:61:27: error: cannot find type 'SecKeyAlgorithm' in scope
59 | let hashLength = CC_LONG(SHA256_DIGEST_LENGTH)
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
| `- error: cannot find type 'SecKeyAlgorithm' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
/host/spi-builder-workspace/Sources/CryptorECC/ECSignature.swift:114:42: error: cannot find type 'CFData' in scope
112 | return SecKeyVerifySignature(ecPublicKey.nativeKey,
113 | ecPublicKey.curve.signingAlgorithm,
114 | hash as CFData,
| `- error: cannot find type 'CFData' in scope
115 | self.asn1 as CFData,
116 | &error)
/host/spi-builder-workspace/Sources/CryptorECC/ECSignature.swift:115:47: error: cannot find type 'CFData' in scope
113 | ecPublicKey.curve.signingAlgorithm,
114 | hash as CFData,
115 | self.asn1 as CFData,
| `- error: cannot find type 'CFData' in scope
116 | &error)
117 | #endif
[10/14] Compiling CryptorECC EllipticCurve.swift
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:61:27: error: cannot find type 'SecKeyAlgorithm' in scope
59 | let hashLength = CC_LONG(SHA256_DIGEST_LENGTH)
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
| `- error: cannot find type 'SecKeyAlgorithm' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:63:56: error: cannot find type 'CC_LONG' in scope
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
| `- error: cannot find type 'CC_LONG' in scope
64 | let hashLength: CC_LONG
65 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:64:21: error: cannot find type 'CC_LONG' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
| `- error: cannot find type 'CC_LONG' in scope
65 | #endif
66 | let keySize: Int
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:90:49: error: cannot find 'CC_SHA256' in scope
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
| `- error: cannot find 'CC_SHA256' in scope
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
92 | keySize: 65)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:49: error: cannot find 'CC_LONG' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:57: error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:88:62: error: cannot infer contextual base in reference to member 'prime256v1'
86 | #else
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
| `- error: cannot infer contextual base in reference to member 'prime256v1'
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:89:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:97:49: error: cannot find 'CC_SHA384' in scope
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
| `- error: cannot find 'CC_SHA384' in scope
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
99 | keySize: 97)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:49: error: cannot find 'CC_LONG' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:57: error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:95:62: error: cannot infer contextual base in reference to member 'secp384r1'
93 |
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
| `- error: cannot infer contextual base in reference to member 'secp384r1'
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:96:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:104:49: error: cannot find 'CC_SHA512' in scope
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
| `- error: cannot find 'CC_SHA512' in scope
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
106 | keySize: 133)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:49: error: cannot find 'CC_LONG' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:57: error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:102:62: error: cannot infer contextual base in reference to member 'secp521r1'
100 |
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
| `- error: cannot infer contextual base in reference to member 'secp521r1'
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:103:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:62:31: error: cannot find 'SecKeyAlgorithm' in scope
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
| `- error: cannot find 'SecKeyAlgorithm' in scope
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:132:82: error: cannot find 'CC_LONG' in scope
130 | data.withUnsafeBytes { ptr in
131 | guard let baseAddress = ptr.baseAddress else { return }
132 | _ = self.hashEngine(baseAddress.assumingMemoryBound(to: UInt8.self), CC_LONG(data.count), &hash)
| `- error: cannot find 'CC_LONG' in scope
133 | }
134 | return Data(hash)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/14] Emitting module CryptorECC
/host/spi-builder-workspace/Sources/CryptorECC/ECPrivateKey.swift:60:31: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/ECPublicKey.swift:60:27: error: cannot find type 'SecKey' in scope
58 | deinit { EC_KEY_free(.make(optional: self.nativeKey)) }
59 | #else
60 | typealias NativeKey = SecKey
| `- error: cannot find type 'SecKey' in scope
61 | #endif
62 | let nativeKey: NativeKey
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:61:27: error: cannot find type 'SecKeyAlgorithm' in scope
59 | let hashLength = CC_LONG(SHA256_DIGEST_LENGTH)
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
| `- error: cannot find type 'SecKeyAlgorithm' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:63:56: error: cannot find type 'CC_LONG' in scope
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
| `- error: cannot find type 'CC_LONG' in scope
64 | let hashLength: CC_LONG
65 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:64:21: error: cannot find type 'CC_LONG' in scope
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
| `- error: cannot find type 'CC_LONG' in scope
65 | #endif
66 | let keySize: Int
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:90:49: error: cannot find 'CC_SHA256' in scope
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
| `- error: cannot find 'CC_SHA256' in scope
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
92 | keySize: 65)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:49: error: cannot find 'CC_LONG' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:91:57: error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
92 | keySize: 65)
93 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:88:62: error: cannot infer contextual base in reference to member 'prime256v1'
86 | #else
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
| `- error: cannot infer contextual base in reference to member 'prime256v1'
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
90 | hashEngine: CC_SHA256,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:89:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
87 | /// Secure Hash Algorithm 2 256-bit
88 | static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
89 | signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA256'
90 | hashEngine: CC_SHA256,
91 | hashLength: CC_LONG(CC_SHA256_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:97:49: error: cannot find 'CC_SHA384' in scope
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
| `- error: cannot find 'CC_SHA384' in scope
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
99 | keySize: 97)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:49: error: cannot find 'CC_LONG' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:98:57: error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA384_DIGEST_LENGTH' in scope
99 | keySize: 97)
100 |
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:95:62: error: cannot infer contextual base in reference to member 'secp384r1'
93 |
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
| `- error: cannot infer contextual base in reference to member 'secp384r1'
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
97 | hashEngine: CC_SHA384,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:96:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
94 | /// Secure Hash Algorithm 2 384-bit
95 | static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
96 | signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA384'
97 | hashEngine: CC_SHA384,
98 | hashLength: CC_LONG(CC_SHA384_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:104:49: error: cannot find 'CC_SHA512' in scope
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
| `- error: cannot find 'CC_SHA512' in scope
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
106 | keySize: 133)
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:49: error: cannot find 'CC_LONG' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_LONG' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:105:57: error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
| `- error: cannot find 'CC_SHA512_DIGEST_LENGTH' in scope
106 | keySize: 133)
107 | #endif
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:102:62: error: cannot infer contextual base in reference to member 'secp521r1'
100 |
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
| `- error: cannot infer contextual base in reference to member 'secp521r1'
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 | hashEngine: CC_SHA512,
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:103:56: error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
101 | /// Secure Hash Algorithm 512-bit
102 | static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
103 | signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
| `- error: cannot infer contextual base in reference to member 'ecdsaSignatureDigestX962SHA512'
104 | hashEngine: CC_SHA512,
105 | hashLength: CC_LONG(CC_SHA512_DIGEST_LENGTH),
/host/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:62:31: error: cannot find 'SecKeyAlgorithm' in scope
60 | #else
61 | let signingAlgorithm: SecKeyAlgorithm
62 | let encryptionAlgorithm = SecKeyAlgorithm.eciesEncryptionStandardVariableIVX963SHA256AESGCM
| `- error: cannot find 'SecKeyAlgorithm' in scope
63 | let hashEngine: (_ data: UnsafeRawPointer?, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>?) -> UnsafeMutablePointer<UInt8>?
64 | let hashLength: CC_LONG
[12/14] Compiling CryptorECC ASN1.swift
[13/14] Compiling CryptorECC Data+Extensions.swift
[14/14] Compiling CryptorECC SSLPointerTricks.swift
BUILD FAILURE 6.2 android