CatapultServer  v0.5.0.1 (Elephant)
SecureZero.cpp File Reference
Include dependency graph for SecureZero.cpp:

Namespaces

 catapult
 
 catapult::crypto
 

Macros

#define CATAPULT_ZEROMEM(PTR, SIZE)
 

Functions

void catapult::crypto::SecureZero (Key &key)
 Securely zeros out the memory backing the specified key. More...
 
void catapult::crypto::SecureZero (uint8_t *pData, size_t dataSize)
 Securely zeros out the memory backing the specified pData with size dataSize. More...
 

Macro Definition Documentation

◆ CATAPULT_ZEROMEM

#define CATAPULT_ZEROMEM (   PTR,
  SIZE 
)
Value:
do { \
volatile uint8_t* p = PTR; \
size_t n = SIZE; \
while (n--) *p++ = 0; \
} while(0)

Copyright (c) 2016-present, Jaguar0625, gimre, BloodyRookie, Tech Bureau, Corp. All rights reserved.

This file is part of Catapult.

Catapult is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Catapult is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Catapult. If not, see http://www.gnu.org/licenses/.