public class SALSA20_CHACHA20_POLY1305_PARAMS extends CkParams implements CkMessageParams
| Constructor and Description |
|---|
SALSA20_CHACHA20_POLY1305_PARAMS(byte[] nonce,
byte[] aad)
Create a new CK_SALSA20_CHACHA20_POLY1305_PARAMS object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMaxFieldLen() |
CK_SALSA20_CHACHA20_POLY1305_PARAMS |
getParams()
Get this parameters object as an object of the corresponding *_PARAMS
class of the iaik.pkcs.pkcs11.wrapper package.
|
void |
setValuesFromPKCS11Object(Object obj)
Read the parameters from the PKCS11Object and overwrite the values into this object.
|
String |
toString(String indent) |
codeToName, ptr2str, requireNonNull, setModule, toString, val2Strpublic SALSA20_CHACHA20_POLY1305_PARAMS(byte[] nonce,
byte[] aad)
nonce - nonce (This should be never re-used with the same key.) aad - additional authentication data. This data is authenticated but not encrypted.public CK_SALSA20_CHACHA20_POLY1305_PARAMS getParams()
CkParamspublic void setValuesFromPKCS11Object(Object obj)
setValuesFromPKCS11Object in interface CkMessageParamsobj - Object to read the parameters fromprotected int getMaxFieldLen()
getMaxFieldLen in class CkParamsCopyright © 2023. All rights reserved.