package org.thialfihar.android.apg; interface IApgService { /** All functions fill the return_vals Bundle with the following keys: * * ArrayList "WARNINGS" = Warnings, if any * ArrayList "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 * (optional) int "ENCRYPTION_ALGO" = Encryption Algorithm * (optional) int "HASH_ALGO" = Hash Algorithm * (optional) Boolean "ARMORED" = Armor output * (optional) Boolean "FORCE_V3_SIG" = Force V3 Signatures * (optional) int "COMPRESSION" = Compression 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); }