Home | History | Annotate | Download | only in demos

Lines Matching refs:hash_descriptor

128    for (x = 0; hash_descriptor[x].name != NULL; x++) {
129 buf = XMALLOC(2 * hash_descriptor[x].blocksize + 1);
134 fprintf(out, "Hash: %s\n", hash_descriptor[x].name);
135 for (y = 0; y <= (hash_descriptor[x].blocksize * 2); y++) {
245 for (x = 0; hash_descriptor[x].name != NULL; x++) {
246 fprintf(out, "HMAC-%s\n", hash_descriptor[x].name);
249 for (y = 0; y < (int)hash_descriptor[x].hashsize; y++) {
253 input = XMALLOC(hash_descriptor[x].blocksize * 2 + 1);
259 for (y = 0; y <= (int)(hash_descriptor[x].blocksize * 2); y++) {
264 if ((err = hmac_memory(x, key, hash_descriptor[x].hashsize, input, y, output, &len)) != CRYPT_OK) {
275 memcpy(key, output, hash_descriptor[x].hashsize);