Print this page
4185 New hash algorithm support

@@ -19,10 +19,13 @@
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  */
+/*
+ * Copyright 2013 Saso Kiselkov.  All rights reserved.
+ */
 
 #ifndef _SYS_CRYPTO_COMMON_H
 #define _SYS_CRYPTO_COMMON_H
 
 /*

@@ -192,10 +195,12 @@
 #define SUN_CKM_SHA384_HMAC             "CKM_SHA384_HMAC"
 #define SUN_CKM_SHA384_HMAC_GENERAL     "CKM_SHA384_HMAC_GENERAL"
 #define SUN_CKM_SHA512                  "CKM_SHA512"
 #define SUN_CKM_SHA512_HMAC             "CKM_SHA512_HMAC"
 #define SUN_CKM_SHA512_HMAC_GENERAL     "CKM_SHA512_HMAC_GENERAL"
+#define SUN_CKM_SHA512_224              "CKM_SHA512_224"
+#define SUN_CKM_SHA512_256              "CKM_SHA512_256"
 #define SUN_CKM_DES_CBC                 "CKM_DES_CBC"
 #define SUN_CKM_DES3_CBC                "CKM_DES3_CBC"
 #define SUN_CKM_DES_ECB                 "CKM_DES_ECB"
 #define SUN_CKM_DES3_ECB                "CKM_DES3_ECB"
 #define SUN_CKM_BLOWFISH_CBC            "CKM_BLOWFISH_CBC"