/* Check validity of algoritm. 
This function checks the validity of input argument. */
static status_t hashcrypt_sha_check_input_alg(HASHCRYPT_Type *base, hashcrypt_algo_t algo)
/* Check validity of algoritm. 
This function checks the validity of input argument. */
static status_t hashcrypt_sha_check_input_alg(HASHCRYPT_Type *base, hashcrypt_algo_t algo)
{
    if ((algo == kHASHCRYPT_Sha1) || (algo == kHASHCRYPT_Sha256))
    {
        return kStatus_Success;
    }
    return kStatus_InvalidArgument;
}