Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RC4(3)			   Library Functions Manual			RC4(3)

NAME
       setupRC4state, rc4, rc4skip, rc4back  - alleged rc4 encryption

SYNOPSIS
       #include	<u.h>
       #include	<libc.h>
       #include	<mp.h>
       #include	<libsec.h>

       void setupRC4state(RC4state *s, uchar *seed, int	slen)

       void rc4(RC4state *s, uchar *data, int dlen)

       void rc4skip(RC4state *s, int nbytes)

       void rc4back(RC4state *s, int nbytes)

DESCRIPTION
       This  is	 an  algorithm alleged to be Rivest's RC4 encryption function.
       It is a pseudo-random number generator with a 256 byte state and	a long
       cycle.  The input buffer	is XOR'd with the output of the	generator both
       to encrypt and to decrypt.  The seed, entered using setupRC4state,  can
       be  any	length.	 The generator can be run forward using	rc4, skip over
       bytes using rc4skip to account lost transmissions, or run backwards us-
       ing  rc4back to cover retransmitted data.  The RC4state structure keeps
       track of	the algorithm.

SOURCE
       /src/libsec

SEE ALSO
									RC4(3)

NAME | SYNOPSIS | DESCRIPTION | SOURCE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=rc4&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help