pike.git
/
src
/
post_modules
/
Nettle
/
hash.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hash.cmod:1:
/* hash.cmod -*- c -*- */
-
/* $Id: hash.cmod,v 1.
27
2005
/
12
/
12
20
:
51
:
40
nilsson Exp $ */
+
/* $Id: hash.cmod,v 1.
28
2008
/
05
/
29
22
:
50
:
20
nilsson Exp $ */
#include "global.h" #include "interpret.h" #include "svalue.h" #include "threads.h" /* For this_object() */ #include "object.h" #include "module_support.h"
pike.git/src/post_modules/Nettle/hash.cmod:310:
meta->digest(THIS->ctx, length, (uint8_t *)digest->str); push_string(end_shared_string(digest)); } INIT { werror("HashState->INIT\n"); THIS->ctx = NULL; } EXIT
+
gc_trivial;
{ werror("HashState->EXIT\n"); if (THIS->ctx && Pike_fp->current_object->prog) { const struct nettle_hash *meta = GET_META(Pike_fp->current_object); assert(meta); memset(THIS->ctx, 0, meta->context_size); } }