Java Code Examples for org.bouncycastle.jcajce.provider.digest.SHA224

Following code examples demonstrate how to use org.bouncycastle.jcajce.provider.digest.SHA224from android. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.bouncycastle.jcajce.provider.digest.SHA224and various code implementation of this class.

    }

    public void testDigest()
        throws Exception
    {
        evilNoConstructionTest(GOST3411.class);
        evilNoConstructionTest(MD2.class);
        evilNoConstructionTest(MD4.class);
        evilNoConstructionTest(MD5.class);
        evilNoConstructionTest(RIPEMD128.class);
        evilNoConstructionTest(RIPEMD160.class);
        evilNoConstructionTest(RIPEMD256.class);
        evilNoConstructionTest(RIPEMD320.class);
        evilNoConstructionTest(SHA1.class);
        evilNoConstructionTest(SHA224.class);
        evilNoConstructionTest(SHA256.class);
        evilNoConstructionTest(SHA384.class);
        evilNoConstructionTest(SHA3.class);
        evilNoConstructionTest(SHA512.class);
        evilNoConstructionTest(SM3.class);
        evilNoConstructionTest(Tiger.class);
        evilNoConstructionTest(Whirlpool.class);
    } 


        switch (oid) {
                return new MD2.Digest();
                return new MD5.Digest();
                return new SHA1.Digest();
                return new SHA224.Digest();
                return new SHA256.Digest();
                return new SHA384.Digest();
                return new SHA512.Digest();
                return new RIPEMD128.Digest();
                return new RIPEMD160.Digest();
                return new RIPEMD256.Digest();
                return new GOST3411.Digest();
            default:
                throw new NoSuchAlgorithmException(hashAlgorithm);
        } 

Advertisement
Advertisement