diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java index 6982a10e4..966ae84d4 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java @@ -627,6 +627,8 @@ public abstract class OperationResult implements Parcelable { MSG_DC_ASYM (LogLevel.DEBUG, R.string.msg_dc_asym), MSG_DC_CHARSET (LogLevel.DEBUG, R.string.msg_dc_charset), MSG_DC_BACKUP_VERSION (LogLevel.DEBUG, R.string.msg_dc_backup_version), + MSG_DC_PASSPHRASE_FORMAT (LogLevel.DEBUG, R.string.msg_dc_passphrase_format), + MSG_DC_PASSPHRASE_BEGIN (LogLevel.DEBUG, R.string.msg_dc_passphrase_begin), MSG_DC_CLEAR_DATA (LogLevel.DEBUG, R.string.msg_dc_clear_data), MSG_DC_CLEAR_DECOMPRESS (LogLevel.DEBUG, R.string.msg_dc_clear_decompress), MSG_DC_CLEAR_META_FILE (LogLevel.DEBUG, R.string.msg_dc_clear_meta_file), diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerifyOperation.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerifyOperation.java index ec97b2213..0fab963c6 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerifyOperation.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerifyOperation.java @@ -93,6 +93,7 @@ import static java.lang.String.format; public class PgpDecryptVerifyOperation extends BaseOperation { public static final int PROGRESS_STRIDE_MILLISECONDS = 200; + public static final String PASSPHRASE_FORMAT_NUMERIC9X4 = "numeric9x4"; public PgpDecryptVerifyOperation(Context context, KeyRepository keyRepository, Progressable progressable) { super(context, keyRepository, progressable); @@ -230,6 +231,8 @@ public class PgpDecryptVerifyOperation extends BaseOperation + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OpenKeychain/src/main/res/layout/transfer_code_input.xml b/OpenKeychain/src/main/res/layout/transfer_code_input.xml new file mode 100644 index 000000000..a8b6037f8 --- /dev/null +++ b/OpenKeychain/src/main/res/layout/transfer_code_input.xml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index 1f2946c36..f8f73fa9f 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -333,6 +333,7 @@ "Enter password" "Switch to alphabetic keyboard" "Switch to numeric keyboard" + "Enter transfer code" "Enter PIN for '%s'" "Enter PIN to access Security Token for '%s'" "Hold Security Token against the NFC marker at the back of your device." @@ -1176,6 +1177,8 @@ "Found block of asymmetrically encrypted data for key %s" "Found charset header: '%s'" "Found backupVersion header: '%s'" + "Found Passphrase-Format header: '%s'" + "Found Passphrase-Begin header: '%s'" "Processing literal data" "Unpacking compressed data" "Filename: %s" diff --git a/OpenKeychain/src/main/res/values/styles.xml b/OpenKeychain/src/main/res/values/styles.xml index 39b8cd8d7..71098667d 100644 --- a/OpenKeychain/src/main/res/values/styles.xml +++ b/OpenKeychain/src/main/res/values/styles.xml @@ -65,4 +65,22 @@ 14dp + + + +