
Untitled
By: a guest on
Jun 20th, 2012 | syntax:
None | size: 0.48 KB | hits: 11 | expires: Never
#include <stdio.h>
#include <string.h>
#include <openssl/des.h>
/* sudo aptitude install libcurl4-openssl-dev
*/
/* http://linux.die.net/man/3/des
*/
int main()
{
unsigned char key[8];
key[0] = 0xbd;
key[1] = 0xf9;
key[2] = 0x26;
key[3] = 0x01;
key[4] = 0x46;
key[5] = 0xb0;
key[6] = 0xb4;
key[7] = 0xd5;
int i = DES_is_weak_key(key);
/* DES_key_schedule schedule;*/
/* int i = DES_set_key_checked(key, *schedule);*/
printf("%d",i);
return 0;
}