Files
open-keychain/src/org/thialfihar/android/apg/IApgService.aidl

58 lines
2.5 KiB
Plaintext
Raw Normal View History

package org.thialfihar.android.apg;
interface IApgService {
/** 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
*/
2011-01-13 20:12:10 +00:00
/** Encryption function's arguments
*
* Bundle params' keys:
* (optional/required) TYPE "STRING KEY" = EXPLANATION / VALUES
*
2011-01-09 19:16:54 +00:00
* (required) String "MSG" = Message to encrypt
* (optional) int "ENCRYPTION_ALGO" = Encryption Algorithm
* 7: AES-128, 8: AES-192, 9: AES-256,
4: Blowfish, 10: Twofish, 3: CAST5,
6: DES, 2: Triple DES, 1: IDEA
2011-01-09 19:16:54 +00:00
* (optional) int "HASH_ALGO" = Hash Algorithm
1: MD5, 3: RIPEMD-160, 2: SHA-1,
11: SHA-224, 8: SHA-256, 9: SHA-384,
10: SHA-512
2011-01-09 19:16:54 +00:00
* (optional) Boolean "ARMORED" = Armor output
* (optional) Boolean "FORCE_V3_SIG" = Force V3 Signatures
* (optional) int "COMPRESSION" = Compression to use
0x21070001: none, 1: Zip, 2: Zlib,
3: BZip2
*
* Bundle return_vals (in addition to the ERRORS/WARNINGS above):
2011-01-09 19:16:54 +00:00
* String "RESULT" = Encrypted MSG
*/
2011-01-13 20:12:10 +00:00
/* Additional argument:
* (required) String "SYM_KEY" = Symmetric key to use
*/
boolean encrypt_with_passphrase(in Bundle params, out Bundle return_vals);
2011-01-13 20:12:10 +00:00
/* 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);
2011-01-13 20:12:10 +00:00
/** Decrypt something
*
* Bundle params:
* (required) String "MSG" = Message to decrypt
2011-01-13 20:12:10 +00:00
* (optional) String "SYM_KEY" = Symmetric key to use if encryption is symmetric
*
* Bundle return_vals:
* String "RESULT" = Decrypted MSG
*/
2011-01-13 20:12:10 +00:00
boolean decrypt(in Bundle params, out Bundle return_vals);
}