mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
added more sigs
This commit is contained in:
parent
978dde98a9
commit
e13a25902f
2 changed files with 13 additions and 6 deletions
|
@ -177,7 +177,7 @@ static int ndefDecodeSig(uint8_t *sig, size_t siglen) {
|
||||||
|
|
||||||
size_t intsiglen = (sig[indx + 1] << 8) + sig[indx + 2];
|
size_t intsiglen = (sig[indx + 1] << 8) + sig[indx + 2];
|
||||||
// ecdsa 0x04
|
// ecdsa 0x04
|
||||||
if (sigType == stECDSA) {
|
if (sigType == stECDSA_P192) {
|
||||||
indx += 3;
|
indx += 3;
|
||||||
PrintAndLogEx(NORMAL, "\tsignature [%zu]: %s", intsiglen, sprint_hex_inrow(&sig[indx], intsiglen));
|
PrintAndLogEx(NORMAL, "\tsignature [%zu]: %s", intsiglen, sprint_hex_inrow(&sig[indx], intsiglen));
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,16 @@ typedef enum {
|
||||||
stNotPresent = 0x00,
|
stNotPresent = 0x00,
|
||||||
stRSASSA_PSS_SHA_1 = 0x01,
|
stRSASSA_PSS_SHA_1 = 0x01,
|
||||||
stRSASSA_PKCS1_v1_5_WITH_SHA_1 = 0x02,
|
stRSASSA_PKCS1_v1_5_WITH_SHA_1 = 0x02,
|
||||||
stDSA = 0x03,
|
stDSA_1024 = 0x03,
|
||||||
stECDSA = 0x04,
|
stECDSA_P192 = 0x04,
|
||||||
stNA = 0x05
|
stRSASSA_PSS_2048 = 0x05,
|
||||||
|
stRSASSA_PKCS1_v1_5_2048 = 0x06,
|
||||||
|
stDSA_2048 = 0x07,
|
||||||
|
stECDSA_P224 = 0x08,
|
||||||
|
stECDSA_K233 = 0x09,
|
||||||
|
stECDSA_B233 = 0x0a,
|
||||||
|
stECDSA_P256 = 0x0b,
|
||||||
|
stNA = 0x0c
|
||||||
} ndefSigType_t;
|
} ndefSigType_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue