NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

SHA256?



I am tryin to find BSD-licensed (or public domain) reliable SHA256 code,
so I thought I'd look in the NetBSD source tree.  Grepping for
SHA256_Init gets me these hits, and I'm a bit boggled as to how SHA256
ends up in the kernel and in libc.
Can anyone explain?



./common/lib/libc/hash/sha2/sha2.c:__weak_alias(SHA256_Init,_SHA256_Init) 
./common/lib/libc/hash/sha2/sha2.c:void SHA256_Init(SHA256_CTX* context) {
./crypto/dist/heimdal/cf/crypto.m4:             SHA256_Init(&sha256);
./crypto/dist/heimdal/lib/hcrypto/evp.c:        (evp_md_init)SHA256_Init,
./crypto/dist/heimdal/lib/hcrypto/mdtest.c:    (void (*)(void*))SHA256_Init,
./crypto/dist/heimdal/lib/hcrypto/rand-fortuna.c:    SHA256_Init(ctx);
./crypto/dist/heimdal/lib/hcrypto/sha.h:#define SHA256_Init hc_SHA256_Init
./crypto/dist/heimdal/lib/hcrypto/sha.h:void SHA256_Init (SHA256_CTX *);
./crypto/dist/heimdal/lib/hcrypto/sha256.c:SHA256_Init (SHA256_CTX *m)
./crypto/dist/heimdal/lib/hcrypto/version-script.map:           hc_SHA256_Init;
./crypto/dist/heimdal/lib/hx509/crypto.c:    SHA256_Init(&m);
./crypto/dist/heimdal/lib/hx509/crypto.c:    SHA256_Init(&m);
./crypto/dist/heimdal/configure:                SHA256_Init(&sha256);
./crypto/dist/heimdal/configure:                SHA256_Init(&sha256);
./crypto/dist/heimdal/configure:                SHA256_Init(&sha256);
./crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c:void 
SHA256_Init(SHA256_CTX* context) {
./crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c:        
SHA256_Init(&context);
./crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c:  
SHA256_Init(data(ctx));
./crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c:        
SHA256_Init,
./crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.h:void 
SHA256_Init __P((SHA256_CTX *));
./crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c:  SHA256_Init(c);
./crypto/dist/openssl/crypto/evp/m_sha1.c:      { return 
SHA256_Init(ctx->md_data); }
./crypto/dist/openssl/crypto/sha/sha.h:int SHA256_Init(SHA256_CTX *c);
./crypto/dist/openssl/crypto/sha/sha256.c:int SHA256_Init (SHA256_CTX *c)
./crypto/dist/openssl/crypto/sha/sha256.c:      SHA256_Init(&c);
./crypto/dist/openssl/util/libeay.num:SHA256_Init                             
3479      EXIST::FUNCTION:SHA,SHA256
./crypto/dist/ssh/md-sha256.c:  SHA256_Init(ctxt->md_data);
./distrib/sets/lists/comp/mi:./usr/share/man/cat3/SHA256_Init.0         
comp-c-catman           .cat
./distrib/sets/lists/comp/mi:./usr/share/man/man3/SHA256_Init.3         
comp-c-man              .man
./lib/libc/hash/sha2/Makefile.inc:MLINKS+=sha2.3 SHA256_Init.3 sha2.3 
SHA256_Update.3 sha2.3 SHA256_Final.3
./lib/libc/hash/sha2/sha2.3:.Nm SHA256_Init ,
./lib/libc/hash/sha2/sha2.3:.Fn SHA256_Init "SHA256_CTX *context"
./lib/libc/hash/sha2/sha2.3:.Fn SHA256_Init
./lib/libc/hash/sha2/sha2.3:.Fn SHA256_Init ,
./lib/libc/hash/sha2/sha2.3:SHA256_Init(\*[Am]ctx);
./lib/libc/include/namespace.h:#define SHA256_Init              _SHA256_Init
./sys/kern/kern_verifiedexec.c:     SHA256_Init, SHA256_Update, SHA256_Final);
./sys/netinet6/ah_core.c:               SHA256_Init(ctxt);
./sys/netinet6/ah_core.c:       SHA256_Init(ctxt);
./sys/netinet6/ah_core.c:       SHA256_Init(ctxt);
./sys/opencrypto/cryptosoft_xform.c:    (void (*)(void *)) SHA256_Init, 
SHA256Update_int,
./sys/sys/sha2.h:void SHA256_Init(SHA256_CTX *);
./usr.bin/cksum/sha256.c:#define MD5Init                SHA256_Init



Home | Main Index | Thread Index | Old Index