public class FixedLengthMGF1Padder extends Object implements EncryptedValuePadder
| Constructor and Description |
|---|
FixedLengthMGF1Padder(int length)
Create a padder to so that padded output will always be at least
length bytes long.
|
FixedLengthMGF1Padder(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.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getPaddedData(byte[] data)
Return a byte array of padded data.
|
byte[] |
getUnpaddedData(byte[] paddedData)
Return a byte array of with padding removed.
|
public FixedLengthMGF1Padder(int length)
length - fixed length for padded output.public FixedLengthMGF1Padder(int length,
SecureRandom random)
length - fixed length for padded output.random - a source of randomness.public byte[] getPaddedData(byte[] data)
EncryptedValuePaddergetPaddedData in interface EncryptedValuePadderdata - the data to be padded.public byte[] getUnpaddedData(byte[] paddedData)
EncryptedValuePaddergetUnpaddedData in interface EncryptedValuePadderpaddedData - the data to be padded.Copyright © 2015. All rights reserved.