mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
add der print sketch
This commit is contained in:
parent
64df44d186
commit
5e3fa42c23
3 changed files with 5 additions and 2 deletions
|
@ -340,6 +340,9 @@ int CmdHFFidoRegister(const char *cmd) {
|
||||||
uint8_t public_key[65] = {0};
|
uint8_t public_key[65] = {0};
|
||||||
|
|
||||||
// TODO: print DER certificate in DER view
|
// TODO: print DER certificate in DER view
|
||||||
|
PrintAndLog("----------------DER TLV-----------------");
|
||||||
|
asn1_print(&buf[67 + keyHandleLen], derLen, " ");
|
||||||
|
PrintAndLog("----------------DER TLV-----------------");
|
||||||
|
|
||||||
// load CA's
|
// load CA's
|
||||||
mbedtls_x509_crt cacert;
|
mbedtls_x509_crt cacert;
|
||||||
|
|
|
@ -55,7 +55,7 @@ exit:
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int asn1_print(uint8_t *asn1buf, int level) {
|
int asn1_print(uint8_t *asn1buf, size_t asn1buflen, char *indent) {
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
extern int asn1_print(uint8_t *asn1buf, int level);
|
extern int asn1_print(uint8_t *asn1buf, size_t asn1buflen, char *indent);
|
||||||
extern int ecdsa_asn1_get_signature(uint8_t *signature, size_t signaturelen, uint8_t *rval, uint8_t *sval);
|
extern int ecdsa_asn1_get_signature(uint8_t *signature, size_t signaturelen, uint8_t *rval, uint8_t *sval);
|
||||||
|
|
||||||
#endif /* asn1utils.h */
|
#endif /* asn1utils.h */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue