Add asymmetric encryption
This commit is contained in:
@@ -9,13 +9,12 @@ interface IApgService {
|
||||
* int "ERROR" = Numeric representation of error
|
||||
*/
|
||||
|
||||
/** Encrypt something with a symmetric key
|
||||
/** Encryption function's arguments
|
||||
*
|
||||
* Bundle params' keys:
|
||||
* (optional/required) TYPE "STRING KEY" = EXPLANATION / VALUES
|
||||
*
|
||||
* (required) String "MSG" = Message to encrypt
|
||||
* (required) String "SYM_KEY" = Symmetric key to use
|
||||
* (optional) int "ENCRYPTION_ALGO" = Encryption Algorithm
|
||||
* 7: AES-128, 8: AES-192, 9: AES-256,
|
||||
4: Blowfish, 10: Twofish, 3: CAST5,
|
||||
@@ -33,16 +32,27 @@ interface IApgService {
|
||||
* Bundle return_vals (in addition to the ERRORS/WARNINGS above):
|
||||
* String "RESULT" = Encrypted MSG
|
||||
*/
|
||||
|
||||
/* Additional argument:
|
||||
* (required) String "SYM_KEY" = Symmetric key to use
|
||||
*/
|
||||
boolean encrypt_with_passphrase(in Bundle params, out Bundle return_vals);
|
||||
|
||||
/* Additional argument:
|
||||
* (required) ArrayList<String> "PUBLIC_KEYS" = Public keys (8char fingerprint "123ABC12" OR
|
||||
* complete id "Alice Meyer <ab@email.com>")
|
||||
*/
|
||||
boolean encrypt_with_public_key(in Bundle params, out Bundle return_vals);
|
||||
|
||||
|
||||
/** Decrypt something with a symmetric key
|
||||
/** Decrypt something
|
||||
*
|
||||
* Bundle params:
|
||||
* (required) String "MSG" = Message to decrypt
|
||||
* (required) String "SYM_KEY" = Symmetric key to use
|
||||
* (optional) String "SYM_KEY" = Symmetric key to use if encryption is symmetric
|
||||
*
|
||||
* Bundle return_vals:
|
||||
* String "RESULT" = Decrypted MSG
|
||||
*/
|
||||
boolean decrypt_with_passphrase(in Bundle params, out Bundle return_vals);
|
||||
boolean decrypt(in Bundle params, out Bundle return_vals);
|
||||
}
|
||||
Reference in New Issue
Block a user