Sha256: e4c720d36c93cf11e784edc0955238d5149132b19acad1937d03601fccb5b732

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

#ifndef __ECRYPT_SYNC__
#define __ECRYPT_SYNC__

#include <stdint.h>

typedef uint8_t  u8;
typedef uint32_t u32;

#define Nr 14
#define Nk 8
#define Nb 4

#pragma pack(push, 1)
typedef struct ECRYPT_ctx
{
  u32 round_key[Nr+1][4];
  u32 counter[4];
  u32 first_round_output_x0;
  u32 second_round_output[4];
} ECRYPT_ctx;
#pragma pack(pop)

#define ECRYPT_encrypt_bytes(ctx, plaintext, ciphertext, msglen)   \
  ECRYPT_process_bytes(0, ctx, plaintext, ciphertext, msglen)

#endif

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h
rbnacl-libsodium-0.5.0.1 vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h
rbnacl-libsodium-0.5.0 vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h