public class ConcatKDFBytesGenerator
extends java.lang.Object
implements org.spongycastle.crypto.DigestDerivationFunction
| 限定符 | 构造器和说明 |
|---|---|
|
ConcatKDFBytesGenerator(org.spongycastle.crypto.Digest digest) |
protected |
ConcatKDFBytesGenerator(int counterStart,
org.spongycastle.crypto.Digest digest)
Construct a KDF Parameters generator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.spongycastle.crypto.DerivationFunctionpublic org.spongycastle.crypto.Digest getDigest()
getDigest 在接口中 org.spongycastle.crypto.DigestDerivationFunctionpublic int generateBytes(byte[] out,
int outOff,
int len)
throws org.spongycastle.crypto.DataLengthException,
java.lang.IllegalArgumentException
generateBytes 在接口中 org.spongycastle.crypto.DerivationFunctionjava.lang.IllegalArgumentException - 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.