mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Merge pull request #378 from vanitasvitae/bumpPgpainless
Bump pgpainless to 0.0.1-alpha11 and test-depend on bcprov
This commit is contained in:
commit
cd96909ac4
2 changed files with 6 additions and 4 deletions
|
@ -8,7 +8,9 @@ dependencies {
|
||||||
compile project(':smack-extensions')
|
compile project(':smack-extensions')
|
||||||
compile project(':smack-experimental')
|
compile project(':smack-experimental')
|
||||||
|
|
||||||
compile 'org.pgpainless:pgpainless-core:0.0.1-alpha7'
|
api 'org.pgpainless:pgpainless-core:0.0.1-alpha11'
|
||||||
|
|
||||||
|
testImplementation "org.bouncycastle:bcprov-jdk15on:1.65"
|
||||||
|
|
||||||
testFixturesApi(testFixtures(project(":smack-core")))
|
testFixturesApi(testFixtures(project(":smack-core")))
|
||||||
testCompile group: 'commons-io', name: 'commons-io', version: "$commonsIoVersion"
|
testCompile group: 'commons-io', name: 'commons-io', version: "$commonsIoVersion"
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class PainlessOpenPgpProviderTest extends SmackTestSuite {
|
||||||
|
|
||||||
OpenPgpV4Fingerprint decryptionFingerprint = decrypted.getMetadata().getDecryptionFingerprint();
|
OpenPgpV4Fingerprint decryptionFingerprint = decrypted.getMetadata().getDecryptionFingerprint();
|
||||||
assertTrue(bobSelf.getSecretKeys().contains(decryptionFingerprint.getKeyId()));
|
assertTrue(bobSelf.getSecretKeys().contains(decryptionFingerprint.getKeyId()));
|
||||||
assertTrue(decrypted.getMetadata().getVerifiedSignaturesFingerprints().contains(aliceFingerprint));
|
assertTrue(decrypted.getMetadata().getVerifiedSignatureKeyFingerprints().contains(aliceFingerprint));
|
||||||
|
|
||||||
assertEquals(OpenPgpMessage.State.signcrypt, decrypted.getState());
|
assertEquals(OpenPgpMessage.State.signcrypt, decrypted.getState());
|
||||||
SigncryptElement decryptedSignCrypt = (SigncryptElement) decrypted.getOpenPgpContentElement();
|
SigncryptElement decryptedSignCrypt = (SigncryptElement) decrypted.getOpenPgpContentElement();
|
||||||
|
@ -158,7 +158,7 @@ public class PainlessOpenPgpProviderTest extends SmackTestSuite {
|
||||||
|
|
||||||
decryptionFingerprint = decrypted.getMetadata().getDecryptionFingerprint();
|
decryptionFingerprint = decrypted.getMetadata().getDecryptionFingerprint();
|
||||||
assertTrue(bobSelf.getSecretKeys().contains(decryptionFingerprint.getKeyId()));
|
assertTrue(bobSelf.getSecretKeys().contains(decryptionFingerprint.getKeyId()));
|
||||||
assertTrue(decrypted.getMetadata().getVerifiedSignaturesFingerprints().isEmpty());
|
assertTrue(decrypted.getMetadata().getVerifiedSignatureKeyFingerprints().isEmpty());
|
||||||
|
|
||||||
assertEquals(OpenPgpMessage.State.crypt, decrypted.getState());
|
assertEquals(OpenPgpMessage.State.crypt, decrypted.getState());
|
||||||
CryptElement decryptedCrypt = (CryptElement) decrypted.getOpenPgpContentElement();
|
CryptElement decryptedCrypt = (CryptElement) decrypted.getOpenPgpContentElement();
|
||||||
|
@ -177,7 +177,7 @@ public class PainlessOpenPgpProviderTest extends SmackTestSuite {
|
||||||
decrypted = bobProvider.decryptAndOrVerify(encrypted.getElement(), bobSelf, aliceForBob);
|
decrypted = bobProvider.decryptAndOrVerify(encrypted.getElement(), bobSelf, aliceForBob);
|
||||||
|
|
||||||
assertNull(decrypted.getMetadata().getDecryptionFingerprint());
|
assertNull(decrypted.getMetadata().getDecryptionFingerprint());
|
||||||
assertTrue(decrypted.getMetadata().getVerifiedSignaturesFingerprints().contains(aliceFingerprint));
|
assertTrue(decrypted.getMetadata().getVerifiedSignatureKeyFingerprints().contains(aliceFingerprint));
|
||||||
|
|
||||||
assertEquals(OpenPgpMessage.State.sign, decrypted.getState());
|
assertEquals(OpenPgpMessage.State.sign, decrypted.getState());
|
||||||
SignElement decryptedSign = (SignElement) decrypted.getOpenPgpContentElement();
|
SignElement decryptedSign = (SignElement) decrypted.getOpenPgpContentElement();
|
||||||
|
|
Loading…
Reference in a new issue