-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),
- NULL
+OSSL_DISPATCH streebog256_funcs[] = {
+ { OSSL_FUNC_DIGEST_NEWCTX, (funcptr_t)STREEBOG256_newctx },
+ { OSSL_FUNC_DIGEST_FREECTX, (funcptr_t)STREEBOG_freectx },
+ { OSSL_FUNC_DIGEST_DUPCTX, (funcptr_t)STREEBOG_dupctx },
+
+ { OSSL_FUNC_DIGEST_INIT, (funcptr_t)STREEBOG256_digest_init },
+ { OSSL_FUNC_DIGEST_UPDATE, (funcptr_t)STREEBOG_digest_update },
+ { OSSL_FUNC_DIGEST_FINAL, (funcptr_t)STREEBOG_digest_final },
+
+ { OSSL_FUNC_DIGEST_GETTABLE_PARAMS, (funcptr_t)STREEBOG_gettable_params },
+ { OSSL_FUNC_DIGEST_GET_PARAMS, (funcptr_t)STREEBOG256_digest_get_params },
+
+ { 0, NULL },