| Modifier and Type | Field and Description |
|---|---|
| private Digest | |
| private int | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | BcFixedLengthMGF1Padder(int
fixed length for padded output. length)Create a padder to so that padded output will always be at least length bytes long. |
| public | BcFixedLengthMGF1Padder(int
fixed length for padded output. length, SecureRandom a source of randomness. random)Create a padder to so that padded output will always be at least length bytes long, using the passed in source of randomness to provide the random material for the padder. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | getPaddedData(byte[]
the data to be padded. data)Implements org. Return a byte array of padded data. |
| public byte[] | getUnpaddedData(byte[]
the data to be padded. paddedData)Implements org. Return a byte array of with padding removed. |
| dig | back to summary |
|---|---|
| private Digest dig | |
| length | back to summary |
|---|---|
| private int length | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| BcFixedLengthMGF1Padder | back to summary |
|---|---|
| public BcFixedLengthMGF1Padder(int length) Create a padder to so that padded output will always be at least length bytes long.
| |
| BcFixedLengthMGF1Padder | back to summary |
|---|---|
| public BcFixedLengthMGF1Padder(int length, SecureRandom random) Create a padder to so that padded output will always be at least length bytes long, using the passed in source of randomness to provide the random material for the padder.
| |
| getPaddedData | back to summary |
|---|---|
| public byte[] getPaddedData(byte[] data) Implements org. Doc from org. Return a byte array of padded data.
| |
| getUnpaddedData | back to summary |
|---|---|
| public byte[] getUnpaddedData(byte[] paddedData) Implements org. Doc from org. Return a byte array of with padding removed.
| |