org.bouncycastle.crypto.generators
Class MGF1BytesGenerator
java.lang.Object
org.bouncycastle.crypto.generators.MGF1BytesGenerator
- DerivationFunction
public class MGF1BytesGenerator
extends java.lang.Object
Generator for MGF1 as defined in PKCS 1v2
MGF1BytesGenerator
public MGF1BytesGenerator(Digest digest)
digest
- the digest to be used as the source of generated bytes
generateBytes
public int generateBytes(byte[] out,
int outOff,
int len)
throws DataLengthException,
IllegalArgumentException
fill len bytes of the output buffer with bytes generated from
the derivation function.
- generateBytes in interface DerivationFunction