X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_crypt.c;h=23a99e4bb5ce6b4a3de4b8cfa1280f4b79c243a7;hb=0fd84c8144c5291fc3b1887204e571e731959a0b;hp=0c6592aba7ebd3e493fb8080a062821467438799;hpb=9dec172acb29d4aa16120784b1587edd7f46648c;p=openssl-gost%2Fengine.git diff --git a/gost_crypt.c b/gost_crypt.c index 0c6592a..23a99e4 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -65,7 +65,12 @@ EVP_CIPHER cipher_gost = { EVP_CIPHER cipher_gost_cbc = { - NID_gost89_cbc, +#ifdef NID_gost89_cbc + NID_gost89_cbc +#else + NID_undef +#endif + , 8,/*block_size*/ 32,/*key_size*/ 8,/*iv_len */ @@ -99,7 +104,12 @@ EVP_CIPHER cipher_gost_cpacnt = { }; EVP_CIPHER cipher_gost_cpcnt_12 = { - NID_undef /* NID_gost89_cnt_12 */, +#ifdef NID_gost89_cnt_12 + NID_gost89_cnt_12 +#else + NID_undef +#endif + , 1, /* block_size */ 32, /* key_size */ 8, /* iv_len */ @@ -148,7 +158,12 @@ EVP_MD imit_gost_cpa = { }; EVP_MD imit_gost_cp_12 = { - NID_undef, /* NID_gost_mac_12,*/ +#ifdef NID_gost_mac_12 + NID_gost_mac_12 +#else + NID_undef +#endif + , NID_undef, 4, 0,