public class MLKEMPublicKeyParameters extends MLKEMKeyParameters
| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] | rhoRandom seed |
(package private) byte[] | tPolynomial coefficients |
| Constructor and Description |
|---|
MLKEMPublicKeyParameters(MLKEMParameters params,
byte[] encoding)Create public key parameters from an encoded byte array. |
MLKEMPublicKeyParameters(MLKEMParameters params,
byte[] t,
byte[] rho)Create public key parameters from individual components. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | getEncoded()Get the encoded public key. |
(package private) static byte[] | getEncoded(byte[] t,
byte[] rho)Concatenate t and rho into a single encoding. |
byte[] | getRho()Get the random seed. |
byte[] | getT()Get the polynomial coefficients. |
getParametersisPrivatepublic MLKEMPublicKeyParameters(MLKEMParameters params, byte[] encoding)
params - the ML-KEM parametersencoding - the encoded public keypublic MLKEMPublicKeyParameters(MLKEMParameters params, byte[] t, byte[] rho)
params - the ML-KEM parameterst - the polynomial coefficientsrho - the random seedpublic byte[] getEncoded()
static byte[] getEncoded(byte[] t,
byte[] rho)t - the polynomial coefficientsrho - the random seedpublic byte[] getRho()
public byte[] getT()