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