From 40c2351b110757aefea21b24fac783c2fd3126d3 Mon Sep 17 00:00:00 2001 From: "wtchang%redhat.com" Date: Mon, 14 Mar 2005 19:22:06 +0000 Subject: [PATCH] Bugzilla Bug 276183: added a comment for PK11_HashBuf. --- security/nss/lib/pk11wrap/pk11pub.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/nss/lib/pk11wrap/pk11pub.h b/security/nss/lib/pk11wrap/pk11pub.h index d1fec837d49..51a7a05257e 100644 --- a/security/nss/lib/pk11wrap/pk11pub.h +++ b/security/nss/lib/pk11wrap/pk11pub.h @@ -499,6 +499,10 @@ PK11Context *PK11_CreateContextBySymKey(CK_MECHANISM_TYPE type, PK11Context *PK11_CreateDigestContext(SECOidTag hashAlg); PK11Context *PK11_CloneContext(PK11Context *old); SECStatus PK11_DigestBegin(PK11Context *cx); +/* + * The output buffer 'out' must be big enough to hold the output of + * the hash algorithm 'hashAlg'. + */ SECStatus PK11_HashBuf(SECOidTag hashAlg, unsigned char *out, unsigned char *in, int32 len); SECStatus PK11_DigestOp(PK11Context *context, const unsigned char *in,