equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2018, 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 |
135 mgfSpec = MGF1ParameterSpec.SHA256; |
135 mgfSpec = MGF1ParameterSpec.SHA256; |
136 } else if (mgfDigestName.equals("SHA-384")) { |
136 } else if (mgfDigestName.equals("SHA-384")) { |
137 mgfSpec = MGF1ParameterSpec.SHA384; |
137 mgfSpec = MGF1ParameterSpec.SHA384; |
138 } else if (mgfDigestName.equals("SHA-512")) { |
138 } else if (mgfDigestName.equals("SHA-512")) { |
139 mgfSpec = MGF1ParameterSpec.SHA512; |
139 mgfSpec = MGF1ParameterSpec.SHA512; |
|
140 } else if (mgfDigestName.equals("SHA-512/224")) { |
|
141 mgfSpec = MGF1ParameterSpec.SHA512_224; |
|
142 } else if (mgfDigestName.equals("SHA-512/256")) { |
|
143 mgfSpec = MGF1ParameterSpec.SHA512_256; |
140 } else { |
144 } else { |
141 throw new IOException( |
145 throw new IOException( |
142 "Unrecognized message digest algorithm"); |
146 "Unrecognized message digest algorithm"); |
143 } |
147 } |
144 } else if (data.isContextSpecific((byte) 0x02)) { |
148 } else if (data.isContextSpecific((byte) 0x02)) { |