5 #ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_KEYBLOB_H_
6 #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_KEYBLOB_H_
8 #include "sw/device/lib/crypto/drivers/keymgr.h"
9 #include "sw/device/lib/crypto/impl/status.h"
20 kKeyblobHwBackedWords = kKeymgrSaltNumWords,
24 kKeyblobHwBackedBytes = kKeyblobHwBackedWords *
sizeof(uint32_t),
77 void keyblob_from_shares(
const uint32_t *share0,
const uint32_t *share1,
92 status_t keyblob_buffer_to_keymgr_diversification(
111 status_t keyblob_to_keymgr_diversification(
149 status_t keyblob_from_key_and_mask(
const uint32_t *key,
const uint32_t *mask,
185 size_t unmasked_key_len, uint32_t *unmasked_key);
189 #endif // __cplusplus
191 #endif // OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_KEYBLOB_H_