aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/gost_28147/gost_28147.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-04-01 14:03:44 +0000
committerlloyd <[email protected]>2009-04-01 14:03:44 +0000
commit2b29873755132035d2d600dc4e2b42ef42691c16 (patch)
tree2745f73bcaf912dd5335dd27a8dfebbef8ebff08 /src/block/gost_28147/gost_28147.h
parentaf758d874a01db6c2c20d9cbcbe508e871ace3a2 (diff)
Hide the declarations of the GOST sboxes inside the Param constructor since
that is the only code that needs to see them. Record the name in the Param object.
Diffstat (limited to 'src/block/gost_28147/gost_28147.h')
-rw-r--r--src/block/gost_28147/gost_28147.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/block/gost_28147/gost_28147.h b/src/block/gost_28147/gost_28147.h
index 98eaba870..96d24c669 100644
--- a/src/block/gost_28147/gost_28147.h
+++ b/src/block/gost_28147/gost_28147.h
@@ -25,6 +25,8 @@ class GOST_28147_89_Params
public:
byte sbox_entry(u32bit row, u32bit col) const;
+ std::string param_name() const { return name; }
+
/**
* Default GOST parameters are the ones given in GOST R 34.11 for
* testing purposes; these sboxes are also used by Crypto++, and,
@@ -32,10 +34,8 @@ class GOST_28147_89_Params
*/
GOST_28147_89_Params(const std::string& name = "R3411_94_TestParam");
private:
- static const byte GOST_R_3411_TEST_PARAMS[64];
- static const byte GOST_R_3411_CRYPTOPRO_PARAMS[64];
-
const byte* sboxes;
+ std::string name;
};
/**