EVOLUTION-NINJA
Edit File: dh.h
#ifndef HEADER_DH_H #include <openssl/dh.h> #endif DH *get_dh512() { static unsigned char dh512_p[]={ 0xA6,0x2A,0xED,0x46,0x2A,0xA0,0xB3,0x3F,0xF4,0x0F,0xB8,0x13, 0xCE,0x65,0xE9,0x90,0x49,0xA9,0xA8,0xBB,0x7C,0xB0,0x08,0x2B, 0x45,0x1F,0x85,0xD1,0x17,0x84,0xF0,0x12,0x5F,0x92,0xB5,0x62, 0xFB,0xDE,0x70,0xDC,0x92,0x08,0x61,0xF8,0x2E,0xEA,0x81,0xB2, 0x50,0xA5,0x06,0x2E,0xA2,0x0C,0xC1,0x06,0x9A,0x7D,0x3F,0x8E, 0xC8,0x82,0xDF,0x5B, }; static unsigned char dh512_g[]={ 0x02, }; DH *dh; if ((dh=DH_new()) == NULL) return(NULL); dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL); dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL); if ((dh->p == NULL) || (dh->g == NULL)) { DH_free(dh); return(NULL); } return(dh); }