APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.pkcs11.wrapper

public Class CK_SALSA20_CHACHA20_POLY1305_PARAMS

extends Object
Class Inheritance
Imports
java.util.HexFormat

This class represents the necessary parameters required by the CKM_CHACHA20_POLY1305 and CKM_SALSA20_POLY1305 mechanisms as defined in CK_SALSA20_CHACHA20_POLY1305_PARAMS structure.

PKCS#11 structure:

typedef struct CK_SALSA20_CHACHA20_POLY1305_PARAMS {
  CK_BYTE_PTR  pNonce;
  CK_ULONG     ulNonceLen;
  CK_BYTE_PTR  pAAD;
  CK_ULONG     ulAADLen;
} CK_SALSA20_CHACHA20_POLY1305_PARAMS;
Since
17

Field Summary

Modifier and TypeField and Description
private final byte[]
private final byte[]

Constructor Summary

AccessConstructor and Description
public
CK_SALSA20_CHACHA20_POLY1305_PARAMS(byte[] nonce, byte[] aad)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

aadback to summary
private final byte[] aad
nonceback to summary
private final byte[] nonce

Constructor Detail

CK_SALSA20_CHACHA20_POLY1305_PARAMSback to summary
public CK_SALSA20_CHACHA20_POLY1305_PARAMS(byte[] nonce, byte[] aad)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.