Lines Matching defs:h*h
26 * ECDSA now uses SHA-1 hash. Imcompatible with old ECDSA signatures.
477 feeHash hash;
488 hash = feeHashAlloc();
494 feeHashFree(hash);
499 * Get Pm to salt hash object
502 feeHashAddData(hash, Pm, PmLen);
505 * Now hash the data proper, then sign the hash
507 feeHashAddData(hash, data, dataLen);
509 feeHashDigest(hash),
515 feeHashFree(hash);
531 feeHash hash;
537 hash = feeHashAlloc();
540 feeHashFree(hash);
554 * Get PM as salt; eat salt, then hash data
557 feeHashAddData(hash, Pm, PmLen);
558 feeHashAddData(hash, data, dataLen);
560 feeHashDigest(hash),
564 feeHashFree(hash);
570 #pragma mark --- ECDSA signature: high level routines ---
815 feeHash *hash = NULL; // a malloc'd array
866 hash = (void**) fmalloc(numDigests * sizeof(feeHash));
868 hash[i] = feeHashAlloc();
873 * at a time. If (passwdLen > privLen), last digest will hash all
885 feeHashAddData(hash[i], cp, toMove);
905 digest = feeHashDigest(hash[i++]);
931 feeHashFree(hash[i]);
933 ffree(hash);