Decorate serpent_encrypt, serpent_decrypt and serpent_makekey with
appropriate consts in their arguments.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
#include "serpentsboxes.h"
void serpent_makekey(struct keyInstance *key, int keyLen,
#include "serpentsboxes.h"
void serpent_makekey(struct keyInstance *key, int keyLen,
+ const uint8_t *keyMaterial)
}
void serpent_encrypt(struct keyInstance *key,
}
void serpent_encrypt(struct keyInstance *key,
+ const uint8_t plaintext[16],
uint8_t ciphertext[16])
{
register uint32_t x0, x1, x2, x3;
uint8_t ciphertext[16])
{
register uint32_t x0, x1, x2, x3;
}
void serpent_decrypt(struct keyInstance *key,
}
void serpent_decrypt(struct keyInstance *key,
- uint8_t ciphertext[16],
+ const uint8_t ciphertext[16],
uint8_t plaintext[16])
{
register uint32_t x0, x1, x2, x3;
uint8_t plaintext[16])
{
register uint32_t x0, x1, x2, x3;
/* Function protoypes */
void serpent_makekey(struct keyInstance *key, int keyLen,
/* Function protoypes */
void serpent_makekey(struct keyInstance *key, int keyLen,
+ const uint8_t *keyMaterial);
-void serpent_encrypt(struct keyInstance *key, uint8_t plaintext[16],
+void serpent_encrypt(struct keyInstance *key, const uint8_t plaintext[16],
-void serpent_decrypt(struct keyInstance *key, uint8_t ciphertext[16],
+void serpent_decrypt(struct keyInstance *key, const uint8_t ciphertext[16],
uint8_t plaintext[16]);
#endif /* serpent_h */
uint8_t plaintext[16]);
#endif /* serpent_h */