CatapultServer  v0.5.0.1 (Elephant)
CryptoUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/types.h"
23 
24 namespace catapult { namespace crypto { class PrivateKey; } }
25 
26 namespace catapult { namespace crypto {
27 
29  void HashPrivateKey(const PrivateKey& privateKey, Hash512& hash);
30 }}
catapult::crypto::Keccak_512
void Keccak_512(const RawBuffer &dataBuffer, Hash512 &hash) noexcept
Calculates the 512-bit Keccak hash of dataBuffer into hash.
Definition: Hashes.cpp:93
PrivateKey.h
catapult::crypto::PrivateKey::begin
auto begin() const
Returns a const iterator to the beginning of the raw key.
Definition: PrivateKey.h:59
catapult::crypto::Sha3_512
void Sha3_512(const RawBuffer &dataBuffer, Hash512 &hash) noexcept
Calculates the 512-bit SHA3 hash of dataBuffer into hash.
Definition: Hashes.cpp:85
CryptoUtils.h
catapult::crypto::PrivateKey
Represents a private key.
Definition: PrivateKey.h:32
cppLexer.t_error
def t_error(err)
Definition: cppLexer.py:89
cppLexer.t_COMMENT_SINGLELINE
def t_COMMENT_SINGLELINE(tok)
Definition: cppLexer.py:63
catapult::crypto::PrivateKey::data
auto data() const
Returns a const pointer to the raw key.
Definition: PrivateKey.h:74
catapult::crypto::SecureZero
void SecureZero(Key &key)
Securely zeros out the memory backing the specified key.
Definition: SecureZero.cpp:42
catapult::utils::ByteArray::data
constexpr const uint8_t * data() const noexcept
Returns a const pointer to the underlying array.
Definition: ByteArray.h:70
Hashes.h
catapult::crypto::HashPrivateKey
void HashPrivateKey(const PrivateKey &privateKey, Hash512 &hash)
Calculates hash of a privateKey.
Definition: CryptoUtils.cpp:31
catapult::Key_Size
constexpr size_t Key_Size
Definition: src/catapult/types.h:32
catapult::utils::ByteArray::begin
constexpr auto begin() const noexcept
Returns a const iterator to the first byte.
Definition: ByteArray.h:91
catapult::crypto::PrivateKey::end
auto end() const
Returns a const iterator to the end of the raw key.
Definition: PrivateKey.h:64
catapult::crypto::PrivateKey::size
auto size() const
Returns the size of the key.
Definition: PrivateKey.h:69
SecureZero.h
catapult::Hash512
utils::ByteArray< Hash512_Size, Hash512_tag > Hash512
Definition: src/catapult/types.h:44
types.h
cppLexer.t_COMMENT_MULTILINE
def t_COMMENT_MULTILINE(tok)
Definition: cppLexer.py:79
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
cppLexer.t_NEWLINE
def t_NEWLINE(tok)
Definition: cppLexer.py:84