On 2009-12-10 03:53 PST, Konstantin Andreev wrote:
> On Thu, 10 Dec 2009, Lv, Zhiyuan wrote:
>> 
>> I am planning to use the HASH_HashBuf (HASH_AlgSHA256...) in my own
>> library for SHA256 computing. Currently I encountered an initialization
>> issue.. Could someone kindly give me some suggestions? Thanks in
>> advance!
> 
> If your application need only crypto-primitives (like digesting,
> encryption, signing/verification), you ought better use NSS PKCS#11
> module (softoken), without loading the whole NSS stack.

If Zhiyuan's library only needs hashing, and no other crypto primitives,
I'd suggest that he should just use a hash function directly.  For anything
involving keys, I'd say to use at least the PKCS#11 module (as Konstantin
suggested), and if he needs the higher level functionality, I'd suggest to
use all of NSS, but for just hashing, that's all overkill, IMO.
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to