LTC_CHACHA_STREAM >> LTC_CHACHA
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#ifdef LTC_CHACHA_STREAM
|
||||
#ifdef LTC_CHACHA
|
||||
|
||||
#define QUARTERROUND(a,b,c,d) \
|
||||
x[a] += x[b]; x[d] = ROL(x[d] ^ x[a], 16); \
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#ifdef LTC_CHACHA_STREAM
|
||||
#ifdef LTC_CHACHA
|
||||
|
||||
/**
|
||||
Terminate and clear ChaCha state
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#ifdef LTC_CHACHA_STREAM
|
||||
#ifdef LTC_CHACHA
|
||||
|
||||
/**
|
||||
Set IV + counter data to the ChaCha state
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#ifdef LTC_CHACHA_STREAM
|
||||
#ifdef LTC_CHACHA
|
||||
|
||||
/**
|
||||
Set IV + counter data to the ChaCha state
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#ifdef LTC_CHACHA_STREAM
|
||||
#ifdef LTC_CHACHA
|
||||
|
||||
/**
|
||||
Generate a stream of random bytes via ChaCha
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#ifdef LTC_CHACHA_STREAM
|
||||
#ifdef LTC_CHACHA
|
||||
|
||||
static const char * const sigma = "expand 32-byte k";
|
||||
static const char * const tau = "expand 16-byte k";
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#ifdef LTC_CHACHA_STREAM
|
||||
#ifdef LTC_CHACHA
|
||||
|
||||
int chacha_test(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user