< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page

        

@@ -1,7 +1,8 @@
 /*
  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015-2018, Azul Systems, Inc. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -1489,10 +1490,118 @@
   static void compute_offsets();
   static oop  get_owner_threadObj(oop obj);
   static void serialize(SerializeClosure* f) NOT_CDS_RETURN;
 };
 
+#ifdef AARCH32
+class com_sun_crypto_provider_AESCrypt: AllStatic {
+ public:
+  static int _K_offset;
+  enum {
+   hc_ROUND_12_offset       = 0,
+   hc_ROUND_14_offset       = 1,
+   hc_sessionK_offset       = 2,
+   hc_K_offset              = 3,
+   hc_lastKey_offset        = 4,
+   hc_limit                 = 5
+  };
+
+  static int  K_offset();
+  static void compute_offsets();
+};
+
+class com_sun_crypto_provider_FeedbackCipher: AllStatic {
+ public:
+  static int _embeddedCipher_offset;
+  enum {
+   hc_blockSize_offset            = 0,
+   hc_embeddedCipher_offset       = 1,
+   hc_iv_offset
+  };
+
+  static int  embeddedCipher_offset();
+  static void compute_offsets();
+};
+
+class com_sun_crypto_provider_CipherBlockChaining:
+                            public com_sun_crypto_provider_FeedbackCipher {
+ public:
+  static int _r_offset;
+  enum {
+   hc_r_offset       = hc_iv_offset+1,
+   hc_k_offset
+  };
+
+  static int  r_offset();
+  static void compute_offsets();
+};
+
+class java_security_MessageDigestSpi {
+public:
+  enum {
+   hc_tempArray = 0
+  };
+};
+
+class sun_security_provider_DigestBase: java_security_MessageDigestSpi {
+public:
+  enum {
+    hc_digestLength = hc_tempArray + 1,
+    hc_bytesProcessed_low,
+    hc_bytesProcessed_high,
+    hc_blockSize,
+    hc_bufOfs,
+    hc_oneByte,
+    hc_algorithm,
+    hc_buffer
+  };
+};
+
+class sun_security_provider_SHA:
+                            public sun_security_provider_DigestBase {
+ public:
+  static int _state_offset;
+  enum {
+    hc_W  = hc_buffer + 1,
+    hc_state,
+    hc_init_hashes
+  };
+
+  static int state_offset();
+  static void compute_offsets();
+};
+
+
+class sun_security_provider_SHA2:
+                            public sun_security_provider_DigestBase {
+ public:
+  static int _state_offset;
+  enum {
+    hc_W  = hc_buffer + 1,
+    hc_state,
+    hc_init_hashes
+  };
+
+  static int state_offset();
+  static void compute_offsets();
+};
+
+class sun_security_provider_SHA5:
+                            public sun_security_provider_DigestBase {
+ public:
+  static int _state_offset;
+  enum {
+    hc_W  = hc_buffer + 1,
+    hc_state,
+    hc_init_hashes
+  };
+
+  static int state_offset();
+  static void compute_offsets();
+};
+#endif
+
 // Use to declare fields that need to be injected into Java classes
 // for the JVM to use.  The name_index and signature_index are
 // declared in vmSymbols.  The may_be_java flag is used to declare
 // fields that might already exist in Java but should be injected if
 // they don't.  Otherwise the field is unconditionally injected and
< prev index next >