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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user