int main() { const unsigned char *key = (const unsigned char *) "\x5a\x4b\x3c\x2d\x1e\x0f\x00\xf1\xe2\xd3\xc4\xb5\xa6\x97\x88\x79"; const unsigned char *nonce = (const unsigned char *) "\x6b\x4c\x2d\x0e\xef\xd0\xb1\x92\x72\x53\x34\x15\xf6\xd7\xb8\x99"; const unsigned char *AD = (const unsigned char *) "\x32\xf3\xb4\x75\x35\xf6"; const unsigned char *plaintext = (const unsigned char *) "\xe4\x65\xe5\x66\xe6\x67\xe7"; const unsigned char *ciphertext = (const unsigned char *) "\x74\xfa\x8c\x03\x7e\x28\x8f\x3a\x94\xab\xcb\x3b\xb5\x48\x97\xba\x5c\x4a\x1c\x3a\x0b\x8b\xcb"; return test_crypto_aead(key, 16, nonce, 16, AD, 6, plaintext, 7, ciphertext, 16); }
int main() { const unsigned char *key = (const unsigned char *) "\x14\x5e\xa8\xf2\x3d\x87\xd1\x1c\x66\xb0\xfa\x45"; const unsigned char *nonce = (const unsigned char *) "\x15\x70\xcb\x27\x82\xdd\x39\x94\xef\x4b"; const unsigned char *AD = (const unsigned char *) "\x0c\x78\xe4\x51\xbd\x2a"; const unsigned char *plaintext = (const unsigned char *) "\x0e\x8b\x09\x86\x04\x81\xfe"; const unsigned char *ciphertext = (const unsigned char *) "\xab\x1b\xb0\x94\xf7\x80\x63\xc8\x90\xfc\x8e\xd2\x55\xb2\x4c\x24\xb3\xac\x7e"; return test_crypto_aead(key, 12, nonce, 10, AD, 6, plaintext, 7, ciphertext, 12); }
int main() { const unsigned char *key = (const unsigned char *) "\x5a\x4b\x3c\x2d\x1e\x0f\x00\xf1\xe2\xd3\xc4\xb5\xa6\x97\x88\x79"; const unsigned char *nonce_ = (const unsigned char *) "\x6b\x4c\x2d\x0e\xef\xd0\xb1\x92\x72\x53\x34\x15\xf6\xd7\xb8\x99"; const unsigned char *AD = (const unsigned char *) "\x32\xf3\xb4\x75\x35\xf6"; const unsigned char *plaintext = (const unsigned char *) "\xe4\x65\xe5\x66\xe6\x67\xe7"; const unsigned char *ciphertext = (const unsigned char *) "\x0c\x20\x01\x37\x08\xb7\xdb\x7c\xe0\x47\xac\xd4\x69\xb7\x5c\xc1\xf2\xc3\x06\x76\x5b\xb5\x98"; unsigned char nonce[181]; memset(nonce, 0, 181); memcpy(nonce, nonce_, 16); return test_crypto_aead(key, 16, nonce, 181, AD, 6, plaintext, 7, ciphertext, 16); }
int main() { const unsigned char *key = (const unsigned char *) "\x5a\x4b\x3c\x2d\x1e\x0f\x00\xf1\xe2\xd3\xc4\xb5\xa6\x97\x88\x79"; const unsigned char *nonce_ = (const unsigned char *) "\x6b\x4c\x2d\x0e\xef\xd0\xb1\x92\x72\x53\x34\x15\xf6\xd7\xb8\x99"; const unsigned char *AD = (const unsigned char *) "\x32\xf3\xb4\x75\x35\xf6"; const unsigned char *plaintext = (const unsigned char *) "\xe4\x65\xe5\x66\xe6\x67\xe7"; const unsigned char *ciphertext = (const unsigned char *) "\xb9\xf6\x7e\xf7\x68\xc1\xb4\x97\xcf\xad\x20\x00\x6d\xae\x22\x27\xe3\x7a\x6a\x95\xf3\x7d\x4d"; unsigned char nonce[150]; memset(nonce, 0, 150); memcpy(nonce, nonce_, 16); return test_crypto_aead(key, 16, nonce, 150, AD, 6, plaintext, 7, ciphertext, 16); }
int main() { const unsigned char *key = (const unsigned char *) "\x5a\x4b\x3c\x2d\x1e\x0f\x00\xf1\xe2\xd3\xc4\xb5\xa6\x97\x88\x79"; const unsigned char *nonce_ = (const unsigned char *) "\x6b\x4c\x2d\x0e\xef\xd0\xb1\x92\x72\x53\x34\x15\xf6\xd7\xb8\x99"; const unsigned char *AD = (const unsigned char *) "\x32\xf3\xb4\x75\x35\xf6"; const unsigned char *plaintext = (const unsigned char *) "\xe4\x65\xe5\x66\xe6\x67\xe7"; const unsigned char *ciphertext = (const unsigned char *) "\x6c\x89\x44\x7e\x80\x76\xb0\xb2\x86\xed\x2b\x02\x0b\xe0\xd4\xa8\x76\xfe\xa3\x6b\xfe\x3d\x2e"; unsigned char nonce[81]; memset(nonce, 0, 81); memcpy(nonce, nonce_, 16); return test_crypto_aead(key, 16, nonce, 81, AD, 6, plaintext, 7, ciphertext, 16); }
int main() { const unsigned char *key = (const unsigned char *) "\x5a\x4b\x3c\x2d\x1e\x0f\x00\xf1\xe2\xd3\xc4\xb5\xa6\x97\x88\x79"; const unsigned char *nonce_ = (const unsigned char *) "\x6b\x4c\x2d\x0e\xef\xd0\xb1\x92\x72\x53\x34\x15\xf6\xd7\xb8\x99"; const unsigned char *AD = (const unsigned char *) "\x32\xf3\xb4\x75\x35\xf6"; const unsigned char *plaintext = (const unsigned char *) "\xe4\x65\xe5\x66\xe6\x67\xe7"; const unsigned char *ciphertext = (const unsigned char *) "\x36\xf1\x9c\x60\x8a\xa6\xa5\x9b\x0f\x7f\xd0\x78\x6e\x58\x6d\xfe\xac\x84\x76\x92\x06\x46\x53"; unsigned char nonce[58]; memset(nonce, 0, 58); memcpy(nonce, nonce_, 16); return test_crypto_aead(key, 16, nonce, 58, AD, 6, plaintext, 7, ciphertext, 16); }