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);
}
Aggregations