mirror of https://gerrit.osmocom.org/libosmocore
comp128: mark ki and srand as 'const' input parameters
This commit is contained in:
parent
75524cbabd
commit
39a287db74
|
@ -16,7 +16,7 @@
|
|||
* sres : uint8_t [4]
|
||||
* kc : uint8_t [8]
|
||||
*/
|
||||
void comp128(uint8_t *ki, uint8_t *srand, uint8_t *sres, uint8_t *kc);
|
||||
void comp128(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc);
|
||||
|
||||
#endif /* __COMP128_H__ */
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ _comp128_permutation(uint8_t *x, uint8_t *bits)
|
|||
}
|
||||
|
||||
void
|
||||
comp128(uint8_t *ki, uint8_t *rand, uint8_t *sres, uint8_t *kc)
|
||||
comp128(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc)
|
||||
{
|
||||
int i;
|
||||
uint8_t x[32], bits[128];
|
||||
|
|
Loading…
Reference in New Issue