Modifier and Type | Field and Description |
---|---|
private final MessageDigest |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv void | generateAndXor(byte[]
the buffer holding the seed bytes seed, int the index of the seed bytes seedOfs, int the length of the seed bytes to be used by MGF1 seedLen, int the intended length of the generated mask maskLen, byte[] the output buffer holding the mask out, int the index of the output buffer for the mask outOfs)Using the specified seed bytes, generate the mask, xor the mask with the specified output buffer and store the result into the output buffer (essentially replaced in place). |
pack-priv String | getName()
Returns the name of this MGF1 instance, i.e. "MGF1" followed by the digest algorithm it based on. |
md | back to summary |
---|---|
private final MessageDigest md |
MGF1 | back to summary |
---|---|
pack-priv MGF1(String mdAlgo) throws NoSuchAlgorithmException Construct an instance of MGF1 based on the specified digest algorithm. |
generateAndXor | back to summary |
---|---|
pack-priv void generateAndXor(byte[] seed, int seedOfs, int seedLen, int maskLen, byte[] out, int outOfs) throws RuntimeException Using the specified seed bytes, generate the mask, xor the mask with the specified output buffer and store the result into the output buffer (essentially replaced in place).
|
getName | back to summary |
---|---|
pack-priv String getName() Returns the name of this MGF1 instance, i.e. "MGF1" followed by the digest algorithm it based on. |