fix der encoding bug in u2f

This commit is contained in:
Conor Patrick
2018-05-26 15:35:58 -04:00
parent 9209bff54f
commit f73862ee3e
3 changed files with 31 additions and 46 deletions

3
ctap.h
View File

@@ -237,6 +237,9 @@ void ctap_response_init(CTAP_RESPONSE * resp);
uint8_t ctap_handle_packet(uint8_t * pkt_raw, int length, CTAP_RESPONSE * resp);
// Encodes R,S signature to 2 der sequence of two integers. Sigder must be at least 72 bytes.
// @return length of der signature
int ctap_encode_der_sig(uint8_t * sigbuf, uint8_t * sigder);
// Run ctap related power-up procedures (init pinToken, generate shared secret)
void ctap_init();