Enum HashAlgo

    • Enum Constant Detail

      • SHA1

        public static final HashAlgo SHA1
      • SHA224

        public static final HashAlgo SHA224
      • SHA256

        public static final HashAlgo SHA256
      • SHA384

        public static final HashAlgo SHA384
      • SHA512

        public static final HashAlgo SHA512
      • SHA3_224

        public static final HashAlgo SHA3_224
      • SHA3_256

        public static final HashAlgo SHA3_256
      • SHA3_384

        public static final HashAlgo SHA3_384
      • SHA3_512

        public static final HashAlgo SHA3_512
      • SHAKE128

        public static final HashAlgo SHAKE128
      • SHAKE256

        public static final HashAlgo SHAKE256
    • Method Detail

      • values

        public static HashAlgo[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (HashAlgo c : HashAlgo.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HashAlgo valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getLength

        public int getLength()
      • getOid

        public org.bouncycastle.asn1.ASN1ObjectIdentifier getOid()
      • getJceName

        public String getJceName()
      • isShake

        public boolean isShake()
      • getAlgorithmIdentifier

        public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
      • getAlgIdWithNullParams

        public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgIdWithNullParams()
      • createDigest

        public org.bouncycastle.crypto.ExtendedDigest createDigest()
      • hexHash

        public String hexHash​(byte[]... datas)
      • hexHash

        public String hexHash​(byte[] data,
                              int offset,
                              int len)
      • base64Hash

        public String base64Hash​(byte[]... datas)
      • base64Hash

        public String base64Hash​(byte[] data,
                                 int offset,
                                 int len)
      • hash

        public byte[] hash​(byte[]... datas)
      • hash

        public byte[] hash​(byte[] data,
                           int offset,
                           int len)
      • getEncodedLength

        public int getEncodedLength()
      • write

        public int write​(byte[] out,
                         int offset)