src/lib/crypto.c
const char *crypto_digest_name(DIGEST *digest)
{
   switch (digest->type) {
   case CRYPTO_DIGEST_MD5:
      return "MD5";
   case CRYPTO_DIGEST_SHA1:
      return "SHA1";
   case CRYPTO_DIGEST_SHA256:
      return "SHA256";
   case CRYPTO_DIGEST_SHA512:
      return "SHA512";
   case CRYPTO_DIGEST_NONE:
      return "None";
   default:
      return "Invalid Digest Type";
   }

}
/*
 * Returns the ASCII name of the digest type.
 * Returns: ASCII name of digest type.
 */
Returns the ASCII name of the digest type.
Returns: ASCII name of digest type.
Returns the ASCII name of the digest type . Returns : ASCII name of digest type .
const char *crypto_digest_name(DIGEST *digest)
{
   switch (digest->type) {
   case CRYPTO_DIGEST_MD5:
      return "MD5";
   case CRYPTO_DIGEST_SHA1:
      return "SHA1";
   case CRYPTO_DIGEST_SHA256:
      return "SHA256";
   case CRYPTO_DIGEST_SHA512:
      return "SHA512";
   case CRYPTO_DIGEST_NONE:
      return "None";
   default:
      return "Invalid Digest Type";
   }
}
const char * crypto_digest_name ( DIGEST * digest ) { switch ( digest -> type ) { case CRYPTO_DIGEST_MD5 : return " " ; case CRYPTO_DIGEST_SHA1 : return " " ; case CRYPTO_DIGEST_SHA256 : return " " ; case CRYPTO_DIGEST_SHA512 : return " " ; case CRYPTO_DIGEST_NONE : return " " ; default : return " " ; } }
Returns the ASCII name of the digest type.
Returns the ASCII name of the digest type .