org.bouncycastle.crypto.generators
public class MGF1BytesGenerator extends Object implements DerivationFunction
Constructor Summary | |
---|---|
MGF1BytesGenerator(Digest digest) |
Method Summary | |
---|---|
int | generateBytes(byte[] out, int outOff, int len)
fill len bytes of the output buffer with bytes generated from
the derivation function.
|
Digest | getDigest()
return the underlying digest. |
void | init(DerivationParameters param) |
Parameters: digest the digest to be used as the source of generated bytes
Throws: DataLengthException if the out buffer is too small.