jdk/test/sun/security/provider/SecureRandom/DrbgCavp.java
changeset 37896 cd841af7dcd0
parent 37796 256c45c4af5d
equal deleted inserted replaced
37895:f59fdd7fb4fb 37896:cd841af7dcd0
   276                                                     isPr ? PR_AND_RESEED
   276                                                     isPr ? PR_AND_RESEED
   277                                                             : RESEED_ONLY,
   277                                                             : RESEED_ONLY,
   278                                                     ps)),
   278                                                     ps)),
   279                                     "SUN");
   279                                     "SUN");
   280                         } catch (NoSuchAlgorithmException iae) {
   280                         } catch (NoSuchAlgorithmException iae) {
       
   281                             // We don't support SHA-1 and 3KeyTDEA. AES-192 or
   281                             // AES-256 might not be available. This is OK.
   282                             // AES-256 might not be available. This is OK.
   282                             if ((algorithm.equals("AES-192")
   283                             if (algorithm.equals("SHA-1") ||
       
   284                                     algorithm.equals("3KeyTDEA") ||
       
   285                                     ((algorithm.equals("AES-192")
   283                                     || algorithm.equals("AES-256"))
   286                                     || algorithm.equals("AES-256"))
   284                                     && AES_LIMIT == 128) {
   287                                     && AES_LIMIT == 128)) {
   285                                 hd = null;
   288                                 hd = null;
   286                             } else {
   289                             } else {
   287                                 throw iae;
   290                                 throw iae;
   288                             }
   291                             }
   289                         }
   292                         }