Page MenuHomePhabricator

[lib] Introduce combined padding interface
ClosedPublic

Authored by bartek on Mar 13 2023, 7:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 2:12 AM
Unknown Object (File)
Wed, Dec 4, 1:32 AM
Unknown Object (File)
Wed, Dec 4, 1:28 AM
Unknown Object (File)
Tue, Dec 3, 12:06 PM
Unknown Object (File)
Nov 10 2024, 7:02 PM
Unknown Object (File)
Nov 9 2024, 10:18 PM
Unknown Object (File)
Nov 8 2024, 9:23 PM
Unknown Object (File)
Nov 8 2024, 9:23 PM

Details

Summary

Part of ENG-3099

This diff is combining two previous diffs and finally allows to pad the data to multiples of 10KB (forty 250-byte blocks)

The whole idea is described in this Notion doc.

Depends on D7060

Test Plan

Added unit tests. Also tested using my CLI tool and hex editor / viewer (e.g. xxd tool). The CLI tool is also available in the Notion doc above

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
lib/utils/pkcs7-padding.js
172–178 ↗(On Diff #23693)

This might be considered as an anti-pattern but I have no better idea (besides simply exporting them all)

bartek published this revision for review.Mar 13 2023, 8:11 AM
bartek removed a reviewer: anunay.
bartek added a subscriber: anunay.

Specifically adding @tomek as reviewer since he seemed to have some thoughts during the Encryption Sync (that might've been discussed offline?)

This revision is now accepted and ready to land.Mar 20 2023, 7:07 AM