Class DigestUtils
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.DigestUtils
public abstract class DigestUtils extends Object
-
Field Summary
Fields Modifier and Type Field Description static org.bouncycastle.asn1.ASN1ObjectIdentifier
DEFAULT_DIGEST_ALGORITHM
static String
NO_SUCH_ALGORITHM
-
Constructor Summary
Constructors Constructor Description DigestUtils()
-
Method Summary
Modifier and Type Method Description static byte[]
digest(byte[]... data)
static byte[]
digest(String algorithm, byte[]... data)
static byte[]
digest(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier, byte[]... bytes)
static byte[]
DIGEST(byte[]... data)
static byte[]
DIGEST(String algorithm, byte[]... data)
static byte[]
DIGEST(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier, byte[]... data)
static boolean
ISDIGEST(byte[] expectedDigest, byte[]... data)
static boolean
ISDIGEST(byte[] expectedDigest, String algorithm, byte[]... data)
static boolean
ISDIGEST(byte[] expectedDigest, org.bouncycastle.asn1.ASN1ObjectIdentifier identifier, byte[]... data)
static byte[]
shake(int lengthInBits, int shake, byte[]... data)
-
Field Details
-
DEFAULT_DIGEST_ALGORITHM
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DEFAULT_DIGEST_ALGORITHM -
NO_SUCH_ALGORITHM
- See Also:
- Constant Field Values
-
-
Constructor Details
-
DigestUtils
public DigestUtils()
-
-
Method Details
-
shake
public static byte[] shake(int lengthInBits, int shake, byte[]... data) -
digest
- Throws:
NoSuchAlgorithmException
-
digest
public static byte[] digest(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier, byte[]... bytes) throws NoSuchAlgorithmException- Throws:
NoSuchAlgorithmException
-
digest
- Throws:
NoSuchAlgorithmException
-
DIGEST
public static byte[] DIGEST(byte[]... data) -
DIGEST
public static byte[] DIGEST(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier, byte[]... data) -
DIGEST
-
ISDIGEST
public static boolean ISDIGEST(byte[] expectedDigest, byte[]... data) -
ISDIGEST
public static boolean ISDIGEST(byte[] expectedDigest, org.bouncycastle.asn1.ASN1ObjectIdentifier identifier, byte[]... data) -
ISDIGEST
-