X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_crypt.c;h=23a99e4bb5ce6b4a3de4b8cfa1280f4b79c243a7;hb=0fd84c8144c5291fc3b1887204e571e731959a0b;hp=d1e8113b4159fb63d37d4d4d511a5bf23b6e20e1;hpb=b13c96e1cb59c1f8eebb981d55df83181f7faef6;p=openssl-gost%2Fengine.git diff --git a/gost_crypt.c b/gost_crypt.c index d1e8113..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_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_gost_mac_12, +#ifdef NID_gost_mac_12 + NID_gost_mac_12 +#else + NID_undef +#endif + , NID_undef, 4, 0, @@ -188,7 +203,7 @@ struct gost_cipher_info gost_cipher_list[] = { 1}, {NID_id_Gost28147_89_CryptoPro_D_ParamSet, &Gost28147_CryptoProParamSetD, 1}, - {NID_id_tc26_gost_28147_param_Z, &Gost28147_TC26ParamSetZ, 1}, + {NID_undef/*,NID_id_tc26_gost_28147_param_Z*/, &Gost28147_TC26ParamSetZ, 1}, {NID_id_Gost28147_89_TestParamSet, &Gost28147_TestParamSet, 1}, {NID_undef, NULL, 0} };