Commit 84702780 authored by Davide Galassi's avatar Davide Galassi

Sources moved to appropriate folders

parent 9def743d
Pipeline #41384519 passed with stages
in 1 minute and 23 seconds
......@@ -26,7 +26,8 @@ Given a version number MAJOR.MINOR.PATCH
- Project released under the MIT license
- MPI Toom-Cook-3 multiplier
- Hill classical cipher
- Trivium stream cipher
- Hill cipher
- Polyalphabetic affine cipher
[0.0.6] - 2017-07-09
......
# src/classic/subdir.mk
objects-y := \
hill.o \
affine.o
\ No newline at end of file
#ifndef CRY_MEMXOR_H_
#define CRY_MEMXOR_H_
#ifdef __cplusplus
extern "C"{
#endif
/**
* XOR two memory regions.
*
* The result is stored in the first operand.
* The memory segments may overlap and can work inplace.
*
* @param dst First source and destination.
* @param src Second source.
* @param size Number of bytes to XOR.
*/
void cry_memxor(unsigned char *dst, const unsigned char *src,
unsigned int size);
/**
* XOR two memory regions.
*
* The memory segments may overlap and can work inplace.
*
* @param dst Destination.
* @param src1 First source.
* @param src2 Second source.
* @param size Number of bytes to XOR.
*/
void cry_memxor2(unsigned char *dst, const unsigned char *src1,
const unsigned char *src2, unsigned int size);
#ifdef __cplusplus
}
#endif
#endif /* CRY_MEMXOR_H_ */
# src/bcmo/subdir.mk
objects-y := \
memxor.o \
aes.o \
des.o \
cbc.o \
ctr.o \
gcm.o \
rsa.o \
trivium.o \
dh.o \
ecdh.o \
cmac.o \
hmac.o \
dsa.o \
ecdsa.o \
base64.o \
affine.o \
hill.o
# src/crc/subdir.mk
objects-y := \
crc16.o \
crc16_ccitt.o \
crc16_ibm.o \
crc32.o \
crc32_eth.o
\ No newline at end of file
md5.o \
sha256.o
\ No newline at end of file
......@@ -2,23 +2,6 @@
objects-y := \
version.o \
memxor.o \
base64.o \
des.o \
aes.o \
cbc.o \
gcm.o \
ctr.o \
md5.o \
sha256.o \
cmac.o \
hmac.o \
rsa.o \
dh.o \
ecdh.o \
dsa.o \
ecdsa.o \
trivium.o \
misc.o
subdirs-y += mpi crc prng sum ecp classic
\ No newline at end of file
subdirs-y += mpi crypt hash prng sum ecp
# src/sum/subdir.mk
# src/crc/subdir.mk
objects-y := \
cs8.o \
lrc.o
crc16.o \
crc16_ccitt.o \
crc16_ibm.o \
crc32.o \
crc32_eth.o \
cs8.o \
lrc.o
#include "test.h"
#include "memxor.h"
#include <cry/memxor.h>
#include <string.h>
#define S1 "HeLLoWoRld01x"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment