ALL: use const modifiers on parameters where possible

This commit is contained in:
2014-06-01 20:41:29 +02:00
parent 9b8b7e9129
commit a265a89a0d
10 changed files with 89 additions and 87 deletions

View File

@@ -64,11 +64,11 @@
*/
bool
ntru_encrypt_poly(
fmpz_poly_t msg_tern,
fmpz_poly_t pub_key,
fmpz_poly_t rnd,
const fmpz_poly_t msg_tern,
const fmpz_poly_t pub_key,
const fmpz_poly_t rnd,
fmpz_poly_t out,
ntru_context *ctx);
const ntru_context *ctx);
/**
* Encrypt a message in the form of a null-terminated char array and
@@ -83,10 +83,10 @@ ntru_encrypt_poly(
*/
string *
ntru_encrypt_string(
string *msg,
fmpz_poly_t pub_key,
fmpz_poly_t rnd,
ntru_context *ctx);
const string *msg,
const fmpz_poly_t pub_key,
const fmpz_poly_t rnd,
const ntru_context *ctx);
#endif /* PQC_ENCRYPT_H */