search for: rc4_getbytes

Displaying 1 result from an estimated 1 matches for "rc4_getbytes".

2000 Jul 17
0
patch for getting 2.1.1p4 to compile on SunOS 4
...oc.h" #include "ssh.h" #include "bsd-misc.h" -#include "entropy.h" #include <openssl/rand.h> -#ifndef HAVE_ARC4RANDOM - -typedef struct -{ - unsigned int s[256]; - int i; - int j; -} rc4_t; - -void rc4_key(rc4_t *r, unsigned char *key, int len); -void rc4_getbytes(rc4_t *r, unsigned char *buffer, int len); - -static rc4_t *rc4 = NULL; - -void rc4_key(rc4_t *r, unsigned char *key, int len) -{ - int t; - - for(r->i = 0; r->i < 256; r->i++) - r->s[r->i] = r->i; - - r->j = 0; - for(r->i = 0; r->i < 256; r->i++) - { - r->...