You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft-denis-uricrypt.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -469,7 +469,7 @@ For each encrypted component, the decryption process is:
469
469
3. Decrypt bytes incrementally to determine component boundaries:
470
470
- Generate keystream bytes one at a time from the XOF
471
471
- XOR each encrypted byte with its corresponding keystream byte
472
-
- Check each decrypted byte for component terminators ('/', '?', '#')
472
+
- Check each decrypted byte for component terminators (`'/'`, `'?'`, `'#'`)
473
473
- When a terminator is found, the component is complete.
474
474
- Skip any padding bytes (null bytes) after the component
475
475
4. Update `components_xof` with the complete plaintext component (including terminator)
@@ -481,7 +481,7 @@ For each encrypted component, the decryption process is:
481
481
482
482
During decryption, component boundaries are discovered dynamically by examining the decrypted plaintext:
483
483
484
-
- Each component (except possibly the last) ends with a terminator character ('/', '?', or '#')
484
+
- Each component (except possibly the last) ends with a terminator character (`'/'`, `'?'`, or `'#'`)
485
485
- When a terminator is encountered, we know the component is complete
486
486
- After finding the terminator, we skip padding bytes to align to the next 3-byte boundary.
487
487
- The padding length can be calculated: `padding = (3 - ((SIV_size + bytes_read) % 3)) % 3`
@@ -538,7 +538,7 @@ the algorithms:
538
538
539
539
* `remove_padding(data)`: Removes trailing zero bytes from a byte sequence to recover the original data length.
540
540
541
-
* `join(components)`: Combines multiple path components into a single path string, preserving the terminator characters ('/', '?', '#') that are included in each component.
541
+
* `join(components)`: Combines multiple path components into a single path string, preserving the terminator characters (`'/'`, `'?'`, `'#'`) that are included in each component.
542
542
543
543
## Encryption Algorithm
544
544
@@ -595,7 +595,7 @@ Steps:
595
595
- `position = position + 1`
596
596
- If `decrypted_byte == 0x00`: continue (skip padding)
0 commit comments