Added unittests for reference ECC implementation.

[ Merge of http://go/wvgerrit/114284 ]

The unittests check that the ECC keys are being created as expected
and that they can perform their basic operations.

Bug: 135283522
Test: oemcrypto_unittests
Change-Id: I1bdb26421ba47e1ab135f5ce5a54da304627a7c3
This commit is contained in:
Alex Dale
2021-02-18 14:16:45 -08:00
parent 4568ed6a04
commit c42782f6d3
4 changed files with 275 additions and 1 deletions

View File

@@ -4,6 +4,8 @@
//
// Reference implementation of OEMCrypto APIs
//
#include "oemcrypto_ecc_key.h"
#include <assert.h>
#include <string.h>
@@ -18,7 +20,6 @@
#include <openssl/x509.h>
#include "log.h"
#include "oemcrypto_ecc_key.h"
#include "scoped_object.h"
namespace wvoec_ref {