diff options
author | lloyd <[email protected]> | 2015-02-06 01:55:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-02-06 01:55:59 +0000 |
commit | 1c198a86b3461adbc759a3a423d302c763255cd4 (patch) | |
tree | fd84f1642368f2c9360562f8520df8187df84dc7 /src/lib/pubkey/mce/goppa_code.cpp | |
parent | cb8606277d4b2f5ef1cf33e3d24b982ce1286373 (diff) |
Remove static casts
Diffstat (limited to 'src/lib/pubkey/mce/goppa_code.cpp')
-rw-r--r-- | src/lib/pubkey/mce/goppa_code.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/goppa_code.cpp b/src/lib/pubkey/mce/goppa_code.cpp index 59e8ab97d..6f4b40226 100644 --- a/src/lib/pubkey/mce/goppa_code.cpp +++ b/src/lib/pubkey/mce/goppa_code.cpp @@ -141,7 +141,7 @@ secure_vector<byte> mceliece_decrypt( u32bit t = key.get_goppa_polyn().get_degree(); polyn_gf2m syndrome_polyn(key.get_goppa_polyn().get_sp_field()); // init as zero polyn const unsigned unused_pt_bits = dimension % 8; - const unsigned char unused_pt_bits_mask = (1 << unused_pt_bits) - 1; + const byte unused_pt_bits_mask = (1 << unused_pt_bits) - 1; if(ciphertext_len != (key.get_code_length()+7)/8) { |