Uploaded January 2023 | Updated November 2026, 3 hours ago
00:00 - Intro
00:35 - Examples
01:00 - Unpadding
01:37 - Padding errors
02:15 - Applying PKCS7
03:15 - Constant-time considerations
04:10 - How else could we pad a message?
06:53 - Is padding always needed?
08:05 - Hiding plaintext lengths
09:40 - Start of screencast
10:00 - Implementing pkcs7()
12:41 - Implementing strip_pkcs7()
16:30 - Testing the implementations
17:05 - Writing main block
Further reading:
rfc-editor.org/rfc/rfc2898#section-6.1.1
rfc-editor.org/rfc/rfc5652#section-6.3
rfc-editor.org/rfc/rfc1321#section-3.1
bearssl.org/constanttime.html#cbc-padding
Note: The discussion of SIV is intended to refer to GCM-SIV (RFC 8452, not to be confused with RFC 5297).
00:00 - Intro
00:35 - Examples
01:00 - Unpadding
01:37 - Padding errors
02:15 - Applying PKCS7
03:15 - Constant-time considerations
04:10 - How else could we pad a message?
06:53 - Is padding always needed?
08:05 - Hiding plaintext lengths
09:40 - Start of screencast
10:00 - Implementing pkcs7()
12:41 - Implementing strip_pkcs7()
16:30 - Testing the implementations
17:05 - Writing main block
Further reading:
rfc-editor.org/rfc/rfc2898#section-6.1.1
rfc-editor.org/rfc/rfc5652#section-6.3
rfc-editor.org/rfc/rfc1321#section-3.1
bearssl.org/constanttime.html#cbc-padding
Note: The discussion of SIV is intended to refer to GCM-SIV (RFC 8452, not to be confused with RFC 5297).










