public class

MGF1BytesGenerator

extends Object
implements DerivationFunction
java.lang.Object
   ↳ org.bouncycastle.crypto.generators.MGF1BytesGenerator

Class Overview

Generator for MGF1 as defined in PKCS 1v2

Summary

Public Constructors
MGF1BytesGenerator(Digest digest)
Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.DerivationFunction

Public Constructors

public MGF1BytesGenerator (Digest digest)

Parameters
digest the digest to be used as the source of generated bytes

Public Methods

public int generateBytes (byte[] out, int outOff, int len)

fill len bytes of the output buffer with bytes generated from the derivation function.

Throws
DataLengthException if the out buffer is too small.
IllegalArgumentException

public Digest getDigest ()

return the underlying digest.

public void init (DerivationParameters param)