stream.c 251 B

12345678910111213141516
  1. /*
  2. version 20110506
  3. D. J. Bernstein
  4. Public domain.
  5. */
  6. #include "crypto_stream.h"
  7. int crypto_stream(
  8. unsigned char *c,unsigned long long clen,
  9. const unsigned char *n,
  10. const unsigned char *k
  11. )
  12. {
  13. return crypto_stream_xor(c,0,clen,n,k);
  14. }