|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.jcajce.spec.KEMKDFSpec
| Constructor Summary | |
protected |
KEMKDFSpec(AlgorithmIdentifier kdfAlgorithm,
byte[] otherInfo,
java.lang.String keyAlgorithmName,
int keySizeInBits)
Base constructor. |
| Method Summary | |
AlgorithmIdentifier |
getKdfAlgorithm()
|
java.lang.String |
getKeyAlgorithmName()
|
int |
getKeySize()
|
byte[] |
getOtherInfo()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected KEMKDFSpec(AlgorithmIdentifier kdfAlgorithm,
byte[] otherInfo,
java.lang.String keyAlgorithmName,
int keySizeInBits)
A null otherInfo is stored as empty, so getOtherInfo() never returns null. The
Builder of every spec in this package already does that, but this constructor is reachable
directly by a subclass - the deprecated KEMParameterSpec is one - and
org.bouncycastle.jcajce.provider.asymmetric.util.KdfUtil's KMAC and SHAKE-256 branches read
the otherInfo length without a guard, so a null here would surface as a
NullPointerException out of a KEM operation.
kdfAlgorithm - the KDF to derive with, or null for the shared secret as it comes.otherInfo - the otherInfo/IV to feed the KDF, may be null for none.keyAlgorithmName - the algorithm name for the derived key.keySizeInBits - the size of the key to derive.| Method Detail |
public java.lang.String getKeyAlgorithmName()
public int getKeySize()
public AlgorithmIdentifier getKdfAlgorithm()
public byte[] getOtherInfo()
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||