Package gnu.java.security.hash

Examples of gnu.java.security.hash.Sha384


  public void test(TestHarness harness)
  {
    harness.checkPoint("TestOfSha384");
    try
      {
        algorithm = new Sha384();
        harness.check(algorithm.selfTest(), "selfTest");
      }
    catch (Exception x)
      {
        harness.debug(x);
        harness.fail("TestOfSha384.selfTest");
      }

    try
      {
        algorithm = new Sha384();
        algorithm.update(
            ("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmno"
            + "ijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu").getBytes(),
            0, 112);
        byte[] md = algorithm.digest();
View Full Code Here

TOP

Related Classes of gnu.java.security.hash.Sha384

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.