1.2-legacy
Kevin Hester 2021-02-23 16:56:28 +08:00
rodzic 4b07f9e160
commit ada05a1374
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -27,13 +27,13 @@ class CrossPlatformCryptoEngine : public CryptoEngine
virtual void setKey(const CryptoKey &k)
{
CryptoEngine::setKey(k);
DEBUG_MSG("Installing AES%d key!\n", numBytes * 8);
DEBUG_MSG("Installing AES%d key!\n", key.length * 8);
if (ctr) {
delete ctr;
ctr = NULL;
}
if (numBytes != 0) {
if (numBytes == 16)
if (key.length != 0) {
if (key.length == 16)
ctr = new CTR<AES128>();
else
ctr = new CTR<AES256>();