python/bls_ZZZ.py.in [28:54]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - There is also an example usage program in this file. """ import cffi import platform import os ffi = cffi.FFI() ffi.cdef(""" typedef struct { unsigned int ira[21]; /* random number... */ int rndptr; /* ...array & pointer */ unsigned int borrow; int pool_ptr; char pool[32]; /* random pool */ } csprng; typedef struct { int len; int max; char *val; } octet; extern void CREATE_CSPRNG(csprng *R,octet *S); extern void KILL_CSPRNG(csprng *R); extern void OCT_clear(octet *O); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - python/mpin_ZZZ.py.in [28:55]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - There is also an example usage program in this file. """ import cffi import platform import os ffi = cffi.FFI() ffi.cdef(""" typedef struct { unsigned int ira[21]; /* random number... */ int rndptr; /* ...array & pointer */ unsigned int borrow; int pool_ptr; char pool[32]; /* random pool */ } csprng; typedef struct { int len; int max; char *val; } octet; extern void CREATE_CSPRNG(csprng *R,octet *S); extern void KILL_CSPRNG(csprng *R); extern void OCT_clear(octet *O); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -