pike.git
/
src
/
post_modules
/
Nettle
/
hogweed.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hogweed.cmod:15:
DECLARATIONS #include "nettle.h" #include <nettle/dsa.h> #include <nettle/rsa.h> #include <gmp.h> #include "bignum.h"
-
void random_func_wrapper(void *f,
size_t
num, uint8_t *out)
+
/*! @module Nettle
+
*/
+
+
void random_func_wrapper(void *f,
unsigned
num, uint8_t *out)
{ push_int(num); apply_svalue((struct svalue *)f, 1); if(TYPEOF(Pike_sp[-1])!=T_STRING) Pike_error("Random function did not return string value.\n"); if(Pike_sp[-1].u.string->len != (unsigned int)num) Pike_error("Random function did not return correct number of bytes.\n"); memcpy(out, Pike_sp[-1].u.string->str, num); pop_stack(); }
pike.git/src/post_modules/Nettle/hogweed.cmod:359:
f_aggregate(2); stack_pop_n_elems_keep_top(args); } } /*! @endclass ECC_Curve */ #endif /* HAVE_NETTLE_ECDSA_H */
+
/*! @endmodule Nettle
+
*/
+
void hogweed_init(void) { #ifdef HAVE_NETTLE_ECDSA_H struct svalue c; #endif INIT; } void hogweed_exit(void) { EXIT; } #endif