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 |
89 break; |
89 break; |
90 case (int)CKM_SHA_1_HMAC: |
90 case (int)CKM_SHA_1_HMAC: |
91 macLength = 20; |
91 macLength = 20; |
92 break; |
92 break; |
93 case (int)CKM_SHA224_HMAC: |
93 case (int)CKM_SHA224_HMAC: |
|
94 case (int)CKM_SHA512_224_HMAC: |
94 macLength = 28; |
95 macLength = 28; |
95 break; |
96 break; |
96 case (int)CKM_SHA256_HMAC: |
97 case (int)CKM_SHA256_HMAC: |
|
98 case (int)CKM_SHA512_256_HMAC: |
97 macLength = 32; |
99 macLength = 32; |
98 break; |
100 break; |
99 case (int)CKM_SHA384_HMAC: |
101 case (int)CKM_SHA384_HMAC: |
100 macLength = 48; |
102 macLength = 48; |
101 break; |
103 break; |