AES work... but disabled in this commit.

This commit is contained in:
Adam Ierymenko 2020-09-10 15:43:40 -04:00
parent 1ad555a071
commit e6b5f8aabd
7 changed files with 68 additions and 15 deletions

View file

@ -62,12 +62,12 @@ Peer::Peer(const RuntimeEnvironment *renv,const Identity &myIdentity,const Ident
throw ZT_EXCEPTION_INVALID_ARGUMENT;
}
uint8_t ktmp[32];
uint8_t ktmp[48];
KBKDFHMACSHA384(_key,ZT_KBKDF_LABEL_AES_GMAC_SIV_K0,0,0,ktmp);
_aesKeys[0].init(ktmp);
KBKDFHMACSHA384(_key,ZT_KBKDF_LABEL_AES_GMAC_SIV_K1,0,0,ktmp);
_aesKeys[0].init(ktmp);
Utils::burn(ktmp, 32);
Utils::burn(ktmp, 48);
}
void Peer::received(