summaryrefslogtreecommitdiff
path: root/include/u2f_impl.h
diff options
context:
space:
mode:
authorLouis Collard <louiscollard@chromium.org>2019-08-12 15:54:40 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-23 09:09:16 +0000
commit84ba4bb756187dac279c70fe6915e3437199d040 (patch)
tree0a8533067c025cc679897c09878e4046501f98b1 /include/u2f_impl.h
parentbfdf551cf25c51f0781d1e8e5aeb395c5213ba7c (diff)
downloadchrome-ec-84ba4bb756187dac279c70fe6915e3437199d040.tar.gz
cr50: Delete legacy U2F implementation
This implementation has been replaced, and is no longer needed. Removing it frees 2376 bytes in flash. BRANCH=none BUG=b:138578925 TEST=test_that ... firmware_IntegratedU2F Signed-off-by: Louis Collard <louiscollard@chromium.org> Change-Id: Id5b2009bb1b56ae25de9173acb5d5e67eaf1caa3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1748847 Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'include/u2f_impl.h')
-rw-r--r--include/u2f_impl.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/u2f_impl.h b/include/u2f_impl.h
index 41d4bf97bc..ec1fb3c16a 100644
--- a/include/u2f_impl.h
+++ b/include/u2f_impl.h
@@ -11,21 +11,6 @@
#include "common.h"
#include "cryptoc/p256.h"
-/* APDU fields to pass around */
-struct apdu {
- uint8_t p1;
- uint8_t p2;
- uint16_t len;
- const uint8_t *data;
-};
-
-/*
- * Parses an APDU-framed message according to the u2f protocol.
- *
- * @return 0 on failure, output buffer's byte count on success.
- */
-unsigned u2f_apdu_rcv(uint8_t *buffer, unsigned in_len, unsigned max_len);
-
/* ---- Physical presence ---- */
enum touch_state {
@@ -149,8 +134,4 @@ int g2f_attestation_cert(uint8_t *buf);
/* Use non-standard extensions to the U2F protocol */
int use_g2f(void);
-/* call extensions for unsupported U2F INS */
-unsigned u2f_custom_dispatch(uint8_t ins, struct apdu apdu, uint8_t *buf,
- unsigned *ret_len) __attribute__((weak));
-
#endif /* __CROS_EC_U2F_IMPL_H */