equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
102 } |
102 } |
103 static SecureRandom getRandom() { return SecureRandomHolder.RANDOM; } |
103 static SecureRandom getRandom() { return SecureRandomHolder.RANDOM; } |
104 |
104 |
105 public SunJCE() { |
105 public SunJCE() { |
106 /* We are the "SunJCE" provider */ |
106 /* We are the "SunJCE" provider */ |
107 super("SunJCE", 1.8d, info); |
107 super("SunJCE", 1.9d, info); |
108 |
108 |
109 final String BLOCK_MODES = "ECB|CBC|PCBC|CTR|CTS|CFB|OFB" + |
109 final String BLOCK_MODES = "ECB|CBC|PCBC|CTR|CTS|CFB|OFB" + |
110 "|CFB8|CFB16|CFB24|CFB32|CFB40|CFB48|CFB56|CFB64" + |
110 "|CFB8|CFB16|CFB24|CFB32|CFB40|CFB48|CFB56|CFB64" + |
111 "|OFB8|OFB16|OFB24|OFB32|OFB40|OFB48|OFB56|OFB64"; |
111 "|OFB8|OFB16|OFB24|OFB32|OFB40|OFB48|OFB56|OFB64"; |
112 final String BLOCK_MODES128 = BLOCK_MODES + |
112 final String BLOCK_MODES128 = BLOCK_MODES + |