|
Bouncy Castle Cryptography Library 1.85.2 | |||||||||
| 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 | |
void |
destroy()
Destroy this key, zeroizing the secret key material it holds. |
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()
|
boolean |
isDestroyed()
|
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.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic MLKEMPublicKey getPublicKey()
MLKEMPrivateKey
getPublicKey in interface MLKEMPrivateKeypublic byte[] getPrivateData()
MLKEMPrivateKey
getPrivateData in interface MLKEMPrivateKeypublic byte[] getSeed()
MLKEMPrivateKey
getSeed in interface MLKEMPrivateKeypublic MLKEMPrivateKey getPrivateKey(boolean preferSeedOnly)
MLKEMPrivateKey
getPrivateKey in interface MLKEMPrivateKeypreferSeedOnly - if true, return a privateKey which will encode to seed-only if possible.
public MLKEMParameterSpec getParameterSpec()
MLKEMKey
getParameterSpec in interface MLKEMKeypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic java.lang.String toString()
public void destroy()
After destruction isDestroyed() returns true and the secret-bearing accessors
(such as getEncoded(), getPrivateData() and getSeed()) throw
IllegalStateException. As the underlying parameter arrays may be shared with keys
derived from this one, destruction invalidates those references too.
public boolean isDestroyed()
|
Bouncy Castle Cryptography Library 1.85.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||