diff options
Diffstat (limited to 'src/org/thialfihar/android/apg/IApgService.aidl')
-rw-r--r-- | src/org/thialfihar/android/apg/IApgService.aidl | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/org/thialfihar/android/apg/IApgService.aidl b/src/org/thialfihar/android/apg/IApgService.aidl index 65d2653d5..f31265f8e 100644 --- a/src/org/thialfihar/android/apg/IApgService.aidl +++ b/src/org/thialfihar/android/apg/IApgService.aidl @@ -1,6 +1,35 @@ package org.thialfihar.android.apg; interface IApgService { - String encrypt_with_passphrase(in List<String> params); - String decrypt_with_passphrase(in List<String> params); + + /** All functions fill the return_vals Bundle with the following keys: + * + * ArrayList<String> "WARNINGS" = Warnings, if any + * ArrayList<String> "ERRORS" = Human readable error descriptions, why function call failed + * int "ERROR" = Numeric representation of error + */ + + /** Encrypt something with a symmetric key + * + * Bundle params: + * (optional/required) TYPE "STRING KEY" = EXPLANATION + * + * (required) String "MSG" = Message to encrypt + * (required) String "SYM_KEY" = Symmetric key to use + * + * Bundle return_vals (in addition to the ERRORS/WARNINGS above): + * String "RESULT" = Encrypted MSG + */ + boolean encrypt_with_passphrase(in Bundle params, out Bundle return_vals); + + /** Decrypt something with a symmetric key + * + * Bundle params: + * (required) String "MSG" = Message to decrypt + * (required) String "SYM_KEY" = Symmetric key to use + * + * Bundle return_vals: + * String "RESULT" = Decrypted MSG + */ + boolean decrypt_with_passphrase(in Bundle params, out Bundle return_vals); }
\ No newline at end of file |