[sw/lib] Delete hmac.h

Signed-off-by: Miguel Young de la Sota <mcyoung@google.com>
diff --git a/sw/device/lib/hmac.h b/sw/device/lib/hmac.h
deleted file mode 100644
index 0cc9c95..0000000
--- a/sw/device/lib/hmac.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright lowRISC contributors.
-// Licensed under the Apache License, Version 2.0, see LICENSE for details.
-// SPDX-License-Identifier: Apache-2.0
-
-#ifndef OPENTITAN_SW_DEVICE_LIB_HMAC_H_
-#define OPENTITAN_SW_DEVICE_LIB_HMAC_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-/**
- * Supported HMAC operations
- */
-typedef enum hmac_ops { HMAC_OP_HMAC = 0, HMAC_OP_SHA256 = 1 } hmac_ops_t;
-
-/**
- * HMAC Configuration options.
- */
-typedef struct hmac_cfg {
-  /** Operational mode @see hmac_ops. */
-  hmac_ops_t mode;
-  /** Set to 1 to swap input bytes. */
-  uint32_t input_endian_swap;
-  /** Set to 1 to swap output bytes. */
-  uint32_t digest_endian_swap;
-  /** Input key used in HMAC mode. */
-  uint32_t keys[8];
-} hmac_cfg_t;
-
-/**
- * Intialize HMAC to desired mode.
- *
- * @param hmac_cfg HMAC configuration settings.
- */
-void hmac_init(hmac_cfg_t hmac_cfg);
-
-/**
- * Write `size_in_bytes` bytes of `data` to HMAC input buffer
- *
- * @param data pointer to input buffer.
- * @param size_in_bytes number of bytes to write.
- */
-void hmac_update(const void *data, size_t size_in_bytes);
-
-/**
- * Poll for hmac done and read out digest.
- *
- * @param[out] digest pointer to output digest buffer.
- */
-void hmac_done(uint32_t *digest);
-
-#endif  // OPENTITAN_SW_DEVICE_LIB_HMAC_H_
diff --git a/sw/device/lib/hw_sha256.h b/sw/device/lib/hw_sha256.h
deleted file mode 100644
index 1dfac14..0000000
--- a/sw/device/lib/hw_sha256.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright lowRISC contributors.
-// Licensed under the Apache License, Version 2.0, see LICENSE for details.
-// SPDX-License-Identifier: Apache-2.0
-
-#ifndef OPENTITAN_SW_DEVICE_LIB_HW_SHA256_H_
-#define OPENTITAN_SW_DEVICE_LIB_HW_SHA256_H_
-
-#include <stddef.h>
-
-#include "sw/vendor/cryptoc/include/cryptoc/hash-internal.h"
-
-typedef HASH_CTX HW_SHA256_CTX;
-
-#define SHA256_DIGEST_SIZE 32
-
-/**
- * hw_SHA256_init initializes `ctx`.
- *
- * @param ctx SHA256 context.
- */
-void hw_SHA256_init(HW_SHA256_CTX *ctx);
-
-/**
- * hw_SHA256_update adds `len` bytes from `data` to `ctx`.
- *
- * @param ctx SHA256 context.
- * @param data Input buffer.
- * @param len Number of bytes to add.
- */
-void hw_SHA256_update(HW_SHA256_CTX *ctx, const void *data, size_t len);
-
-/**
- * hw_SHA256_final adds the final padding to `ctx` and calculates digest.
- *
- * @param ctx SHA256 context.
- *
- * @return pointer to digest buffer held in `ctx`.
- */
-const uint8_t *hw_SHA256_final(HW_SHA256_CTX *ctx);
-
-/**
- * hw_SHA256_hash writes `digest` from `len` bytes of `data`.
- *
- * @param data Input buffer.
- * @param len Number of bytes to add.
- * @param[out] digest Output buffer.
- */
-const uint8_t *hw_SHA256_hash(const void *data, size_t len, uint8_t *digest);
-
-#endif  // OPENTITAN_SW_DEVICE_LIB_HW_SHA256_H_
diff --git a/sw/device/lib/meson.build b/sw/device/lib/meson.build
index eb9b7b6..5fd06e9 100644
--- a/sw/device/lib/meson.build
+++ b/sw/device/lib/meson.build
@@ -51,22 +51,6 @@
   )
 )
 
-# HMAC library (sw_lib_hmac)
-sw_lib_hmac = declare_dependency(
-  link_with: static_library(
-    'hmac_ot',
-    sources: [
-      hw_ip_hmac_reg_h,
-      'hw_sha256.c',
-      'hmac.c',
-    ],
-    dependencies: [
-      sw_lib_mem,
-      top_earlgrey,
-    ]
-  )
-)
-
 # IRQ library (sw_lib_irq)
 sw_lib_irq = declare_dependency(
   link_with: static_library(