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

native.intel.ecb.ecb.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_ECB_H
#define BC_FIPS_ECB_H

#include 
#include 
#include 
#include "../../jniutil/bytearraycritical.h"

#define ECB_BLOCK_SIZE 16

typedef struct ecb_ctx {
   __m128i roundKeys[15];
   int num_rounds;
   bool encryption;
} ecb_ctx;

ecb_ctx * ecb_create_ctx();

void ecb_free_ctx(ecb_ctx * ctx);

void ecb_reset(ecb_ctx *ctx);

void ecb_init(ecb_ctx *pCtx, uint8_t *key);

size_t ecb_process_blocks(ecb_ctx *ctx, uint8_t *src, uint32_t blocks, uint8_t *dest);


#endif //BC_FIPS_ECB_H




© 2015 - 2024 Weber Informatics LLC | Privacy Policy