Searched defs:vec (Results 1 - 2 of 2) sorted by relevance

/dovecot/src/lib/
H A Dtest-hmac.c72 const struct test_vector *vec = &(test_vectors[i]); local
74 hmac_init(&ctx, vec->key, vec->key_len, hash_method_lookup(vec->prf));
75 hmac_update(&ctx, vec->data, vec->data_len);
78 test_assert_idx(memcmp(res, vec->res, vec->res_len) == 0, i);
85 const struct test_vector *vec = &(test_vectors[0]); local
90 tmp = t_hmac_data(hash_method_lookup(vec
[all...]
H A Dtest-pkcs5.c41 const struct test_vector *vec = &(test_vectors_v2[i]); local
42 pkcs5_pbkdf(PKCS5_PBKDF2, hash_method_lookup(vec->prf), vec->p, vec->pLen, vec->s, vec->sLen, vec->i, vec->dkLen, res);
43 test_assert_idx(memcmp(res->data, vec->dk, vec
[all...]

Completed in 30 milliseconds