RFR: 6227536: KeyGenerator.init() methods do not throw IllegalArgumentException for keysize == 0 [v2]

Kevin Driver kdriver at openjdk.org
Thu Jul 28 20:02:33 UTC 2022


On Thu, 28 Jul 2022 19:03:17 GMT, Mark Powers <duke at openjdk.org> wrote:

>> Kevin Driver has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   formatting
>
> src/java.base/share/classes/com/sun/crypto/provider/HmacMD5KeyGenerator.java line 92:
> 
>> 90:     protected void engineInit(int keysize, SecureRandom random) {
>> 91: 
>> 92:         if(keysize <= 0) {
> 
> Add space after` if`.

changed.

> src/java.base/share/classes/com/sun/crypto/provider/HmacSHA1KeyGenerator.java line 92:
> 
>> 90:     protected void engineInit(int keysize, SecureRandom random) {
>> 91: 
>> 92:         if(keysize <= 0) {
> 
> Space after `if`.

changed.

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

PR: https://git.openjdk.org/jdk/pull/9679


More information about the security-dev mailing list