| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: size of the salt for the given hash algorithm in byteshash algorithm tag hashAlgorithm)Return the length of the salt per hash algorithm, used in OpenPGP v6 signatures. |
| public boolean | Returns: true if the encountered size matches the spechash algorithm tag hashAlgorithm, int encountered salt size saltSize)Return true, if the encountered saltLength matches the value the specification gives for the hashAlgorithm. |
| HashUtils | back to summary |
|---|---|
| public HashUtils() | |
| getV6SignatureSaltSizeInBytes | back to summary |
|---|---|
| public static int getV6SignatureSaltSizeInBytes(int hashAlgorithm) Return the length of the salt per hash algorithm, used in OpenPGP v6 signatures.
| |
| saltSizeMatchesSpec | back to summary |
|---|---|
| public boolean saltSizeMatchesSpec(int hashAlgorithm, int saltSize) Return true, if the encountered saltLength matches the value the specification gives for the hashAlgorithm. Implementation Note LibrePGP allows for zero-length signature salt values, so this method only works for IETF OpenPGP v6.
| |