template class xf::security::internal::aesCbcPack

#include "msgpack.hpp"

Overview

Base class of msg packer. Bit width of one row is 128.

Parameters:

KeyW Bit width of key, only support 128, 192, 256
template <int KeyW>
class aesCbcPack: public xf::security::internal::packBase

Inherited Members

// fields

int64_t msg_num
int64_t curr_ptr
int64_t buffer_size
int64_t total_row
unsigned char* buffer_ptr
bool isReset
bool isMemAlloced

Methods

addOneMsg

bool addOneMsg (
    unsigned char* msg,
    int64_t len,
    unsigned char* iv,
    unsigned char* key
    )

Add one message.

Pointer of message to be added. Length of message to be added. Initialization vector of this message. Encryption key

Returns:

return true if successfully add message, other wise false.