chacha20poly1305.h 502 B

12345678910111213141516
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef _CHACHA20_POLY1305_H_
  5. #define _CHACHA20_POLY1305_H_ 1
  6. /* ChaCha20Poly1305ContextStr saves the key and tag length for a
  7. * ChaCha20+Poly1305 AEAD operation. */
  8. struct ChaCha20Poly1305ContextStr {
  9. unsigned char key[32];
  10. unsigned char tagLen;
  11. };
  12. #endif /* _CHACHA20_POLY1305_H_ */