Added functions to encode/decode unsigned64 values.

This commit is contained in:
skarg
2017-01-01 05:12:59 +00:00
parent 8afd5669f7
commit f0c727ff29
2 changed files with 58 additions and 1 deletions
+10 -1
View File
@@ -51,7 +51,11 @@ extern "C" {
int decode_unsigned32(
uint8_t * apdu,
uint32_t * value);
#ifdef UINT64_MAX
int decode_unsigned64(
uint8_t * buffer,
uint64_t * value);
#endif
/* signed value encoding and decoding */
int encode_signed8(
uint8_t * apdu,
@@ -77,6 +81,11 @@ extern "C" {
int decode_signed32(
uint8_t * apdu,
int32_t * value);
#ifdef UINT64_MAX
int encode_unsigned64(
uint8_t * buffer,
uint64_t value);
#endif
#ifdef TEST
#include "ctest.h"