Move Crypto functionality back to passKit
This commit is contained in:
parent
6ae506d7e6
commit
56b7b24fce
5 changed files with 1 additions and 1 deletions
21
passKit/Crypto/PGPInterface.swift
Normal file
21
passKit/Crypto/PGPInterface.swift
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
//
|
||||
// PGPInterface.swift
|
||||
// passKit
|
||||
//
|
||||
// Created by Danny Moesch on 08.09.19.
|
||||
// Copyright © 2019 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
protocol PGPInterface {
|
||||
func decrypt(encryptedData: Data, keyID: String, passphrase: String) throws -> Data?
|
||||
|
||||
func encrypt(plainData: Data, keyID: String) throws -> Data
|
||||
|
||||
func containsPublicKey(with keyID: String) -> Bool
|
||||
|
||||
func containsPrivateKey(with keyID: String) -> Bool
|
||||
|
||||
var keyID: [String] { get }
|
||||
|
||||
var shortKeyID: [String] { get }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue