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