mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 22:07:14 +03:00
890c9e87ce
* examples: plugins: utilize fal_embedded * libs: removed fnv1a_hash * furi: added FURI_PACKED; apps, libs: changed to use FURI_PACKED * lib: mbedtls: using custom config * lib: toolbox: removed md5, switched to mbedtls * targets: f18: link fix * lib: added mbedtls_cfg.h * apps: nfc: explicit dependency on libmbedtls * u2f: reworking to mbedtls * u2f: replaced sha256 & hmac with mbedtls * u2f: functional rework using mbedtls * libs: dropped micro-ecc * u2f: dropped old implementation * toolbox: removed sha256 impl * mcheck() for mbedtls * libs: removed libmisc; split into smaller libs * apps: debug: fixed display_test * apps: include cleanups * fbt: fixed VERSIONCOMSTR * furi: added FURI_CHECK_RETURN * lib: removed qrcode * cleanup * fbt: lint_py+format_py: fixed excessive command length * api: Removed bzero from f7 * api: Removed bzero from f18 * Bump API Symbols Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
33 lines
686 B
C
33 lines
686 B
C
#ifndef _ISO7816_T0_APDU_H_
|
|
#define _ISO7816_T0_APDU_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
struct ISO7816_Command_APDU {
|
|
//header
|
|
uint8_t CLA;
|
|
uint8_t INS;
|
|
uint8_t P1;
|
|
uint8_t P2;
|
|
|
|
//body
|
|
uint8_t Lc;
|
|
uint8_t Le;
|
|
} FURI_PACKED;
|
|
|
|
struct ISO7816_Response_APDU {
|
|
uint8_t SW1;
|
|
uint8_t SW2;
|
|
} FURI_PACKED;
|
|
|
|
void iso7816_answer_to_reset(uint8_t* atrBuffer, uint32_t* atrlen);
|
|
void iso7816_read_command_apdu(
|
|
struct ISO7816_Command_APDU* command,
|
|
const uint8_t* dataBuffer,
|
|
uint32_t dataLen);
|
|
void iso7816_write_response_apdu(
|
|
const struct ISO7816_Response_APDU* response,
|
|
uint8_t* dataBuffer,
|
|
uint32_t* dataLen);
|
|
#endif //_ISO7816_T0_APDU_H_
|