Temporarily disable 1.2isms

This commit is contained in:
BTChip
2016-06-02 02:04:57 +02:00
parent c429674234
commit f6e6286c4d
4 changed files with 38 additions and 10 deletions

View File

@@ -284,11 +284,11 @@ int app_cx_hash(cx_hash_t *hash, int mode, unsigned char WIDE *in, int len,
// --- last block ---
if (mode & CX_LAST) {
os_memset(block + blen, 0, (200 - blen));
block[blen] |= (hash->algo == CX_SHA3 ? 0x06 : 0x01);
block[blen] |= 0x01;
block[block_size - 1] |= 0x80;
app_cx_sha3_block((app_cx_sha3_t *)hash);
// provide result
len = ((cx_sha3_t *)hash)->output_size;
len = ((app_cx_sha3_t *)hash)->output_size;
if (out) {
os_memmove(out, acc, len);
}

View File

@@ -20,6 +20,10 @@
#pragma once
#ifndef uint64bits_t
typedef unsigned long long uint64bits_t;
#endif
struct app_cx_sha3_s {
struct cx_hash_header_s header;