|
|
@@ -98,7 +98,7 @@ void TokenMatrix::Load(std::ifstream& F) { |
|
|
|
|
|
|
|
void TokenMatrix::Validate(std::string& SecurityKey) { // Decrypts and validates the matrix. |
|
|
|
|
|
|
|
cd::MANGLER ValidationChecker; // Create a mangler engine for validation. |
|
|
|
cd::Mangler ValidationChecker; // Create a mangler engine for validation. |
|
|
|
|
|
|
|
// In order to do the validation we must look at the token matrix as a sequence of bytes. |
|
|
|
// We will be decrypting the first and last SecurtySegmentSize of this sequence and then |
|
|
@@ -167,7 +167,7 @@ void TokenMatrix::Validate(std::string& SecurityKey) { |
|
|
|
|
|
|
|
void TokenMatrix::Verify(std::string& SecurityKey) { // Builds and verifies a file digest. |
|
|
|
|
|
|
|
cd::MANGLER DigestChecker; // Create a mangler for the digest. |
|
|
|
cd::Mangler DigestChecker; // Create a mangler for the digest. |
|
|
|
|
|
|
|
// Gain access to our token matrix as bytes. |
|
|
|
|