Exemplo n.º 1
0
int RC4(char *key, char *plaintext, unsigned char *ciphertext) {

    unsigned char S[N];
    KSA(key, S);

    PRGA(S, plaintext, ciphertext);

    return 0;
}
Exemplo n.º 2
0
// Metodo que encapsula todos los pasos de cifrado RC4
void RC4::Encrypt(){
	KSA();
	PRGA();
}