native.jniutil.variant_selector.h Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-lts8on Show documentation
Show all versions of bcprov-lts8on Show documentation
The Long Term Stable (LTS) Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains the JCA/JCE provider and low-level API for the BC LTS version 2.73.7 for Java 8 and later.
//
//
#ifndef BC_LTS_C_VARIANT_SELECTOR_H
#define BC_LTS_C_VARIANT_SELECTOR_H
#include
#include
#include
struct cpuid_info {
bool loaded;
bool aes;
bool sha256;
bool sha512;
bool sha3;
bool neon;
bool arm64;
bool sve2;
bool le;
};
bool is_le() {
uint16_t w = 0xFF01;
uint8_t *d = (uint8_t *) &w;
return d[0] == 0x01;
}
void probe_system();
#endif //BC_LTS_C_VARIANT_SELECTOR_H
© 2015 - 2024 Weber Informatics LLC | Privacy Policy