passforios/passKit/Crypto/PgpInterface.swift

19 lines
386 B
Swift
Raw Normal View History

//
// PgpInterface.swift
// passKit
//
// Created by Danny Moesch on 08.09.19.
// Copyright © 2019 Bob Sun. All rights reserved.
//
protocol PgpInterface {
2020-04-11 23:23:38 -07:00
func decrypt(encryptedData: Data, keyID: String, passphrase: String) throws -> Data?
2020-04-11 23:23:38 -07:00
func encrypt(plainData: Data, keyID: String) throws -> Data
var keyId: String { get }
2020-04-11 23:23:38 -07:00
var shortKeyId: String { get }
}