1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 19:08:26 -06:00

Windows: Add Magma cipher (GOST-89)

This commit is contained in:
Mounir IDRASSI
2016-08-09 09:54:00 +02:00
parent 460f552a41
commit 0b2c8b09c6
11 changed files with 889 additions and 8 deletions

View File

@@ -497,7 +497,11 @@ void CipherInit2(int cipher, void* key, void* ks, int key_len)
case CAMELLIA:
CipherInit(cipher,key,ks);
break;
#if defined(CIPHER_GOST89)
case GOST89:
CipherInit(cipher,key,ks);
break;
#endif // defined(CIPHER_GOST89)
default:
/* Unknown/wrong ID */
TC_THROW_FATAL_EXCEPTION;
@@ -925,8 +929,11 @@ BOOL TestSectorBufEncryption (PCRYPTO_INFO ci)
nTestsPerformed++;
}
return (nTestsPerformed == 90);
#if defined(CIPHER_GOST89)
return (nTestsPerformed == 100);
#else
return (nTestsPerformed == 95);
#endif
}
static BOOL DoAutoTestAlgorithms (void)