DefaultCryptoProvider
public class DefaultCryptoProvider : CryptoProvider
Default CryptoProvider
implementation.
-
Declaration
Swift
public func getSymmetricKeyId() throws -> String?
-
Declaration
Swift
public func encrypt(keyId: String, algorithm: SymmetricKeyEncryptionAlgorithm, data: Data) throws -> Data
-
Declaration
Swift
public func decrypt(keyId: String, algorithm: SymmetricKeyEncryptionAlgorithm, data: Data) throws -> Data
-
Declaration
Swift
public func generateEncryptionKey() throws -> String
-
Declaration
Swift
public func importEncryptionKeys(keys: [EncryptionKey], currentKeyId: String) throws
-
Declaration
Swift
public func exportEncryptionKeys() throws -> [EncryptionKey]
-
Declaration
Swift
public func reset() throws