params struct member shouldn't be const
This commit is contained in:
parent
623dd16dc2
commit
79ce4400dd
20
lilcrypto.h
20
lilcrypto.h
@ -51,37 +51,37 @@
|
||||
|
||||
struct lc_hmac_params {
|
||||
size_t keylen;
|
||||
const uint8_t *key;
|
||||
uint8_t *key;
|
||||
};
|
||||
|
||||
struct lc_poly1305_params {
|
||||
const uint8_t key[LC_POLY1305_KEYLEN];
|
||||
uint8_t key[LC_POLY1305_KEYLEN];
|
||||
};
|
||||
|
||||
/* Ciphers. */
|
||||
|
||||
struct lc_chacha20_params {
|
||||
const uint8_t key[LC_CHACHA20_KEYLEN];
|
||||
const uint8_t nonce[LC_CHACHA20_NONCELEN];
|
||||
uint8_t key[LC_CHACHA20_KEYLEN];
|
||||
uint8_t nonce[LC_CHACHA20_NONCELEN];
|
||||
uint32_t counter;
|
||||
};
|
||||
|
||||
struct lc_xchacha20_params {
|
||||
const uint8_t key[LC_XCHACHA20_KEYLEN];
|
||||
const uint8_t nonce[LC_XCHACHA20_NONCELEN];
|
||||
uint8_t key[LC_XCHACHA20_KEYLEN];
|
||||
uint8_t nonce[LC_XCHACHA20_NONCELEN];
|
||||
uint32_t counter;
|
||||
};
|
||||
|
||||
/* AEAD. */
|
||||
|
||||
struct lc_chacha20_poly1305_params {
|
||||
const uint8_t key[LC_CHACHA20_KEYLEN];
|
||||
const uint8_t nonce[LC_CHACHA20_NONCELEN];
|
||||
uint8_t key[LC_CHACHA20_KEYLEN];
|
||||
uint8_t nonce[LC_CHACHA20_NONCELEN];
|
||||
};
|
||||
|
||||
struct lc_xchacha20_poly1305_params {
|
||||
const uint8_t key[LC_XCHACHA20_KEYLEN];
|
||||
const uint8_t nonce[LC_XCHACHA20_NONCELEN];
|
||||
uint8_t key[LC_XCHACHA20_KEYLEN];
|
||||
uint8_t nonce[LC_XCHACHA20_NONCELEN];
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user