Search in sources :

Example 1 with SHA512Digest

use of org.spongycastle.crypto.digests.SHA512Digest in project universa by UniversaBlockchain.

the class RSAOAEPDigestFactoryTest method cloneDigest.

/**
 * Test {@link RSAOAEPDigestFactory#cloneDigest}.
 */
@Test
public void cloneDigest() throws Exception {
    Digest d1Orig = new SHA512Digest();
    Digest d1Clone = RSAOAEPDigestFactory.cloneDigest(d1Orig);
    assertTrue(d1Clone instanceof SHA512Digest);
    assertNotEquals(d1Orig, d1Clone);
}
Also used : SHA512Digest(org.spongycastle.crypto.digests.SHA512Digest) Digest(org.spongycastle.crypto.Digest) SHA512Digest(org.spongycastle.crypto.digests.SHA512Digest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Digest (org.spongycastle.crypto.Digest)1 SHA512Digest (org.spongycastle.crypto.digests.SHA512Digest)1