forked from I2P_Developers/i2p.i2p
merge of '85a542c53d910dffbf34cdcefb8a2faeee96adc4'
and 'c92f2bcd662936f16d539ea5e98b0d4496556384'
This commit is contained in:
@@ -45,7 +45,7 @@ import net.i2p.util.RandomSource;
|
||||
/**
|
||||
* Wrapper for ElGamal encryption/signature schemes.
|
||||
*
|
||||
* Does all of Elgamal now for data sizes of 223 bytes and less. The data to be
|
||||
* Does all of Elgamal now for data sizes of 222 bytes and less. The data to be
|
||||
* encrypted is first prepended with a random nonzero byte, then the 32 bytes
|
||||
* making up the SHA256 of the data, then the data itself. The random byte and
|
||||
* the SHA256 hash is stripped on decrypt so the original data is returned.
|
||||
|
||||
Reference in New Issue
Block a user