public class HashUtils
extends java.lang.Object
Constructor and Description |
---|
HashUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getV6SignatureSaltSizeInBytes(int hashAlgorithm)
Return the length of the salt per hash algorithm, used in OpenPGP v6 signatures.
|
boolean |
saltSizeMatchesSpec(int hashAlgorithm,
int saltSize)
Return true, if the encountered saltLength matches the value the specification gives for the hashAlgorithm.
|
public static int getV6SignatureSaltSizeInBytes(int hashAlgorithm)
hashAlgorithm
- hash algorithm tagpublic boolean saltSizeMatchesSpec(int hashAlgorithm, int saltSize)
hashAlgorithm
- hash algorithm tagsaltSize
- encountered salt size