mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
cleanup
This commit is contained in:
parent
b66431bc29
commit
91d0cbe892
1 changed files with 2 additions and 10 deletions
|
@ -92,16 +92,8 @@ static const uint64_t K[80] = {
|
||||||
0x4CC5D4BECB3E42B6ULL, 0x597F299CFC657E2AULL, 0x5FCB6FAB3AD6FAECULL, 0x6C44198C4A475817ULL
|
0x4CC5D4BECB3E42B6ULL, 0x597F299CFC657E2AULL, 0x5FCB6FAB3AD6FAECULL, 0x6C44198C4A475817ULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void sha512_memcpy(uint8_t *src, uint8_t *dst, uint32_t size)
|
#define sha512_memcpy(s,d,l) memcpy((d),(s),(l))
|
||||||
{
|
#define sha512_memclr(d,l) memset((d),0,(l))
|
||||||
uint32_t i = 0;
|
|
||||||
for (;i < size;i++) { *dst++ = *src++; }
|
|
||||||
}
|
|
||||||
static inline void sha512_memclr(uint8_t *dst, uint32_t size)
|
|
||||||
{
|
|
||||||
uint32_t i = 0;
|
|
||||||
for (;i < size;i++) { *dst++ = 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void sha512_init_512(sha512_ctx_t *sha512_ctx, uint8_t *payload_addr, unsigned long payload_len)
|
static inline void sha512_init_512(sha512_ctx_t *sha512_ctx, uint8_t *payload_addr, unsigned long payload_len)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue