diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-05-18 12:41:08 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-18 12:41:08 -0300 |
| commit | f9097a0562ea8b40d40a19059578a9280b945de4 (patch) | |
| tree | 67907194b90977758c6b024809eb887a44601935 /shared/librelational_engine/library.cpp | |
| parent | d39b1433e2ed754640049d04462f6a151bce7d14 (diff) | |
| download | Sakura-f9097a0562ea8b40d40a19059578a9280b945de4.tar.gz Sakura-f9097a0562ea8b40d40a19059578a9280b945de4.zip | |
cleanup root
Diffstat (limited to 'shared/librelational_engine/library.cpp')
| -rw-r--r-- | shared/librelational_engine/library.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/shared/librelational_engine/library.cpp b/shared/librelational_engine/library.cpp deleted file mode 100644 index a9b4c81..0000000 --- a/shared/librelational_engine/library.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include <iostream> -#include <openssl/sha.h> -#include <iomanip> -#include <sstream> -#include <cstring> - -#include <sys/stat.h> - -extern "C" { -#include "library.h" - - extern void compute_hash(char* computed_hash, const char *content) { - unsigned char hash[SHA256_DIGEST_LENGTH]; - SHA256_CTX sha256; - SHA256_Init(&sha256); - SHA256_Update(&sha256, content, std::strlen(content)); - SHA256_Final(hash, &sha256); - std::stringstream ss; - for (int i = 0; i < SHA256_DIGEST_LENGTH; i++) - ss << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(hash[i]); - std::memcpy(computed_hash, ss.str().c_str(), HASH_SIZE); - } -} |
