|
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.KEMGenerateSpec.Builder
Builder class for creating a KEMGenerateSpec.
Constructor Summary | |
KEMGenerateSpec.Builder(java.security.PublicKey publicKey,
java.lang.String keyAlgorithmName,
int keySizeInBits)
Basic builder. |
Method Summary | |
KEMGenerateSpec |
build()
Build the new parameter spec. |
KEMGenerateSpec.Builder |
withKdfAlgorithm(AlgorithmIdentifier kdfAlgorithm)
Set the KDF algorithm and digest algorithm for wrap key generation. |
KEMGenerateSpec.Builder |
withNoKdf()
Use the shared secret directly for key wrap generation. |
KEMGenerateSpec.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 KEMGenerateSpec.Builder(java.security.PublicKey publicKey, java.lang.String keyAlgorithmName, int keySizeInBits)
publicKey
- the public key to use for encapsulation/secret generation.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 KEMGenerateSpec.Builder withNoKdf()
public KEMGenerateSpec.Builder withKdfAlgorithm(AlgorithmIdentifier kdfAlgorithm)
kdfAlgorithm
- the KDF algorithm to apply.
public KEMGenerateSpec.Builder withOtherInfo(byte[] otherInfo)
otherInfo
- the other info to use.
public KEMGenerateSpec build()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |