src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11Digest.java
changeset 58489 2faeaa5933a6
parent 53257 5170dc2bcf64
equal deleted inserted replaced
58488:165b193b30dd 58489:2faeaa5933a6
     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;