|
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.provider.asymmetric.mlkem.BCMLKEMPrivateKey
Constructor Summary | |
BCMLKEMPrivateKey(MLKEMPrivateKeyParameters params)
|
|
BCMLKEMPrivateKey(PrivateKeyInfo keyInfo)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
Compare this ML-KEM private key with another object. |
java.lang.String |
getAlgorithm()
|
byte[] |
getEncoded()
|
java.lang.String |
getFormat()
|
MLKEMParameterSpec |
getParameterSpec()
Return the parameters for this key. |
byte[] |
getPrivateData()
Return the long form private data for the ML-KEM private key. |
MLKEMPrivateKey |
getPrivateKey(boolean preferSeedOnly)
Return a privateKey which will encode as seed-only or as an expanded-key. |
MLKEMPublicKey |
getPublicKey()
Return the public key corresponding to this private key. |
byte[] |
getSeed()
Return the seed the private key was generated from (if available). |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BCMLKEMPrivateKey(MLKEMPrivateKeyParameters params)
public BCMLKEMPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
Method Detail |
public boolean equals(java.lang.Object o)
o
- the other object
public int hashCode()
public final java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public MLKEMPublicKey getPublicKey()
MLKEMPrivateKey
getPublicKey
in interface MLKEMPrivateKey
public byte[] getPrivateData()
MLKEMPrivateKey
getPrivateData
in interface MLKEMPrivateKey
public byte[] getSeed()
MLKEMPrivateKey
getSeed
in interface MLKEMPrivateKey
public MLKEMPrivateKey getPrivateKey(boolean preferSeedOnly)
MLKEMPrivateKey
getPrivateKey
in interface MLKEMPrivateKey
preferSeedOnly
- if true, return a privateKey which will encode to seed-only if possible.
public MLKEMParameterSpec getParameterSpec()
MLKEMKey
getParameterSpec
in interface MLKEMKey
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public java.lang.String toString()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |