stub.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Copyright 2016 The Chromium OS Authors. All rights reserved.
  2. * Use of this source code is governed by a BSD-style license that can be
  3. * found in the LICENSE file.
  4. */
  5. #include "bdb_api.h"
  6. #include "bdb.h"
  7. __attribute__((weak))
  8. uint32_t vbe_get_vboot_register(enum vboot_register type)
  9. {
  10. return 0;
  11. }
  12. __attribute__((weak))
  13. void vbe_set_vboot_register(enum vboot_register type, uint32_t val)
  14. {
  15. return;
  16. }
  17. __attribute__((weak))
  18. void vbe_reset(void)
  19. {
  20. return;
  21. }
  22. __attribute__((weak))
  23. int vbe_read_nvm(enum nvm_type type, uint8_t *buf, uint32_t size)
  24. {
  25. return BDB_ERROR_NOT_IMPLEMENTED;
  26. }
  27. __attribute__((weak))
  28. int vbe_write_nvm(enum nvm_type type, void *buf, uint32_t size)
  29. {
  30. return BDB_ERROR_NOT_IMPLEMENTED;
  31. }
  32. __attribute__((weak))
  33. int vbe_aes256_encrypt(const uint8_t *msg, uint32_t len, const uint8_t *key,
  34. uint8_t *out)
  35. {
  36. return BDB_ERROR_NOT_IMPLEMENTED;
  37. }
  38. __attribute__((weak))
  39. int vbe_aes256_decrypt(const uint8_t *msg, uint32_t len, const uint8_t *key,
  40. uint8_t *out)
  41. {
  42. return BDB_ERROR_NOT_IMPLEMENTED;
  43. }