ECError
public struct ECError: Error, EquatableA struct representing the different errors that can be thrown by BlueECC.
- 
                  
                  A human readable description of the error. DeclarationSwift public let localizedDescription: String
- 
                  
                  Error thrown when an invalid PEM String used to initialize a key. DeclarationSwift public static let invalidPEMString = ECError(localizedDescription: "Input was not a valid PEM String", internalError: .invalidPEMString)
- 
                  
                  Error thrown when the PEM header is not recognized. DeclarationSwift public static let unknownPEMHeader = ECError(localizedDescription: "Input PEM header was not recognized", internalError: .unknownPEMHeader)
- 
                  
                  Error thrown when a String fails to be Base64 encoded. DeclarationSwift public static let failedBase64Encoding = ECError(localizedDescription: "Failed to base64 encode the String", internalError: .failedBase64Encoding)
- 
                  
                  Error thrown when the ASN1 data could not be decoded to the expected structure. DeclarationSwift public static let failedASN1Decoding = ECError(localizedDescription: "ASN1 data could not be decoded to expected structure", internalError: .failedASN1Decoding)
- 
                  
                  Error thrown when the key’s object identifier is for a curve that is not supported. DeclarationSwift public static let unsupportedCurve = ECError(localizedDescription: "The key object identifier is for a non-supported curve", internalError: .unsupportedCurve)
- 
                  
                  Error thrown when the key could not be converted to a native key ( SecKeyfor Apple,EC_KEYfor linux).DeclarationSwift public static let failedNativeKeyCreation = ECError(localizedDescription: "The key data could not be converted to a native key", internalError: .failedNativeKeyCreation)
- 
                  
                  Error thrown when the encryption envelope fails to initialize. DeclarationSwift public static let failedEvpInit = ECError(localizedDescription: "Failed to initialize the signing envelope", internalError: .failedEvpInit)
- 
                  
                  Error thrown when the signing algorithm could not create the signature. DeclarationSwift public static let failedSigningAlgorithm = ECError(localizedDescription: "Signing algorithm failed to create the signature", internalError: .failedSigningAlgorithm)
- 
                  
                  Error thrown when the provided R and S Data was not a valid length. They must be the same length and either 32, 48 or 66 bytes (depending on the curve used). DeclarationSwift public static let invalidRSLength = ECError(localizedDescription: "The provided R and S values were not a valid length", internalError: .invalidRSLength)
- 
                  
                  Error thrown when the encryption algorithm could not encrypt the plaintext. DeclarationSwift public static let failedEncryptionAlgorithm = ECError(localizedDescription: "Encryption algorithm failed to encrypt the data", internalError: .failedEncryptionAlgorithm)
- 
                  
                  Error thrown when the decryption algorithm could not decrypt the encrypted Data. DeclarationSwift public static let failedDecryptionAlgorithm = ECError(localizedDescription: "Decryption algorithm failed to decrypt the data", internalError: .failedDecryptionAlgorithm)
- 
                  
                  Error thrown when the Data could not be decoded into a UTF8 String. DeclarationSwift public static let failedUTF8Decoding = ECError(localizedDescription: "Data could not be decoded as a UTF8 String", internalError: .failedUTF8Decoding)
- 
                  
                  Checks if ECSigningErrors are equal, required for Equatable protocol. DeclarationSwift public static func == (lhs: ECError, rhs: ECError) -> Bool
 ECError Structure Reference
        ECError Structure Reference