-EVP_MD digest_gost2012_512 = {
- NID_id_GostR3411_2012_512,
- NID_undef,
- 64, /* digest size */
- EVP_MD_FLAG_PKEY_METHOD_SIGNATURE,
- gost_digest_init512,
- 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),
- NULL
+const char micalg_256[] = "gostr3411-2012-256";
+const char micalg_512[] = "gostr3411-2012-512";
+
+GOST_digest GostR3411_2012_template_digest = {
+ .input_blocksize = 64,
+ .app_datasize = sizeof(gost2012_hash_ctx),
+ .update = gost_digest_update,
+ .final = gost_digest_final,
+ .copy = gost_digest_copy,
+ .cleanup = gost_digest_cleanup,
+};
+
+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,