made Encrypt const

This commit is contained in:
orignal 2015-04-07 14:40:36 -04:00
parent 634976cdde
commit 3a26383c4d
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ namespace crypto
b1 = a_exp_b_mod_c (y, k, elgp);
}
void Encrypt (const uint8_t * data, int len, uint8_t * encrypted, bool zeroPadding = false)
void Encrypt (const uint8_t * data, int len, uint8_t * encrypted, bool zeroPadding = false) const
{
// calculate b = b1*m mod p
uint8_t m[255];