public static class HashId.CompositeDigest
extends com.icodici.crypto.digest.Digest
The algorithms are:
1) SHA-512/256, the strongest to the length extension attack SHA2 family variant
2) SHA3-256, which is a different algorithm from sha2 family and is known to be very string
3) ГОСТ Р 34.11-2012 "Stribog" which is a standard in Russian Federation make it eligible in this country. While this hashing algorithm is suspected to be less strong than is stated, in conjunction with two more completely different hashes it makes the result steel solid and bulletproof.
The overall compund hash, consisting of 3 concatenated hashes, requires an attacker to create collision on both 3 in the same time which is way more complex task than finding collision on each of them, as, generally, collision on one algorithm will not work with another.
The classic usage scenatio is packed data of Approvable
documents.
Created by sergeych on 16/07/2017.
Constructor | Description |
---|---|
CompositeDigest() |
Modifier and Type | Method | Description |
---|---|---|
protected byte[] |
_digest() |
|
protected void |
_update(byte[] data,
int offset,
int size) |
|
int |
getLength() |
protected void _update(byte[] data, int offset, int size)
_update
in class com.icodici.crypto.digest.Digest
protected byte[] _digest()
_digest
in class com.icodici.crypto.digest.Digest
public int getLength()
getLength
in class com.icodici.crypto.digest.Digest