mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
vba_update_buc writes a BUC (boot unlock code) to NVM-RW. It will be called by AP-RW to update a BUC. BUG=chrome-os-partner:51907 BRANCH=tot TEST=make runtests Change-Id: Ic91f34b60b11ebce948bce01993ddb44519a59b8 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/346233
52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
/* 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 "bdb_api.h"
|
|
#include "bdb.h"
|
|
|
|
__attribute__((weak))
|
|
uint32_t vbe_get_vboot_register(enum vboot_register type)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
__attribute__((weak))
|
|
void vbe_set_vboot_register(enum vboot_register type, uint32_t val)
|
|
{
|
|
return;
|
|
}
|
|
|
|
__attribute__((weak))
|
|
void vbe_reset(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
__attribute__((weak))
|
|
int vbe_read_nvm(enum nvm_type type, uint8_t *buf, uint32_t size)
|
|
{
|
|
return BDB_ERROR_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
__attribute__((weak))
|
|
int vbe_write_nvm(enum nvm_type type, void *buf, uint32_t size)
|
|
{
|
|
return BDB_ERROR_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
__attribute__((weak))
|
|
int vbe_aes256_encrypt(const uint8_t *msg, uint32_t len, const uint8_t *key,
|
|
uint8_t *out)
|
|
{
|
|
return BDB_ERROR_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
__attribute__((weak))
|
|
int vbe_aes256_decrypt(const uint8_t *msg, uint32_t len, const uint8_t *key,
|
|
uint8_t *out)
|
|
{
|
|
return BDB_ERROR_NOT_IMPLEMENTED;
|
|
}
|