Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/crypto/cryptocheck.c
Show First 20 Lines • Show All 1,135 Lines • ▼ Show 20 Lines | run_gmac_test(const struct alg *alg, size_t size) | ||||
} | } | ||||
if (verbose) | if (verbose) | ||||
printf("%s (%zu) matched (cryptodev device %s)\n", | printf("%s (%zu) matched (cryptodev device %s)\n", | ||||
alg->name, size, crfind(crid)); | alg->name, size, crfind(crid)); | ||||
out: | out: | ||||
free(buffer); | free(buffer); | ||||
free(iv); | |||||
free(key); | free(key); | ||||
} | } | ||||
static void | static void | ||||
openssl_digest(const struct alg *alg, const char *key, u_int key_len, | openssl_digest(const struct alg *alg, const char *key, u_int key_len, | ||||
const char *input, size_t size, char *tag, u_int tag_len) | const char *input, size_t size, char *tag, u_int tag_len) | ||||
{ | { | ||||
EVP_MD_CTX *mdctx; | EVP_MD_CTX *mdctx; | ||||
▲ Show 20 Lines • Show All 632 Lines • Show Last 20 Lines |