I know that SHA256_Update () is implemented in libcrypto under opensl, but simple grep cannot find its definition:
$ ack SHA256_Update fips/fips_standalone_sha1.c 76: SHA256_Update(md_ctx,key,len); 87: SHA256_Update(md_ctx,pad,SHA256_CBLOCK); 92: SHA256_Update(o_ctx,pad,SHA256_CBLOCK); 100: SHA256_Update(o_ctx,buf,sizeof buf); 154: SHA256_Update(&md_ctx,buf,l); evp/m_sha1.c 114: { return SHA256_Update(ctx->md_data,data,count); } sha/sha256.c 58: SHA256_Update(&c,d,n); 71: SHA256_Update(&c,d,n); 78:{ return SHA256_Update (c,data,len); } 116:#define HASH_UPDATE SHA256_Update
All of these instances are where the function is called, but not its definition. However, if I do "nm libcrypto.so | grep SHA256_Update", the entry can be found.
Weird ...
Can anyone shed some light here?
source share