Lines Matching defs:lengths
73 const unsigned int lengths[NUM_TYPES],
79 if (!EVP_AEAD_CTX_init(&ctx, aead, bufs[KEY], lengths[KEY], lengths[TAG],
86 lengths[NONCE], bufs[IN], lengths[IN], bufs[AD],
87 lengths[AD])) {
92 if (ciphertext_len != lengths[CT] + lengths[TAG]) {
94 (unsigned)ciphertext_len, (unsigned)(lengths[CT] + lengths[TAG]));
98 if (memcmp(out, bufs[CT], lengths[CT]) != 0) {
103 if (memcmp(out + lengths[CT], bufs[TAG], lengths[TAG]) != 0) {
111 if (!EVP_AEAD_CTX_init(&ctx, aead, bufs[KEY], lengths[KEY], lengths[TAG],
117 if (!EVP_AEAD_CTX_open(&ctx, out2, &plaintext_len, lengths[IN], bufs[NONCE],
118 lengths[NONCE], out, ciphertext_len, bufs[AD],
119 lengths[AD])) {
124 if (plaintext_len != lengths[IN]) {
133 if (!EVP_AEAD_CTX_init(&ctx, aead, bufs[KEY], lengths[KEY], lengths[TAG],
140 if (EVP_AEAD_CTX_open(&ctx, out2, &plaintext_len, lengths[IN], bufs[NONCE],
141 lengths[NONCE], out, ciphertext_len, bufs[AD],
142 lengths[AD])) {
157 unsigned int lengths[NUM_TYPES];
190 lengths[j] = 0;
213 if (lengths[j] != 0) {
220 if (!run_test_case(aead, bufs, lengths, line_no)) {
225 lengths[j] = 0;
266 if (lengths[j] != 0) {
271 buf_len = &lengths[j];