Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt obtains the mac from the first 32 bytes of the ciphertext then checks whether its valid verifyHMAC().If it is valid it obtains the initialisation vector(16 bytes) also known as the nonce from the second batch of 32 bytes from the last byte position of the mac.It then obtains the ciphertext payload from the remaining slice of bytes:
ciphertext[48:].
It is this ciphertext payload that is now XOR'd back to plaintext
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.