YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.secure.NoiseSuite Enum Reference

The two cipher suites of the protocol (the <DH>_<cipher>_<hash> part of the Noise protocol name): ChaCha20-Poly1305 from the lightweight API of the library (the platform has it from API 28 only) and AES-GCM from the platform. More...

Collaboration diagram for de.yaacc.sendspin.secure.NoiseSuite:
Collaboration graph

Public Member Functions

 NoiseSuite (String wireName, boolean bigEndianNonce)
 
String wireName ()
 The value of suite in client/init.
 
String protocolName ()
 The full Noise protocol name of the handshake.
 
byte[] encrypt (byte[] key, long counter, byte[] ad, byte[] plaintext) throws NoiseException
 
byte[] decrypt (byte[] key, long counter, byte[] ad, byte[] ciphertext) throws NoiseException
 

Static Public Member Functions

static NoiseSuite fromWireName (String name)
 

Public Attributes

 CHACHA_POLY =("25519_ChaChaPoly_SHA256", false)
 
 AES_GCM =("25519_AESGCM_SHA256", true)
 

Static Public Attributes

static final int TAG_LENGTH = 16
 
static final int KEY_LENGTH = 32
 

Detailed Description

The two cipher suites of the protocol (the <DH>_<cipher>_<hash> part of the Noise protocol name): ChaCha20-Poly1305 from the lightweight API of the library (the platform has it from API 28 only) and AES-GCM from the platform.

Both use a 16 byte tag; the nonce is 4 zero bytes and the 64 bit counter, little endian for ChaChaPoly and big endian for AESGCM (Noise, section 12).

Member Function Documentation

◆ fromWireName()

static NoiseSuite de.yaacc.sendspin.secure.NoiseSuite.fromWireName ( String name)
static
Returns
the suite of the wire name, or null for a name this implementation does not know

Referenced by de.yaacc.sendspin.session.ServerHandshake.perform().

Here is the caller graph for this function:

The documentation for this enum was generated from the following file: