pchero on December 1st, 2009

#include <stdio.h>#include <string.h>#include <openssl/bio.h>#include <openssl/err.h>#include <openssl/bn.h>#include <openssl/dh.h>#include <openssl/rand.h>#include <openssl/pem.h>   #define IN_FILE “./plain.txt”   // plain file#define OUT_FILE “./encrypt.txt”        // cipher file   unsigned char* readFile(char *file, int *readLen);unsigned char *readFileBio(BIO *fileBIO, int *readLen);unsigned char *addString(unsigned char *destString, int destLen, const unsigned char *addString, int addLen);   int main(int argc, char* argv[]){  […]

Continue reading about OpenSSL – 데이터 암호화

pchero on December 1st, 2009

    #include <stdio.h> #include <stdio.h>#include <string.h>#include <openssl/evp.h>#include <openssl/objects.h>#include <openssl/rand.h>   int main(int argc, char* argv[]){        int i;           // salt bufer length = 8        unsigned char salt[8];        // EVP_CIPHER = Cipher structure        const EVP_CIPHER *cipher = NULL;    […]

Continue reading about OpenSSL- 키와 IV 생성 프로그램

pchero on December 1st, 2009

#include <stdio.h>#include <openssl/err.h>#include <openssl/rand.h> int main(int argc, char* argv[]){        int i;        int retVal = 0;        // 랜덤 수의 길이는 64로 한다.         int length = 64;        // PRNG에 공급할 seed 생성        RAND_status();        // 생성할 […]

Continue reading about OpenSSL-RANDOM 함수 사용하기

pchero on November 25th, 2009

//      funcPtr.c//      //      Copyright 2009 Kim Sung-tae <pchero@MyNote>//      //      This program is free software; you can redistribute it and/or modify//      it under the terms of the GNU General Public License as published by//      the Free Software Foundation; either version 2 of […]

Continue reading about 함수 이름을 포인터에 할당하여 사용하기

글을 쓰고 난후 온몸의 수분이 빠져나가는듯 했고 어제는 종일토록 몸져 누워 있어야만 했습니다. 열다섯살때부터 지금까지의 고생했고 때론 치열했던 삶을 몇시간만에 글로 써내려간다는것이 쉽지 않았을수도 있고 글을 쓰면서 과거의 일들이 하나둘 생각나면서 눈물을 뚝뚝 흘려가면서 썼기에 몸이 아팠는지도 모릅니다.   벼랑끝까지 몰리고 몹시도 힘들때는 오히려 독한 마음 때문인지 눈물조차 나오지 않았는데 언제부터 작은 일에도 눈시울을 적시곤 […]

Continue reading about 반지하에서 꿈을 이룬사람입니다. 정말 감사합니다.