From cc44ff1a8b3b51331023ef738ccd28bece32da40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Tue, 31 Mar 2015 15:44:37 +0200 Subject: Prepare decrypt UI for input parcel --- .../keychain/service/input/CryptoInputParcel.java | 26 +++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/input') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/input/CryptoInputParcel.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/input/CryptoInputParcel.java index 21aacd1f0..3d1ccaca1 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/input/CryptoInputParcel.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/input/CryptoInputParcel.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2015 Dominik Schürmann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package org.sufficientlysecure.keychain.service.input; import java.nio.ByteBuffer; @@ -11,9 +28,8 @@ import android.os.Parcelable; import org.sufficientlysecure.keychain.util.Passphrase; - -/** This is a base class for the input of crypto operations. - * +/** + * This is a base class for the input of crypto operations. */ public class CryptoInputParcel implements Parcelable { @@ -22,7 +38,7 @@ public class CryptoInputParcel implements Parcelable { // this map contains both decrypted session keys and signed hashes to be // used in the crypto operation described by this parcel. - private HashMap mCryptoData = new HashMap<>(); + private HashMap mCryptoData = new HashMap<>(); public CryptoInputParcel() { mSignatureTime = new Date(); @@ -71,7 +87,7 @@ public class CryptoInputParcel implements Parcelable { dest.writeParcelable(mPassphrase, 0); dest.writeInt(mCryptoData.size()); - for (HashMap.Entry entry : mCryptoData.entrySet()) { + for (HashMap.Entry entry : mCryptoData.entrySet()) { dest.writeByteArray(entry.getKey().array()); dest.writeByteArray(entry.getValue()); } -- cgit v1.2.3