aboutsummaryrefslogtreecommitdiffstats
path: root/misc/python
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-31 21:41:25 +0000
committerlloyd <[email protected]>2006-08-31 21:41:25 +0000
commit69ea090a366cbdf8a5c3ef30f95fd0d9923ac110 (patch)
tree22056efb90a0f8fcc00991e3844dc5b35db49c3a /misc/python
parentc69e0026cfc84427514827313113cfa7c32cb69f (diff)
Remove the object() accessors, since those objects might not exist if
an algorithm were implemented in pure Python.
Diffstat (limited to 'misc/python')
-rw-r--r--misc/python/src/algos.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/misc/python/src/algos.cpp b/misc/python/src/algos.cpp
index 09acf1d74..ed00c99d9 100644
--- a/misc/python/src/algos.cpp
+++ b/misc/python/src/algos.cpp
@@ -29,8 +29,6 @@ std::string process(const std::string& in, BlockCipher* cipher,
class Py_BlockCipher
{
public:
- BlockCipher* object() { return cipher; }
-
u32bit block_size() const { return cipher->BLOCK_SIZE; }
u32bit keylength_min() const { return cipher->MINIMUM_KEYLENGTH; }
u32bit keylength_max() const { return cipher->MAXIMUM_KEYLENGTH; }
@@ -67,8 +65,6 @@ class Py_BlockCipher
class Py_StreamCipher
{
public:
- StreamCipher* object() { return cipher; }
-
u32bit keylength_min() const { return cipher->MINIMUM_KEYLENGTH; }
u32bit keylength_max() const { return cipher->MAXIMUM_KEYLENGTH; }
u32bit keylength_mod() const { return cipher->KEYLENGTH_MULTIPLE; }
@@ -101,8 +97,6 @@ class Py_StreamCipher
class Py_HashFunction
{
public:
- HashFunction* object() { return hash; }
-
u32bit output_length() const { return hash->OUTPUT_LENGTH; }
std::string name() const { return hash->name(); }
void clear() throw() { hash->clear(); }
@@ -127,8 +121,6 @@ class Py_HashFunction
class Py_MAC
{
public:
- MessageAuthenticationCode* object() { return mac; }
-
u32bit output_length() const { return mac->OUTPUT_LENGTH; }
u32bit keylength_min() const { return mac->MINIMUM_KEYLENGTH; }
u32bit keylength_max() const { return mac->MAXIMUM_KEYLENGTH; }