Audacity 3.2.0
Namespaces | Classes | Functions
crypto Namespace Reference

Namespaces

namespace  anonymous_namespace{SHA256.cpp}
 

Classes

class  SHA256
 

Functions

template<typename T >
std::string sha256 (const T &data)
 

Function Documentation

◆ sha256()

template<typename T >
std::string crypto::sha256 ( const T &  data)

Definition at line 50 of file SHA256.h.

51{
52 SHA256 hasher;
53 hasher.Update(data);
54 return hasher.Finalize();
55}
void Update(const void *data, std::size_t size)
Definition: SHA256.cpp:98
std::string Finalize()
Definition: SHA256.cpp:127

References crypto::SHA256::Finalize(), and crypto::SHA256::Update().

Referenced by audacity::cloud::audiocom::sync::LocalProjectSnapshot::ProjectBlocksLock::CollectHashes(), audacity::cloud::audiocom::sync::BlockHasher::Workers::ComputeHash(), and TEST_CASE().

Here is the call graph for this function:
Here is the caller graph for this function: