Update doc/efun/ aus Driversourcen.
Manpages der efuns aktualisiert, neue Manpages hinzugefuegt.
Change-Id: I7cc91684269ff56d1aef47d5c5e7c87f7fd531dc
diff --git a/doc/efun/hash b/doc/efun/hash
index 72b432a..f913736 100644
--- a/doc/efun/hash
+++ b/doc/efun/hash
@@ -5,15 +5,14 @@
string hash(int method, bytes arg [, int iterations ] )
string hash(int method, int * arg [, int iterations ] )
-BESCHREIBUNG
- Berechne den Hash <method> vom Argument <arg>. Der Hash wird
- mit <iterations> Wiederholungen berechnet, wird der Wert weggelassen,
- wird eine Wiederholung verwendet. Falls ein String als <arg>
- uebergeben wurde, so wird dieser in eine UTF-8-Bytefolge konvertiert
- und davon der Hash berechnet.
+DESCRIPTION
+ Calculate the hash from <arg> as determined by <method>. The hash is
+ calculated with <iterations> iterations, default is 1 iteration.
+ If <arg> is a string, it will be converted to a UTF-8 byte sequence
+ of which then the hash will be created.
- <method> ist eine der TLS_HASH_-Konstanten in tls.h; nicht jede
- beschriebene Methode ist in einem gegebenen Driver vorhanden:
+ <method> is one of the TLS_HASH_ constants defined in tls.h; not
+ all recognized methods may be supported for a given driven:
TLS_HASH_SHA1 (1)
TLS_HASH_SHA224 (2)
@@ -23,21 +22,21 @@
TLS_HASH_MD5 (6)
TLS_HASH_RIPEMD160 (7)
- Wenn der Driver ohne OpenSSL- oder GCrypt-Unterstuetzung compiliert
- wurde, sind nur TLS_HASH_SHA1 und TLS_HASH_MD5 verfuegbar.
+ If the driver is compiled without OpenSSL or GCrypt support
+ only TLS_HASH_SHA1 and TLS_HASH_MD5 are available.
- Jede Iteration kostet 10 Evalution-Ticks.
+ The efun costs 10 ticks per iteration.
-BEISPIELE
+EXAMPLES
string s;
s = hash(TLS_HASH_SHA1, "Hello", 2);
s = hash(TLS_HASH_SHA1, ({ 'H', 'e', 'l', 'l', 'o' }) )
-GESCHICHTE
- Eingefuehrt in LDMud 3.3.714.
- LDMud 3.3.719 fuehrte die iterationsbasierten Evaluationskosten ein.
+HISTORY
+ Introduced in LDMud 3.3.714.
+ LDMud 3.3.719 added the iteration-based evaluation cost.
-SIEHE AUCH
+SEE ALSO
crypt(E), md5(E), md5_crypt(E), sha1(E), hmac(E)