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

native.jniutil.longarraycritical.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_FIPS_longarrayCRITICAL_H
#define BC_FIPS_longarrayCRITICAL_H


#include 
#include 
#include 
#include 

typedef struct {
    int64_t *critical;
    size_t size;
    JNIEnv *env;
    jlongArray array;
} critical_longarray_ctx;


void init_critical_long_ctx(critical_longarray_ctx *ctx, JNIEnv *env, jlongArray array);


/**
 * Actually claim the byte ctx from the jvm if not already claimed.
 * @param ctx pointer to the java_longarray_ctx
 * @return non zero on success
 */
bool load_critical_long_ctx(critical_longarray_ctx *ctx);


/**
 * release_longarray_ctx releases a java byte ctx back to the jvm
 * null safe and unclaimed safe.
 * @param ctx
 */
void release_critical_long_ctx(critical_longarray_ctx *ctx);

#endif //BC_FIPS_longarrayCRITICAL_H




© 2015 - 2025 Weber Informatics LLC | Privacy Policy