diff options
Diffstat (limited to 'firmware/bdb/sha.c')
-rw-r--r-- | firmware/bdb/sha.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/firmware/bdb/sha.c b/firmware/bdb/sha.c deleted file mode 100644 index d73098df..00000000 --- a/firmware/bdb/sha.c +++ /dev/null @@ -1,20 +0,0 @@ -/* Copyright 2016 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. - */ - -#include <string.h> - -#include "2sha.h" -#include "bdb.h" - -int bdb_sha256(void *digest, const void *buf, size_t size) -{ - struct vb2_sha256_context ctx; - - vb2_sha256_init(&ctx); - vb2_sha256_update(&ctx, buf, size); - vb2_sha256_finalize(&ctx, digest); - - return BDB_SUCCESS; -} |