Skip to content

Commit 461afbf

Browse files
committed
SIV_size -> SIVLEN
1 parent e4becf7 commit 461afbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

draft-denis-uricrypt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ consistently with other paths.
268268
In applications where all paths are guaranteed to be absolute and the `'/'` path
269269
can be considered a special case, ciphertext expansion can be reduced by
270270
removing the leading `'/'` character from the URI prior to encryption,
271-
making the path relative with `'/'` as an implicit current path.
271+
treating the path as relative with `'/'` as implicit.
272272

273273
## Component Reconstruction
274274

@@ -498,7 +498,7 @@ During decryption, component boundaries are discovered dynamically by examining
498498
- Each component (except possibly the last) ends with a terminator character (`'/'`, `'?'`, or `'#'`)
499499
- When a terminator is encountered, we know the component is complete
500500
- After finding the terminator, we skip padding bytes to align to the next PADBS-byte boundary.
501-
- The padding length can be calculated: `padding = (PADBS - ((SIV_size + bytes_read) % PADBS)) % PADBS`
501+
- The padding length can be calculated: `padding = (PADBS - ((SIVLEN + bytes_read) % PADBS)) % PADBS`
502502

503503
This approach eliminates the need for explicit length encoding, as the component structure itself provides the necessary boundary information.
504504

0 commit comments

Comments
 (0)