Class ChachaEncoder
- java.lang.Object
-
- io.github.hapjava.server.impl.crypto.ChachaEncoder
-
public class ChachaEncoder extends Object
-
-
Constructor Summary
Constructors Constructor Description ChachaEncoder(byte[] key, byte[] nonce)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]encodeCiphertext(byte[] plaintext)byte[]encodeCiphertext(byte[] plaintext, byte[] additionalData)
-
-
-
Constructor Detail
-
ChachaEncoder
public ChachaEncoder(byte[] key, byte[] nonce) throws IOException- Throws:
IOException
-
-
Method Detail
-
encodeCiphertext
public byte[] encodeCiphertext(byte[] plaintext) throws IOException- Throws:
IOException
-
encodeCiphertext
public byte[] encodeCiphertext(byte[] plaintext, byte[] additionalData) throws IOException- Throws:
IOException
-
-