hash.c

ldmud-3.3.719/mudlib/deprecated/hash.c · 372 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

#include "/sys/tls.h"

string md5(mixed arg, varargs mixed* iterations)
{
    if (extern_call())
         set_this_object(previous_object());

    return hash(TLS_HASH_MD5, arg, iterations...);
}

string sha1(mixed arg, varargs mixed* iterations)
{
    if (extern_call())
         set_this_object(previous_object());

    return hash(TLS_HASH_SHA1, arg, iterations...);
}

Site Stats

Snippets: 1791
Codebases: 571