diff --git a/app/src/androidTest/java/co/krypt/krypton/PGPCodesignTest.java b/app/src/androidTest/java/co/krypt/krypton/PGPCodesignTest.java index 66fa3a93..e658ddcb 100644 --- a/app/src/androidTest/java/co/krypt/krypton/PGPCodesignTest.java +++ b/app/src/androidTest/java/co/krypt/krypton/PGPCodesignTest.java @@ -50,7 +50,7 @@ public void dataSigning_succeeds() throws Exception { SignedSignatureAttributes parsedSig = SignedSignatureAttributes.parse(new DataInputStream(new ByteArrayInputStream(serializedSig))); Assert.assertTrue(parsedSig.attributes.attributes.hashAlgorithm == HashAlgorithm.SHA512); - Assert.assertTrue(parsedSig.attributes.attributes.pkAlgorithm == PublicKeyAlgorithm.RSA_SIGN_ONLY); + Assert.assertTrue(parsedSig.attributes.attributes.pkAlgorithm == PublicKeyAlgorithm.RSA_ENCRYPT_OR_SIGN); Assert.assertTrue(parsedSig.attributes.attributes.type == SignatureType.BINARY); Assert.assertFalse(parsedSig.attributes.attributes.unhashedSubpackets.issuer.header.type.critical); } diff --git a/app/src/main/java/co/krypt/krypton/crypto/RSASSHKeyPair.java b/app/src/main/java/co/krypt/krypton/crypto/RSASSHKeyPair.java index 4daf3302..5e6c5f38 100644 --- a/app/src/main/java/co/krypt/krypton/crypto/RSASSHKeyPair.java +++ b/app/src/main/java/co/krypt/krypton/crypto/RSASSHKeyPair.java @@ -225,7 +225,7 @@ public PublicKeyData pgpPublicKeyData() { public PublicKeyPacketAttributes pgpPublicKeyPacketAttributes() { return new PublicKeyPacketAttributes( created, - PublicKeyAlgorithm.RSA_SIGN_ONLY + PublicKeyAlgorithm.RSA_ENCRYPT_OR_SIGN ); }