On Wed, 1 Sep 2021 12:20:41 GMT, Sean Mullan <mul...@openjdk.org> wrote:

>> Yes, with KW (no pad), data must be in multiples of 8. When data does not 
>> meet this size requirement, an external padding scheme such as PKCS5/7 
>> padding is needed to pad the data to multiples of 8 in order for KW mode to 
>> process the data.
>> As for KWP mode, it internally pads the data to multiples of 8 before 
>> starting the internal processing. Thus, no external padding is needed. Are 
>> you asking if 8 should be returned for KWP mode due to its internal padding? 
>> KWP is like a variant of KW, so it seems to me that it should return the 
>> same block size as KW.
>
> Your explanation make sense. I just wanted to make sure we didn't miss 
> something.

Yes, thanks for checking.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5236

Reply via email to