Calculate the block size including encryption fields and padding if any.
| 285 | |
| 286 | // Calculate the block size including encryption fields and padding if any. |
| 287 | uint Archive::FullHeaderSize(size_t Size) |
| 288 | { |
| 289 | if (Encrypted) |
| 290 | { |
| 291 | Size = ALIGN_VALUE(Size, CRYPT_BLOCK_SIZE); // Align to encryption block size. |
| 292 | if (Format == RARFMT50) |
| 293 | Size += SIZE_INITV; |
| 294 | else |
| 295 | Size += SIZE_SALT30; |
| 296 | } |
| 297 | return uint(Size); |
| 298 | } |
| 299 | |
| 300 | |
| 301 |
nothing calls this directly
no outgoing calls
no test coverage detected