Lines Matching defs:digest
627 * on the digest using the given key and the random value kb (used in
632 const SECItem *digest, const unsigned char *kb, const int kblen, int kmflag)
659 if (!key || !signature || !digest || !kb || (kblen < 0)) {
743 SECITEM_TO_MPINT(*digest, &s); /* s = HASH(M) */
748 if (digest->len*8 > ecParams->fieldID.size) {
749 mpl_rsh(&s,&s,digest->len*8 - ecParams->fieldID.size);
760 printf("digest: %s (decimal)\n", mpstr);
826 ** Computes the ECDSA signature on the digest using the given key
830 ECDSA_SignDigest(ECPrivateKey *key, SECItem *signature, const SECItem *digest,
849 rv = ECDSA_SignDigestWithSeed(key, signature, digest, kBytes, len, kmflag);
865 ** Checks the signature on the given digest using the key provided.
869 const SECItem *digest, int kmflag)
900 if (!key || !signature || !digest) {
958 SECITEM_TO_MPINT(*digest, &u1); /* u1 = HASH(M) */
963 if (digest->len*8 > ecParams->fieldID.size) { /* u1 = HASH(M') */
964 mpl_rsh(&u1,&u1,digest->len*8- ecParams->fieldID.size);
975 printf("digest: %s (dec)\n", mpstr);