/* Check validity of input arguments. 
This function checks the validity of input arguments. */
static status_t hashcrypt_sha_check_input_args(HASHCRYPT_Type *base, hashcrypt_hash_ctx_t *ctx, hashcrypt_algo_t algo)
/* Check validity of input arguments. 
This function checks the validity of input arguments. */
static status_t hashcrypt_sha_check_input_args(HASHCRYPT_Type *base, hashcrypt_hash_ctx_t *ctx, hashcrypt_algo_t algo)
{
    if (kStatus_Success != hashcrypt_sha_check_input_alg(base, algo))
    {
        return kStatus_InvalidArgument;
    }
    if ((NULL == ctx) || (NULL == base))
    {
        return kStatus_InvalidArgument;
    }
    return kStatus_Success;
}