Print this page
6652716 Need an ARCFOUR implementation optimized for Intel EM64T
@@ -24,11 +24,11 @@
*/
#ifndef _SYS_CRYPTO_COMMON_H
#define _SYS_CRYPTO_COMMON_H
-#pragma ident "@(#)common.h 1.26 08/01/04 SMI"
+#pragma ident "@(#)common.h 1.27 08/03/20 SMI"
/*
* Header file for the common data structures of the cryptographic framework
*/
@@ -185,19 +185,18 @@
#define SUN_CKM_ECDH1_DERIVE "CKM_ECDH1_DERIVE"
#define SUN_CKM_ECDSA_SHA1 "CKM_ECDSA_SHA1"
#define SUN_CKM_ECDSA "CKM_ECDSA"
/* Shared operation context format for CKM_RC4 */
+typedef struct {
#if defined(__amd64)
-typedef uint64_t arcfour_key_int_t;
+ uint32_t i, j;
+ uint32_t arr[256];
#else
-typedef uchar_t arcfour_key_int_t;
+ uchar_t arr[256];
+ uchar_t i, j;
#endif /* __amd64 */
-
-typedef struct {
- arcfour_key_int_t arr[256];
- arcfour_key_int_t i, j;
uint64_t pad; /* For 64-bit alignment */
} arcfour_state_t;
/* Data arguments of cryptographic operations */