/* * Copyright (c) 2010-2013 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ /* * Copyright (c) 2015 Tarun Gupta. * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ package com.isode.stroke.crypto; import com.isode.stroke.base.ByteArray; import com.isode.stroke.base.SafeByteArray; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; import com.isode.stroke.stringcodecs.Hexify; public class JavaCryptoProviderTest { private CryptoProvider provider; @Before public void setUp() { provider = new JavaCryptoProvider(); } //////////////////////////////////////////////////////////// // SHA-1 //////////////////////////////////////////////////////////// @Test public void testGetSHA1Hash() { Hash shaHash = provider.createSHA1(); shaHash = shaHash.update(new ByteArray("client/pc//Exodus 0.9.1