Java MD5 md5_hh(int C, int B, int G, int F, int A, int E, int D)

Here you can find the source of md5_hh(int C, int B, int G, int F, int A, int E, int D)

Description

mhh

License

Apache License

Declaration

public static int md5_hh(int C, int B, int G, int F, int A, int E, int D) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int md5_hh(int C, int B, int G, int F, int A, int E, int D) {
        return md5_cmn(B ^ G ^ F, C, B, A, E, D);
    }//from  ww w .  ja va 2 s  .c o  m

    public static int md5_cmn(int F, int C, int B, int A, int E, int D) {
        return safe_add(bit_rol(safe_add(safe_add(C, F), safe_add(A, D)), E), B);
    }

    public static int safe_add(int A, int D) {
        int C = (A & 65535) + (D & 65535);
        int B = (A >> 16) + (D >> 16) + (C >> 16);
        return (B << 16) | (C & 65535);
    }

    public static int bit_rol(int A, int B) {
        return (A << B) | (A >>> (32 - B));
    }
}

Related

  1. md5(File f)
  2. md5(final String text)
  3. md5(final String... tokens)
  4. md5(String source)
  5. md5(String toDigest)
  6. md5_id(byte[] md5digest)
  7. md5bytesToHex(byte[] md5)
  8. md5Encode(byte[] content)
  9. md5Encode(String strIn)