equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, 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 |
101 break; |
101 break; |
102 case (int)CKM_SHA_1: |
102 case (int)CKM_SHA_1: |
103 digestLength = 20; |
103 digestLength = 20; |
104 break; |
104 break; |
105 case (int)CKM_SHA224: |
105 case (int)CKM_SHA224: |
|
106 case (int)CKM_SHA512_224: |
106 digestLength = 28; |
107 digestLength = 28; |
107 break; |
108 break; |
108 case (int)CKM_SHA256: |
109 case (int)CKM_SHA256: |
|
110 case (int)CKM_SHA512_256: |
109 digestLength = 32; |
111 digestLength = 32; |
110 break; |
112 break; |
111 case (int)CKM_SHA384: |
113 case (int)CKM_SHA384: |
112 digestLength = 48; |
114 digestLength = 48; |
113 break; |
115 break; |