pike.git
/
src
/
post_modules
/
Nettle
/
nettle.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/nettle.cmod:1:
/* nettle.cmod -*- c -*- */ #include "global.h"
-
RCSID("$Id: nettle.cmod,v 1.
35
2004/03/
20
12
:
51
:
13
grubba
Exp $");
+
RCSID("$Id: nettle.cmod,v 1.
36
2004/03/
24
00
:
08
:
30
nilsson
Exp $");
#include "interpret.h" #include "svalue.h" /* For this_object() */ #include "object.h" #include "operators.h" #include "module_support.h" #include "threads.h" #include "nettle_config.h"
pike.git/src/post_modules/Nettle/nettle.cmod:293:
if(missing) { free_object(obj); Pike_error("Object is missing identifier \"%s\"\n", missing); } return obj; } /*! @class CBC
+
*! @belongs Crypto
*! Implementation of the cipher block chaining mode (CBC). Works as *! a wrapper for the cipher algorithm put in create. */ PIKECLASS CBC { CVAR struct object *object; CVAR unsigned INT8 *iv; CVAR INT32 block_size; CVAR INT32 mode;
pike.git/src/post_modules/Nettle/nettle.cmod:516:
pop_n_elems(args); push_string(make_shared_binary_string((INT8 *)result, offset)); MEMSET(result, 0, offset); } } /*! @endclass */ /*! @class Buffer
+
*! @belongs Crypto
*! Acts as a buffer so that data can be fed to a cipher in blocks *! that doesn't correspond to cipher block sizes. */ PIKECLASS Proxy { CVAR struct object *object; CVAR int block_size; CVAR unsigned char *backlog; CVAR int backlog_len; INIT {