|
@@ -467,8 +467,8 @@ void NodeCommState::message_data(const uint8_t *data, uint32_t len, bool encrypt
|
|
}
|
|
}
|
|
if (encrypt) {
|
|
if (encrypt) {
|
|
// Encrypt the data
|
|
// Encrypt the data
|
|
- sgx_aes_gcm128_enc_update((uint8_t*)data, bytes_to_process,
|
|
|
|
- frame+frame_offset, out_aes_gcm_state);
|
|
|
|
|
|
+ sgx_aes_gcm128_enc_update(const_cast<uint8_t*>(data),
|
|
|
|
+ bytes_to_process, frame+frame_offset, out_aes_gcm_state);
|
|
} else {
|
|
} else {
|
|
// Just copy the plaintext data during the handshake
|
|
// Just copy the plaintext data during the handshake
|
|
memmove(frame+frame_offset, data, bytes_to_process);
|
|
memmove(frame+frame_offset, data, bytes_to_process);
|