Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
aes.cpp File Reference
#include <crypto/aes.h>
#include <crypto/common.h>
#include <assert.h>
#include <string.h>
#include <crypto/ctaes/ctaes.c>
Include dependency graph for aes.cpp:
Go to the source code of this file.
Functions | |
template<typename T > | |
static int | CBCEncrypt (const T &enc, const unsigned char iv[AES_BLOCKSIZE], const unsigned char *data, int size, bool pad, unsigned char *out) |
template<typename T > | |
static int | CBCDecrypt (const T &dec, const unsigned char iv[AES_BLOCKSIZE], const unsigned char *data, int size, bool pad, unsigned char *out) |
Function Documentation
◆ CBCDecrypt()
template<typename T >
|
static |
Definition at line 113 of file aes.cpp.
References AES_BLOCKSIZE.
Referenced by AES256CBCDecrypt::Decrypt(), and AES128CBCDecrypt::Decrypt().
◆ CBCEncrypt()
template<typename T >
|
static |
Definition at line 77 of file aes.cpp.
References AES_BLOCKSIZE, and memcpy().
Referenced by AES256CBCEncrypt::Encrypt(), and AES128CBCEncrypt::Encrypt().