mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32:16 -05:00
Update AIDL to reflect new argument names
In addition redesign the comments a little bit. Still doesn't look good, but at least a bit better.
This commit is contained in:
parent
3f703fa4ea
commit
10e0dd0237
@ -12,36 +12,51 @@ interface IApgService {
|
|||||||
/* Encryption function's arguments
|
/* Encryption function's arguments
|
||||||
*
|
*
|
||||||
* Bundle params' keys:
|
* Bundle params' keys:
|
||||||
* (optional/required) TYPE "STRING KEY" = EXPLANATION / VALUES
|
* (optional/required)
|
||||||
|
* TYPE "STRING KEY" = EXPLANATION / VALUES
|
||||||
*
|
*
|
||||||
* (required) String "MSG" = Message to encrypt
|
* (required)
|
||||||
* (optional) int "ENCRYPTION_ALGO" = Encryption Algorithm
|
* String "MESSAGE" = Message to encrypt
|
||||||
|
*
|
||||||
|
* (optional)
|
||||||
|
* int "ENCRYPTION_ALGORYTHM" = Encryption Algorithm
|
||||||
* 7: AES-128, 8: AES-192, 9: AES-256,
|
* 7: AES-128, 8: AES-192, 9: AES-256,
|
||||||
* 4: Blowfish, 10: Twofish, 3: CAST5,
|
* 4: Blowfish, 10: Twofish, 3: CAST5,
|
||||||
* 6: DES, 2: Triple DES, 1: IDEA
|
* 6: DES, 2: Triple DES, 1: IDEA
|
||||||
* (optional) int "HASH_ALGO" = Hash Algorithm
|
* (optional)
|
||||||
|
* int "HASH_ALGORYTHM" = Hash Algorithm
|
||||||
* 1: MD5, 3: RIPEMD-160, 2: SHA-1,
|
* 1: MD5, 3: RIPEMD-160, 2: SHA-1,
|
||||||
* 11: SHA-224, 8: SHA-256, 9: SHA-384,
|
* 11: SHA-224, 8: SHA-256, 9: SHA-384,
|
||||||
* 10: SHA-512
|
* 10: SHA-512
|
||||||
* (optional) Boolean "ARMORED" = Armor output
|
* (optional)
|
||||||
* (optional) Boolean "FORCE_V3_SIG" = Force V3 Signatures
|
* Boolean "ARMORED_OUTPUT" = Armor output
|
||||||
* (optional) int "COMPRESSION" = Compression to use
|
*
|
||||||
|
* (optional)
|
||||||
|
* Boolean "FORCE_V3_SIGNATURE" = Force V3 Signatures
|
||||||
|
*
|
||||||
|
* (optional)
|
||||||
|
* int "COMPRESSION" = Compression to use
|
||||||
* 0x21070001: none, 1: Zip, 2: Zlib,
|
* 0x21070001: none, 1: Zip, 2: Zlib,
|
||||||
* 3: BZip2
|
* 3: BZip2
|
||||||
* (optional) String "SIGNATURE_KEY" = Key to sign with
|
* (optional)
|
||||||
* (optional) String "SIGNATURE_KEY_PASS" = Passphrase for signing key
|
* String "SIGNATURE_KEY" = Key to sign with
|
||||||
|
*
|
||||||
|
* (optional)
|
||||||
|
* String "SIGNATURE_KEY_PASSPHRASE" = Passphrase for signing key
|
||||||
*
|
*
|
||||||
* Bundle return_vals (in addition to the ERRORS/WARNINGS above):
|
* Bundle return_vals (in addition to the ERRORS/WARNINGS above):
|
||||||
* String "RESULT" = Encrypted MSG
|
* String "RESULT" = Encrypted message
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Additional argument:
|
/* Additional argument:
|
||||||
* (required) String "SYM_KEY" = Symmetric key to use
|
* (required)
|
||||||
|
* String "SYMMETRIC_PASSPHRASE" = Symmetric passphrase to use
|
||||||
*/
|
*/
|
||||||
boolean encrypt_with_passphrase(in Bundle params, out Bundle return_vals);
|
boolean encrypt_with_passphrase(in Bundle params, out Bundle return_vals);
|
||||||
|
|
||||||
/* Additional argument:
|
/* Additional argument:
|
||||||
* (required) ArrayList<String> "PUBLIC_KEYS" = Public keys (8char fingerprint "123ABC12" OR
|
* (required)
|
||||||
|
* ArrayList<String> "PUBLIC_KEYS" = Public keys (8char fingerprint "123ABC12" OR
|
||||||
* complete id "Alice Meyer <ab@email.com>")
|
* complete id "Alice Meyer <ab@email.com>")
|
||||||
*/
|
*/
|
||||||
boolean encrypt_with_public_key(in Bundle params, out Bundle return_vals);
|
boolean encrypt_with_public_key(in Bundle params, out Bundle return_vals);
|
||||||
@ -50,12 +65,17 @@ interface IApgService {
|
|||||||
/* Decrypt something
|
/* Decrypt something
|
||||||
*
|
*
|
||||||
* Bundle params:
|
* Bundle params:
|
||||||
* (required) String "MSG" = Message to decrypt
|
* (required)
|
||||||
* (optional) String "SYM_KEY" = Symmetric key to use if encryption is symmetric
|
* String "MESSAGE" = Message to decrypt
|
||||||
* (optional) String "PRIVATE_KEY_PASS" = Private keys's passphrase on asymmetric encryption
|
*
|
||||||
|
* (optional)
|
||||||
|
* String "SYMMETRIC_PASSPHRASE" = Symmetric passphrase for decryption
|
||||||
|
*
|
||||||
|
* (optional)
|
||||||
|
* String "PRIVATE_KEY_PASSPHRASE" = Private keys's passphrase on asymmetric encryption
|
||||||
*
|
*
|
||||||
* Bundle return_vals:
|
* Bundle return_vals:
|
||||||
* String "RESULT" = Decrypted MSG
|
* String "RESULT" = Decrypted message
|
||||||
*/
|
*/
|
||||||
boolean decrypt(in Bundle params, out Bundle return_vals);
|
boolean decrypt(in Bundle params, out Bundle return_vals);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user