Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include "CEncryption.hpp"
#include "core/assert.hpp"
#include "core/strings.hpp"
#include <fmt/format.h>
#include <openssl/crypto.h>
#include <openssl/evp.h>
#include <openssl/ossl_typ.h>
Macros | |
#define | MAX_CYPHER 10000 |
Functions | |
static void | prvDigestMessage (const unsigned char *message, size_t messageLen, const EVP_MD *evpMD, unsigned char **digest, uint32_t *digestLen) |
Variables | |
static unsigned char * | kPrvEVPkey = (unsigned char *) "19897603734968285761602736501277" |
static unsigned char * | kPrvEVPiv = (unsigned char *) "86758566867585668675856686758566" |
#define MAX_CYPHER 10000 |
|
static |
Takes a plain text and generates a hashcode which can be used to verify if the plain text is unmodified but cannot be used to decrypt the original text from the hash value.
message | Message to generate his hashcode |
messageLen | Length of parameter message |
evpMD | EVP Encryption Mode |
digest | Hashcode generate (output parameter) |
digestLen | Length of digests parameter (output parameter) |
|
static |
EVP Initialization Vector
|
static |
EVP Public Key