decryption: always request key passphrase based on key ID
This commit is contained in:
parent
d136175d93
commit
2ae751044c
6 changed files with 85 additions and 130 deletions
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
|
||||
protocol PGPInterface {
|
||||
func decrypt(encryptedData: Data, keyID: String?, passphrase: String) throws -> Data?
|
||||
func decrypt(encryptedData: Data, keyID: String?, passPhraseForKey: @escaping (String) -> String) throws -> Data?
|
||||
|
||||
func encrypt(plainData: Data, keyID: String?) throws -> Data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue