Remove CX_COMPLIANCE_141

This commit is contained in:
BTChip github
2020-01-18 12:46:37 +01:00
parent 05511ec14e
commit 658164ae18
2 changed files with 7 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ uint8_t readTxByte(txContext_t *context) {
context->currentFieldPos++;
}
if (!(context->processingField && context->fieldSingleByte)) {
cx_hash((cx_hash_t*)context->sha3, 0, &data, 1, NULL);
cx_hash((cx_hash_t*)context->sha3, 0, &data, 1, NULL, 0);
}
return data;
}
@@ -62,7 +62,7 @@ void copyTxData(txContext_t *context, uint8_t *out, uint32_t length) {
os_memmove(out, context->workBuffer, length);
}
if (!(context->processingField && context->fieldSingleByte)) {
cx_hash((cx_hash_t*)context->sha3, 0, context->workBuffer, length, NULL);
cx_hash((cx_hash_t*)context->sha3, 0, context->workBuffer, length, NULL, 0);
}
context->workBuffer += length;
context->commandLength -= length;