cryptopals_c

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

commit dcd228063b417e854760e12646a346c410946b80
parent 84914a7391a804af090b11e92cdaee1ef160000e
Author: anna <anna@brokenlove.online>
Date:   Sun,  1 Sep 2024 16:38:31 +0200

fix so this compiles - i will use a homebrew implementation of AES
anyway

Diffstat:
Msrc/s1/c7.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/s1/c7.c b/src/s1/c7.c @@ -2,10 +2,6 @@ #include <stdlib.h> #include <string.h> #include <ba.h> -#include <openssl/aes.h> -#include <openssl/conf.h> -#include <openssl/evp.h> -#include <openssl/err.h> const char b64table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; @@ -60,6 +56,7 @@ int base64_to_hex(char **hex, char *b64) (*hex)[len-1] = '\0'; } +/* int decrypt(unsigned char *ct, int ct_len, unsigned char *key, unsigned char *pt) { @@ -85,6 +82,7 @@ int decrypt(unsigned char *ct, int ct_len, unsigned char *key, EVP_CIPHER_CTX_free(ctx); return pt_len; } +*/ int main(int argc, char *argv[]) { @@ -112,7 +110,7 @@ int main(int argc, char *argv[]) pt = (char *) malloc(sizeof(char) * strlen(hex) + 1); - pt_len = decrypt(hex, strlen(hex), key, pt); + //pt_len = decrypt(hex, strlen(hex), key, pt); /* Add a NULL terminator. We are expecting printable text */ //pt[pt_len] = '\0';