All Downloads are FREE. Search and download functionalities are using the official Maven repository.

native.jniutil.variant_selector.h Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.73.7
Show newest version
//
//

#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