From d9b79f47c81c72dfe937136eacb9ad8ed73f6e92 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 23 Mar 2017 19:26:39 -0400 Subject: [PATCH] GetGroup () for GOST curve --- Gost.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gost.h b/Gost.h index 2802aac0..40b5715a 100644 --- a/Gost.h +++ b/Gost.h @@ -29,6 +29,7 @@ namespace crypto ~GOSTR3410Curve (); size_t GetKeyLen () const { return m_KeyLen; }; + const EC_GROUP * GetGroup () const { return m_Group; }; EC_POINT * MulP (const BIGNUM * n) const; bool GetXY (const EC_POINT * p, BIGNUM * x, BIGNUM * y) const; EC_POINT * CreatePoint (const BIGNUM * x, const BIGNUM * y) const; @@ -44,7 +45,7 @@ namespace crypto std::unique_ptr& GetGOSTR3410Curve (GOSTR3410ParamSet paramSet); void GOSTR3411_2012_256 (const uint8_t * buf, size_t len, uint8_t * digest); - void GOSTR3411_2012_512 (const uint8_t * buf, size_t len, uint8_t * digest); + void GOSTR3411_2012_512 (const uint8_t * buf, size_t len, uint8_t * digest); } }