BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
20 uint32_t
encode(
const char* plaintxt, uint32_t len,
char* ciphertxt );
33 uint32_t
decode(
const char* ciphertxt, uint32_t len,
char* plaintext );
40 unsigned aes_encrypt(
unsigned char *plaintext,
int plaintext_len,
unsigned char *key,
41 unsigned char *iv,
unsigned char *ciphertext);
42 unsigned aes_decrypt(
unsigned char *ciphertext,
int ciphertext_len,
unsigned char *key,
43 unsigned char *iv,
unsigned char *plaintext);
44 unsigned aes_cfb_decrypt(
unsigned char *ciphertext,
int ciphertext_len,
unsigned char *key,
45 unsigned char *iv,
unsigned char *plaintext);
uint32_t decode(const char *ciphertxt, uint32_t len, char *plaintext)
std::vector< char > aes_load(const fc::path &file, const fc::sha512 &key)
wraps boost::filesystem::path to provide platform independent path manipulation.
void aes_save(const fc::path &file, const fc::sha512 &key, std::vector< char > plain_text)
void init(const fc::sha256 &key, const uint128_t &init_value)
uint32_t encode(const char *plaintxt, uint32_t len, char *ciphertxt)
unsigned aes_cfb_decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, unsigned char *iv, unsigned char *plaintext)
void init(const fc::sha256 &key, const uint128_t &init_value)
unsigned aes_decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, unsigned char *iv, unsigned char *plaintext)
Used to forward declare value types.
unsigned aes_encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key, unsigned char *iv, unsigned char *ciphertext)