Skip to content

Conversation

@karel-m
Copy link
Member

@karel-m karel-m commented Oct 15, 2018

The wycheproof failing test:

        {
          "tcId" : 29,
          "comment" : "zero padding",
          "key" : "db4f3e5e3795cc09a073fa6a81e5a6bc",
          "iv" : "23468aa734f5f0f19827316ff168e94f",
          "msg" : "3031323334353637383941424344454647",
          "ct" : "fbcbdfdaaf17980be939c0b243266ecb1188ff22f6563f6173440547d1e0dfd8",
          "result" : "invalid",
          "flags" : [
            "BadPadding"
          ]
        },

After decryption the last block looks like this (hex):

47,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

Which is expected to fail when using LTC_PAD_PKCS7 depadding.

@karel-m karel-m force-pushed the pr/wycheproof-padding branch from 4aeedba to 301d703 Compare October 26, 2018 17:50
@karel-m karel-m requested a review from sjaeckel October 26, 2018 17:52
@karel-m karel-m force-pushed the pr/wycheproof-padding branch from 301d703 to 5aeed94 Compare October 27, 2018 08:49
@karel-m karel-m force-pushed the pr/wycheproof-padding branch from 5aeed94 to dee704d Compare October 29, 2018 06:26
@karel-m karel-m merged commit 60eb5d0 into develop Oct 29, 2018
@karel-m karel-m deleted the pr/wycheproof-padding branch October 29, 2018 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants