| 229 | } |
| 230 | |
| 231 | static 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 | } |
| 241 | const 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 |
no outgoing calls
no test coverage detected