cryptopals_c

cryptopals crypto challenges solutions in pure c
git clone git://git.superpozycja.net/cryptopals_c
Log | Files | Refs | README

analysis.h (372B)


      1 #ifndef ANALYSIS_H
      2 #define ANALYSIS_H
      3 
      4 #include <ctype.h>
      5 #include <string.h>
      6 
      7 #include "ba.h"
      8 
      9 /* define common cryptanalytic functionality */
     10 
     11 unsigned long score_letter(char c);
     12 unsigned long score_english(ba *text);
     13 ba *decrypt_scxor(ba *ct);
     14 void encrypt_rkxor(ba *pt, ba *key);
     15 float index_of_coincidence(ba *ct);
     16 unsigned int guess_vigenere_keylen(ba *ct);
     17 
     18 #endif