Added gmp

parent d470a18d
......@@ -201,7 +201,7 @@ AMTAR = $${TAR-tar}
AM_DEFAULT_VERBOSITY = 1
AUTOCONF = ${SHELL} /d/sgxd/missing autoconf
AUTOHEADER = ${SHELL} /d/sgxd/missing autoheader
AUTOMAKE = ${SHELL} /d/sgxd/missing automake-1.15
AUTOMAKE =
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
......
......@@ -191,6 +191,20 @@ int main(int argc, char *argv[]) {
unsigned char *result = carray2Hex(encryptedKey, enc_len);
uint64_t dec_len;
uint8_t* bin = hex2carray(result, &dec_len);
if (dec_len != enc_len) {
return 1;
}
for (int i=0; i < dec_len; i++) {
if (bin[i] != encryptedKey[i])
return 1;
}
gmp_printf("Result: %s", result);
......
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