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)
Sun, Nov 10, 7:02 PM
Unknown Object (File)
Sat, Nov 9, 10:18 PM
Unknown Object (File)
Fri, Nov 8, 9:23 PM
Unknown Object (File)
Fri, Nov 8, 9:23 PM
Unknown Object (File)
Fri, Nov 8, 9:23 PM
Unknown Object (File)
Tue, Nov 5, 2:09 AM
Unknown Object (File)
Oct 2 2024, 10:31 PM
Unknown Object (File)
Oct 2 2024, 10:31 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
Lint Not Applicable
Unit
Tests Not Applicable

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