-EVP_MD digest_gost2012_256 = {
- NID_id_GostR3411_2012_256,
- NID_undef,
- 32, /* digest size */
- EVP_MD_FLAG_PKEY_METHOD_SIGNATURE,
- gost_digest_init256,
- gost_digest_update,
- gost_digest_final,
- gost_digest_copy,
- gost_digest_cleanup,
- NULL,
- NULL,
- {NID_undef, NID_undef, 0, 0, 0},
- 64, /* block size */
- sizeof(gost2012_hash_ctx),
- gost_digest_ctrl_256
+GOST_digest GostR3411_2012_256_digest = {
+ .nid = NID_id_GostR3411_2012_256,
+ .alias = "streebog256",
+ .template = &GostR3411_2012_template_digest,
+ .result_size = 32,
+ .init = gost_digest_init256,
+ .ctrl = gost_digest_ctrl_256,
+};
+
+GOST_digest GostR3411_2012_512_digest = {
+ .nid = NID_id_GostR3411_2012_512,
+ .alias = "streebog512",
+ .template = &GostR3411_2012_template_digest,
+ .result_size = 64,
+ .init = gost_digest_init512,
+ .ctrl = gost_digest_ctrl_512,