using namespace anna;
void Encoder::initialize()
-throw() {
+{
srand(functions::second());
}
const EncodedData& Encoder::encode(const DataBlock& data)
-throw(RuntimeException) {
+noexcept(false) {
DES_cblock key [3];
DES_key_schedule* skey [3];
// (1) Elimina los 8 primeros bytes que tuvimos que poner de relleno en la codificacion.
//-------------------------------------------------------------------------------------------------
const DataBlock& Encoder::decode(const EncodedData& data)
-throw(RuntimeException) {
+noexcept(false) {
if(data.a_realSize <= 0) {
string msg("anna::Encoder::encode | Cannot decode an uninitialized data");
throw RuntimeException(msg, ANNA_FILE_LOCATION);
// 'const_cast <EncodedData&> (data).a_value.remove (sizeof (DES_cblock));'
//-------------------------------------------------------------------------------------------------
DataBlock& Encoder::setDataBlock(const DataBlock& other)
-throw(RuntimeException) {
+noexcept(false) {
DataBlock& value = a_data.a_value;
int r;
value.clear();