Commit 146e03e3 authored by Kevin Jacobs's avatar Kevin Jacobs

Bug 1515011 - Update Chacha20poly1305 tests to not pass NULL pBuf to...

Bug 1515011 - Update Chacha20poly1305 tests to not pass NULL pBuf to PK11_Decrypt when the plaintext message is empty. r=mt

Differential Revision: https://phabricator.services.mozilla.com/D29249

--HG--
extra : moz-landing-system : lando
parent bdf44764
......@@ -13,22 +13,22 @@
#include <string>
#include <vector>
typedef struct chacha_testvector_str {
typedef struct chaChaTestVectorStr {
uint32_t id;
std::vector<uint8_t> Data;
std::vector<uint8_t> AAD;
std::vector<uint8_t> Key;
std::vector<uint8_t> IV;
std::vector<uint8_t> CT;
bool invalid_tag;
bool invalid_iv;
} chacha_testvector;
bool invalidTag;
bool invalidIV;
} chaChaTestVector;
// ChaCha20/Poly1305 Test Vector 1, RFC 7539
// <http://tools.ietf.org/html/rfc7539#section-2.8.2>
// ChaCha20/Poly1305 Test Vector 2, RFC 7539
// <http://tools.ietf.org/html/rfc7539#appendix-A.5>
const chacha_testvector kChaCha20Vectors[] = {
const chaChaTestVector kChaCha20Vectors[] = {
{0,
{0x4c, 0x61, 0x64, 0x69, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x47,
0x65, 0x6e, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x20, 0x6f, 0x66, 0x20,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment