[oss-gost-crypto] Тестовые вектора для gost-engine
Vitaly Chikunov
vt at altlinux.org
Mon Jan 21 07:04:38 MSK 2019
Hi,
JFYI. Я пока предварительно сделал тесты параметров для gost-engine:
https://github.com/vt-alt/gost-engine/commit/e66833fdbb09e029a3eeb9155f0
Все тестовые вектора которые выдало КриптоПро (с пометкой cp) проходят тесты
на проверку подписи успешно.
Тестовые сертификаты, которые выдал Инфотекс (с пометкой it) пока не тестирую,
но половина их них даже не загружается (запарывается на X509_get0_pubkey), что,
в общем, ожидаемо.
ps. Пока тест выглядит так:
~/src/gost-engine/1.1.2-dev (test_params)$ bin/test_params
Test id-GostR3410-2001-CryptoPro-A-ParamSet (cp):
EVP_PKEY_verify API correct
EVP_Verify API correct
Test id-GostR3410-2001-CryptoPro-B-ParamSet (cp):
EVP_PKEY_verify API correct
EVP_Verify API correct
Test id-GostR3410-2001-CryptoPro-C-ParamSet (cp):
EVP_PKEY_verify API correct
EVP_Verify API correct
Test id-tc26-gost-3410-2012-256-paramSetA (cp):
EVP_PKEY_verify API correct
EVP_Verify API correct
Test id-tc26-gost-3410-2012-512-paramSetA (cp):
EVP_PKEY_verify API correct
EVP_Verify API correct
Test id-tc26-gost-3410-2012-512-paramSetB (cp):
EVP_PKEY_verify API correct
EVP_Verify API correct
Test id-tc26-gost-3410-2012-512-paramSetC (cp):
EVP_PKEY_verify API correct
EVP_Verify API correct
Test short_cp_a_cer (it):
algo gost2012_256
curve id-GostR3410-2001-CryptoPro-A-ParamSet
Test short_cp_b_cer (it):
algo gost2012_256
curve id-GostR3410-2001-CryptoPro-B-ParamSet
Test short_cp_c_cer (it):
algo gost2012_256
curve id-GostR3410-2001-CryptoPro-C-ParamSet
Test short_tc_a_cer (it):
algo gost2012_256
curve id-tc26-gost-3410-2012-256-paramSetA
140161183687936:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:406:Field=hash_params, Type=GOST_KEY_PARAMS
140161183687936:error:80064065:lib(128):decode_gost_algor_params:bad pkey parameters format:/home/vt/src/gost-engine/gost_ameth.c:158:
140161183687936:error:0B09407D:x509 certificate routines:x509_pubkey_decode:public key decode error:crypto/x509/x_pubkey.c:124:
Error at /home/vt/src/gost-engine/test_params.c:909 pk = X509_get0_pubkey(x)
Test short_tc_b_cer (it):
algo gost2012_256
curve id-tc26-gost-3410-2012-256-paramSetB
140161183687936:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:406:Field=hash_params, Type=GOST_KEY_PARAMS
140161183687936:error:80064065:lib(128):decode_gost_algor_params:bad pkey parameters format:/home/vt/src/gost-engine/gost_ameth.c:158:
140161183687936:error:0B09407D:x509 certificate routines:x509_pubkey_decode:public key decode error:crypto/x509/x_pubkey.c:124:
Error at /home/vt/src/gost-engine/test_params.c:909 pk = X509_get0_pubkey(x)
Test short_tc_c_cer (it):
algo gost2012_256
curve id-tc26-gost-3410-2012-256-paramSetC
140161183687936:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:406:Field=hash_params, Type=GOST_KEY_PARAMS
140161183687936:error:80064065:lib(128):decode_gost_algor_params:bad pkey parameters format:/home/vt/src/gost-engine/gost_ameth.c:158:
140161183687936:error:0B09407D:x509 certificate routines:x509_pubkey_decode:public key decode error:crypto/x509/x_pubkey.c:124:
Error at /home/vt/src/gost-engine/test_params.c:909 pk = X509_get0_pubkey(x)
Test short_tc_d_cer (it):
algo gost2012_256
curve id-tc26-gost-3410-2012-256-paramSetD
140161183687936:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:406:Field=hash_params, Type=GOST_KEY_PARAMS
140161183687936:error:80064065:lib(128):decode_gost_algor_params:bad pkey parameters format:/home/vt/src/gost-engine/gost_ameth.c:158:
140161183687936:error:0B09407D:x509 certificate routines:x509_pubkey_decode:public key decode error:crypto/x509/x_pubkey.c:124:
Error at /home/vt/src/gost-engine/test_params.c:909 pk = X509_get0_pubkey(x)
Test long_tc_a_cer (it):
algo gost2012_512
curve id-tc26-gost-3410-2012-512-paramSetA
140161183687936:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:406:Field=hash_params, Type=GOST_KEY_PARAMS
140161183687936:error:80064065:lib(128):decode_gost_algor_params:bad pkey parameters format:/home/vt/src/gost-engine/gost_ameth.c:158:
140161183687936:error:0B09407D:x509 certificate routines:x509_pubkey_decode:public key decode error:crypto/x509/x_pubkey.c:124:
Error at /home/vt/src/gost-engine/test_params.c:909 pk = X509_get0_pubkey(x)
Test long_tc_b_cer (it):
algo gost2012_512
curve id-tc26-gost-3410-2012-512-paramSetB
140161183687936:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:406:Field=hash_params, Type=GOST_KEY_PARAMS
140161183687936:error:80064065:lib(128):decode_gost_algor_params:bad pkey parameters format:/home/vt/src/gost-engine/gost_ameth.c:158:
140161183687936:error:0B09407D:x509 certificate routines:x509_pubkey_decode:public key decode error:crypto/x509/x_pubkey.c:124:
Error at /home/vt/src/gost-engine/test_params.c:909 pk = X509_get0_pubkey(x)
Test long_tc_c_cer (it):
algo gost2012_512
curve id-tc26-gost-3410-2012-512-paramSetC
140161183687936:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:406:Field=hash_params, Type=GOST_KEY_PARAMS
140161183687936:error:80064065:lib(128):decode_gost_algor_params:bad pkey parameters format:/home/vt/src/gost-engine/gost_ameth.c:158:
140161183687936:error:0B09407D:x509 certificate routines:x509_pubkey_decode:public key decode error:crypto/x509/x_pubkey.c:124:
Error at /home/vt/src/gost-engine/test_params.c:909 pk = X509_get0_pubkey(x)
More information about the oss-gost-crypto
mailing list