From ef15d6bf5c89008ed0b900ca0bab9dc8d770af30 Mon Sep 17 00:00:00 2001 From: Jimmy Hartzell Date: Wed, 27 Jun 2018 14:30:13 -0400 Subject: [PATCH] support in delegate parsing for P-256 --- src/protocol.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/protocol.c b/src/protocol.c index e5d96fb5..38457842 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -87,6 +87,9 @@ void guard_valid_self_delegation(const void *data, size_t length, cx_curve_t cur case CX_CURVE_SECP256K1: curve_code = 1; break; + case CX_CURVE_SECP256R1: + curve_code = 2; + break; default: PARSE_ERROR(9); // Should not be reached }