Package org.xipki.pkcs11.wrapper.params
Class SALSA20_CHACHA20_POLY1305_MSG_PARAMS
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.params.CkParams
-
- org.xipki.pkcs11.wrapper.params.SALSA20_CHACHA20_POLY1305_MSG_PARAMS
-
- All Implemented Interfaces:
CkMessageParams
public class SALSA20_CHACHA20_POLY1305_MSG_PARAMS extends CkParams implements CkMessageParams
Represents the CK_SALSA20_CHACHA20_POLY1305_MSG_PARAMS.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description SALSA20_CHACHA20_POLY1305_MSG_PARAMS(byte[] nonce, byte[] tag)Create a new CK_SALSA20_CHACHA20_POLY1305_MSG_PARAMS object with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaxFieldLen()CK_SALSA20_CHACHA20_POLY1305_MSG_PARAMSgetParams()Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.voidsetValuesFromPKCS11Object(Object obj)StringtoString(String indent)
-
-
-
Constructor Detail
-
SALSA20_CHACHA20_POLY1305_MSG_PARAMS
public SALSA20_CHACHA20_POLY1305_MSG_PARAMS(byte[] nonce, byte[] tag)Create a new CK_SALSA20_CHACHA20_POLY1305_MSG_PARAMS object with the given attributes.- Parameters:
nonce- The nonce.tag- authentication tag which is returned on MessageEncrypt, and provided on MessageDecrypt.
-
-
Method Detail
-
getParams
public CK_SALSA20_CHACHA20_POLY1305_MSG_PARAMS getParams()
Description copied from class:CkParamsGet this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.
-
setValuesFromPKCS11Object
public void setValuesFromPKCS11Object(Object obj)
- Specified by:
setValuesFromPKCS11Objectin interfaceCkMessageParams
-
getMaxFieldLen
protected int getMaxFieldLen()
- Specified by:
getMaxFieldLenin classCkParams
-
-