Skip to content

Commit

Permalink
exp throughput without aut - rev
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 4, 2023
1 parent c8c55c1 commit d1d3867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Encryption.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Encryptor {
if(DISABLE_ENCRYPTION_FOR_PERFORMANCE){
memcpy(dest,src, src_len);
uint8_t* sign=dest+src_len;
//crypto_onetimeauth(sign,src,src_len,session_key.data());
crypto_onetimeauth(sign,src,src_len,session_key.data());
return src_len+crypto_onetimeauth_BYTES;
}
long long unsigned int ciphertext_len;
Expand Down
2 changes: 1 addition & 1 deletion src/FECDisabled.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct FECDisabledHeader{
}__attribute__ ((packed));
static_assert(sizeof(FECDisabledHeader)==8);

// usage of nonce: Simple, uint64_t number increasing with each packet
// Really simple, adds a sequence number, nothing else
class FECDisabledEncoder {
public:
typedef std::function<void(const uint8_t *payload, const std::size_t payloadSize)>
Expand Down

0 comments on commit d1d3867

Please sign in to comment.