public interface MLKEMPrivateKey extends java.security.PrivateKey, MLKEMKey
Modifier and Type | Method and Description |
---|---|
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).
|
getParameterSpec
MLKEMPublicKey getPublicKey()
byte[] getPrivateData()
byte[] getSeed()
MLKEMPrivateKey getPrivateKey(boolean preferSeedOnly)
preferSeedOnly
- if true, return a privateKey which will encode to seed-only if possible.