Cryptopals Guided Tour - 09 - Implement PKCS#7 Padding @nccgroup
Cryptopals Guided Tour - 09 - Implement PKCS#7 Padding  @nccgroup
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).
Cryptopals Guided Tour - 09 - Implement PKCS#7 PaddingFull year results for the 12 months ended 31 May 2018Mythos - Whats the real story?Claude Mythos: BBC Business Today interview, discussing the implications for cyber securityHow to avoid falling victim to a scam support callWAS VERSTEHT MAN UNTER ESCROW?NCC Group Cyber Threat Intelligence: Review of March 2026From Risk to Resilience: Building compliant, cyber secure critical infrastructure across systemsThomas Pepper - Internal Account ManagerPutting cyber security on the boardroom agendaOren Benshabat - Security ConsultantCryptopals Guided Tour - 17 - The CBC padding oracle
NCC Group Global |

Cryptopals Guided Tour - 09 - Implement PKCS#7 Padding

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER