MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_encryption_padding

Function get_encryption_padding

utility/pck_creator.cpp:231–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231static uint64_t get_encryption_padding(uint64_t _size) {
232 uint64_t pad = 0;
233 if (_size % 16) { // Pad to encryption block size.
234 pad += 16 - (_size % 16);
235 }
236 pad += 16; // hash
237 pad += 8; // data size
238 pad += 16; // iv
239 return pad;
240}
241const static Vector<uint8_t> empty_md5 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
242
243} //namespace

Callers 2

_add_filesMethod · 0.85
_create_after_processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected