openssh에서 제공하는 blowfish 알고리즘을 이용해서 데이터를 암호화 합니다. blowfish는 데이터의 암호화와 복호화를 위해서 동일한 키를 사용하는 대칭 알고리즘을 사용하고 있습니다.
암호화와 복호화를 위해 다른키를 사용하는 RSA알고리즘에 비해서 사용하기가 간단하고, 더 빠른 수행능력을 보여준다는 장점을 가집니다.
사용방법
int keygen(struct mykey *key);
int cryptinit();
int encrypt(unsigned char *data, size_t n,unsigned char *buf, struct mykey *lkey)
int decrypt(char *cryptmessage, unsigned char *outbuf, struct mykey *lkey, size_t n);
keygen은 암/복호화에 사용될 키를 생성한다. 만들어진 키는 key에 복사된다. key는 다음과 같이 정의되어있다.
설명
사용방법
코드
참고문헌
변경사항
2004/03/30
Recent Posts
Archive Posts
Tags