More selective push of AES modifications and refactoring stuff.

This commit is contained in:
Adam Ierymenko 2020-09-10 14:48:48 -04:00
parent 4cd3d0bb76
commit 1ad555a071
2 changed files with 10 additions and 5 deletions

View file

@ -272,3 +272,8 @@ void KBKDFHMACSHA384(const uint8_t key[ZT_SYMMETRIC_KEY_SIZE],const char label,c
}
} // namespace ZeroTier
// Internally re-export to included C code, which includes some fast crypto code ported in on some platforms.
// This eliminates the need to link against a third party SHA512() from this code
extern "C" void ZT_sha512internal(void *digest,const void *data,unsigned int len)
{ ZeroTier::SHA512(digest,data,len); }