|
YAACC - UPNP Client and Server
|
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...

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 |
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).
|
static |
Referenced by de.yaacc.sendspin.session.ServerHandshake.perform().
