aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-10 12:09:31 +0000
committerlloyd <[email protected]>2006-08-10 12:09:31 +0000
commit49590f09ec5054b992eed4afede903a4976e00d7 (patch)
tree43d634b4c5fae53068efd3d39aaf9f08928ff319 /src
parentd6c0c1e27864ee6704186724fc64cd5ad2c121dc (diff)
Make the ByteReader class in CAST_128::key_schedule only manipulate
const pointers, as it doesn't actually need write access to anything.
Diffstat (limited to 'src')
-rw-r--r--src/cast128.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cast128.cpp b/src/cast128.cpp
index 02f50fb48..bc5e47ca0 100644
--- a/src/cast128.cpp
+++ b/src/cast128.cpp
@@ -130,9 +130,9 @@ void CAST_128::key_schedule(u32bit K[16], u32bit X[4])
{
public:
byte operator()(u32bit i) { return (X[i/4] >> (8*(3 - (i%4)))); }
- ByteReader(u32bit* x) : X(x) {}
+ ByteReader(const u32bit* x) : X(x) {}
private:
- u32bit* X;
+ const u32bit* X;
};
SecureBuffer<u32bit, 4> Z;