pike.git/
src/
post_modules/
Nettle/
hash.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2003-07-29
2003-07-29 03:48:48 by Martin Nilsson <mani@lysator.liu.se>
58872e2418e1b442e784aa55f8767b4e5a6077e5 (
21
lines) (+
2
/-
19
)
[
Show
|
Annotate
]
Branch:
7.9
Wups. Already implemented, but in another place.
Rev: src/post_modules/Nettle/hash.cmod:1.8
1:
/* hash.cmod -*- c -*- */ #include "global.h"
-
RCSID("$Id: hash.cmod,v 1.
7
2003/07/29 03:
44
:
39
nilsson Exp $");
+
RCSID("$Id: hash.cmod,v 1.
8
2003/07/29 03:
48
:
48
nilsson Exp $");
#include "interpret.h" #include "svalue.h"
170:
push_string(end_shared_string(digest)); }
-
/*! @decl string hash(string data)
-
*!
-
*! Works as a shortcut for @expr{obj->update(data)->digest()@}.
-
*!
-
*! @note
-
*! The hash buffer will not be cleared before @[data] is added
-
*! to the buffer, so data added with calls to @[update] will be
-
*! prepended to the @[data].
-
*!
-
*! @seealso
-
*! @[update] and @[digest].
-
*/
-
PIKEFUN string hash(string data) {
-
f_HashState_update(args);
-
pop_stack();
-
f_HashState_digest(0);
-
}
-
+
INIT { werror("HashState->INIT\n");