pike.git
/
src
/
post_modules
/
Nettle
/
cipher.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/cipher.cmod:1430:
*! the parent class (@[Cipher]). *! *! @seealso *! @[CBC], @[GCM] */ PIKEVAR object(Nettle_BlockCipher_cq__PCBC) PCBC; PIKECLASS _PCBC program_flags PROGRAM_NEEDS_PARENT|PROGRAM_USES_PARENT; {
-
/*! @decl inherit
_
CBC
+
/*! @decl inherit CBC
*/ static int f_pcbc_inh_cbc_state_program_fun_num = -1; EXTRA { low_inherit(Nettle_BlockCipher_cq__CBC_program, 0, Nettle_BlockCipher_cq__CBC_program_fun_num, 42 + 1, 0, NULL); f_pcbc_inh_cbc_state_program_fun_num =
pike.git/src/post_modules/Nettle/cipher.cmod:1459:
f_Nettle_Cipher_name_fun_num, args); push_constant_text(".PCBC"); f_add(2); } /*! @class State */ PIKECLASS State program_flags PROGRAM_NEEDS_PARENT|PROGRAM_USES_PARENT; {
-
DOCSTART() @decl inherit
_
CBC::State
+
DOCSTART() @decl inherit CBC::State
DOCEND() static int f_pcbc_state_inh_cbc_state_crypt_fun_num = -1; EXTRA { low_inherit(Nettle_BlockCipher_cq__CBC_State_program, 0, f_pcbc_inh_cbc_state_program_fun_num, 42 + 1, 0, NULL);
pike.git/src/post_modules/Nettle/cipher.cmod:1498:
apply(cbc_state->object, "name", 0); push_constant_text(")"); f_add(3); } /*! @decl string(0..255) crypt(string(0..255) data) *! *! Encrypt/decrypt @[data] and return the result. @[data] must *! be an integral number of blocks. *!
-
*! Neither the input
or
output data is
not
automatically memory
+
*! Neither the input
nor
the
output data is automatically memory
*! scrubbed, unless @[String.secure] has been called on the data. */ PIKEFUN string(0..255) crypt(string(0..255) data) { struct Nettle_BlockCipher_cq__CBC_State_struct *cbc_state = get_inherited_storage(1, Nettle_BlockCipher_cq__CBC_State_program); struct pike_string *propagated; ONERROR uwp; int block_size = cbc_state->block_size;