Don't send NE value for decryption

This is slightly more compliant to spec. OpenPGP-Applet implementations
I've looked at don't seem to care, but for some reason this still
improves compatibility. See
https://github.com/open-keychain/open-keychain/issues/2049
This commit is contained in:
Vincent Breitmoser 2018-01-19 17:58:53 +01:00
parent bccc20ea32
commit 1c8cc99c68

View file

@ -136,8 +136,7 @@ public class OpenPgpCommandApduFactory {
@NonNull
public CommandApdu createDecipherCommand(byte[] data) {
return CommandApdu.create(CLA, INS_PERFORM_SECURITY_OPERATION, P1_PSO_DECIPHER, P2_PSO_DECIPHER, data,
MAX_APDU_NE_EXT);
return CommandApdu.create(CLA, INS_PERFORM_SECURITY_OPERATION, P1_PSO_DECIPHER, P2_PSO_DECIPHER, data);
}
@NonNull