VirgilCardCrypto { public boolean verifySignature(byte[] signature, byte[] data, VirgilPublicKey publicKey) throws CryptoException { return virgilCrypto.verifySignature(signature, data, publicKey); } VirgilCardCrypto();  VirgilCardCrypto(VirgilCrypto virgilCrypto); byte[] exportPublicKey(VirgilPublicKey publicKey); byte[] computeSha512(byte[] data); byte[] generateSignature(byte[] data, VirgilPrivateKey privateKey); VirgilCrypto getVirgilCrypto(); VirgilPublicKey importPublicKey(byte[] data); boolean verifySignature(byte[] signature, byte[] data, VirgilPublicKey publicKey);  }
@Test public void verifySignature() throws CryptoException { byte[] signature = this.cardCrypto.generateSignature(TEST_DATA, this.privateKey); assertTrue(this.cardCrypto.verifySignature(signature, TEST_DATA, this.publicKey)); }
@Test public void verifySignature_nullSignature() { assertThrows(NullArgumentException.class, () -> { this.cardCrypto.verifySignature(null, TEST_DATA, this.publicKey); }); }