diff options
Diffstat (limited to 'include/des.h')
-rw-r--r-- | include/des.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/des.h b/include/des.h index 27619aa..a6702be 100644 --- a/include/des.h +++ b/include/des.h @@ -27,16 +27,15 @@ des3_context; extern "C" { #endif -int des_set_key( des_context *ctx, uint8 key[8] ); -void des_encrypt( des_context *ctx, uint8 input[8], uint8 output[8] ); -void des_decrypt( des_context *ctx, uint8 input[8], uint8 output[8] ); +int des_set_key( des_context *ctx, const uint8 key[8] ); +void des_encrypt( des_context *ctx, const uint8 input[8], uint8 output[8] ); +void des_decrypt( des_context *ctx, const uint8 input[8], uint8 output[8] ); -int des3_set_2keys( des3_context *ctx, uint8 key1[8], uint8 key2[8] ); -int des3_set_3keys( des3_context *ctx, uint8 key1[8], uint8 key2[8], - uint8 key3[8] ); +int des3_set_2keys( des3_context *ctx, const uint8 key1[8], const uint8 key2[8] ); +int des3_set_3keys( des3_context *ctx, const uint8 key1[8], const uint8 key2[8], const uint8 key3[8] ); -void des3_encrypt( des3_context *ctx, uint8 input[8], uint8 output[8] ); -void des3_decrypt( des3_context *ctx, uint8 input[8], uint8 output[8] ); +void des3_encrypt( des3_context *ctx, const uint8 input[8], uint8 output[8] ); +void des3_decrypt( des3_context *ctx, const uint8 input[8], uint8 output[8] ); #ifdef __cplusplus } |