C Fundamentals
Algorithms · data structures · cryptography · systems — pure C11, zero deps
Loading...
Searching...
No Matches
xor_cipher.c File Reference
#include "xor_cipher.h"

Go to the source code of this file.

Functions

void xor_apply (unsigned char *text, size_t len, const unsigned char *key, size_t keylen)
 

Function Documentation

◆ xor_apply()

void xor_apply ( unsigned char *  text,
size_t  len,
const unsigned char *  key,
size_t  keylen 
)

XOR each byte of text[0..len) with the cyclic key.

Definition at line 7 of file xor_cipher.c.

Referenced by main().