public class ConcatKDFBytesGenerator extends Object implements org.spongycastle.crypto.DigestDerivationFunction
| Modifier | Constructor and Description |
|---|---|
|
ConcatKDFBytesGenerator(org.spongycastle.crypto.Digest digest) |
protected |
ConcatKDFBytesGenerator(int counterStart,
org.spongycastle.crypto.Digest digest)
Construct a KDF Parameters generator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
generateBytes(byte[] out,
int outOff,
int len)
fill len bytes of the output buffer with bytes generated from the
derivation function.
|
org.spongycastle.crypto.Digest |
getDigest()
return the underlying digest.
|
void |
init(org.spongycastle.crypto.DerivationParameters param) |
protected ConcatKDFBytesGenerator(int counterStart,
org.spongycastle.crypto.Digest digest)
counterStart - value of counter.digest - the digest to be used as the source of derived keys.public ConcatKDFBytesGenerator(org.spongycastle.crypto.Digest digest)
public void init(org.spongycastle.crypto.DerivationParameters param)
init in interface org.spongycastle.crypto.DerivationFunctionpublic org.spongycastle.crypto.Digest getDigest()
getDigest in interface org.spongycastle.crypto.DigestDerivationFunctionpublic int generateBytes(byte[] out,
int outOff,
int len)
throws org.spongycastle.crypto.DataLengthException,
IllegalArgumentException
generateBytes in interface org.spongycastle.crypto.DerivationFunctionIllegalArgumentException - if the size of the request will cause an overflow.org.spongycastle.crypto.DataLengthException - if the out buffer is too small.Copyright © 2018. All rights reserved.