summaryrefslogtreecommitdiff
path: root/firmware/bdb/ecdsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/bdb/ecdsa.c')
-rw-r--r--firmware/bdb/ecdsa.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/bdb/ecdsa.c b/firmware/bdb/ecdsa.c
new file mode 100644
index 00000000..f4d17287
--- /dev/null
+++ b/firmware/bdb/ecdsa.c
@@ -0,0 +1,17 @@
+/* Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ * Boot descriptor block firmware ECDSA stub
+ */
+
+#include <string.h>
+#include "bdb.h"
+
+int bdb_ecdsa521_verify(const uint8_t *key_data,
+ const uint8_t *sig,
+ const uint8_t *digest)
+{
+ /* This is just a stub */
+ return BDB_ERROR_DIGEST;
+}