|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.jcajce.spec.KEMExtractSpec.Builder
Builder class for creating a KEMExtractSpec.
Constructor Summary | |
KEMExtractSpec.Builder(java.security.PrivateKey privateKey,
byte[] encapsulation,
java.lang.String keyAlgorithmName,
int keySizeInBits)
Basic builder. |
Method Summary | |
KEMExtractSpec |
build()
Build the new parameter spec. |
KEMExtractSpec.Builder |
withKdfAlgorithm(AlgorithmIdentifier kdfAlgorithm)
Set the KDF algorithm and digest algorithm for wrap key generation. |
KEMExtractSpec.Builder |
withNoKdf()
Use the shared secret directly for key wrap generation. |
KEMExtractSpec.Builder |
withOtherInfo(byte[] otherInfo)
Set the OtherInfo to use with the KDF. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KEMExtractSpec.Builder(java.security.PrivateKey privateKey, byte[] encapsulation, java.lang.String keyAlgorithmName, int keySizeInBits)
privateKey
- the private key to use for the secret extraction.encapsulation
- the encapsulation to process.keyAlgorithmName
- the algorithm name for the secret key we want to generate.keySizeInBits
- the size of the wrapping key we want to produce in bits.Method Detail |
public KEMExtractSpec.Builder withNoKdf()
public KEMExtractSpec.Builder withKdfAlgorithm(AlgorithmIdentifier kdfAlgorithm)
kdfAlgorithm
- the KDF algorithm to apply.
public KEMExtractSpec.Builder withOtherInfo(byte[] otherInfo)
otherInfo
- the other info to use.
public KEMExtractSpec build()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |