aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/IApgService.aidl
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/thialfihar/android/apg/IApgService.aidl')
-rw-r--r--src/org/thialfihar/android/apg/IApgService.aidl20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/org/thialfihar/android/apg/IApgService.aidl b/src/org/thialfihar/android/apg/IApgService.aidl
index 2bd3f8dcf..be38c3367 100644
--- a/src/org/thialfihar/android/apg/IApgService.aidl
+++ b/src/org/thialfihar/android/apg/IApgService.aidl
@@ -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);
} \ No newline at end of file