ucryptolib/test.c
static void ossl_sha256(const void* in, int in_size, unsigned char* md) {
  SHA256_CTX ctx;
  SHA256_Init(&ctx);
  SHA256_Update(&ctx, in, in_size);
  SHA256_Final(md, &ctx);
}
// SHA256 using openssl.
// md needs to hold SHA256_DIGEST_LENGTH bytes.
SHA256 using openssl.
md needs to hold SHA256_DIGEST_LENGTH bytes.
SHA256 using openssl . md needs to hold SHA256_DIGEST_LENGTH bytes .
static void ossl_sha256(const void* in, int in_size, unsigned char* md) {
  SHA256_CTX ctx;
  SHA256_Init(&ctx);
  SHA256_Update(&ctx, in, in_size);
  SHA256_Final(md, &ctx);
}
static void ossl_sha256 ( const void * in , int in_size , unsigned char * md ) { SHA256_CTX ctx ; SHA256_Init ( & ctx ) ; SHA256_Update ( & ctx , in , in_size ) ; SHA256_Final ( md , & ctx ) ; }
SHA256 using openssl.
SHA256 using openssl .