summaryrefslogtreecommitdiff
path: root/lib/rsa/rsa-keyprop.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-09-16 08:08:06 -0400
committerTom Rini <trini@konsulko.com>2020-09-16 08:08:06 -0400
commitb01ba776c9ae138732d85a543878d8456e0b4b30 (patch)
treee7dd60bb2feb9f3e14bbdfcceaf393ee2e080b00 /lib/rsa/rsa-keyprop.c
parent0487bb5ecd3f8630b86390bef5d595350b97b258 (diff)
parent5bf12a78599d4a311265c174496233aa15ed4252 (diff)
Merge tag 'efi-2020-10-rc5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-10-rc5 The following bugs are fixed: * unaligned access in br_i32_decode() * missing restore of global data pointer in UEFI selftest * missing restore of global data pointer on RISC-V in UEfI subsystem * efi_var_mem_notify_exit_boot_services() should not be __efi_runtime
Diffstat (limited to 'lib/rsa/rsa-keyprop.c')
-rw-r--r--lib/rsa/rsa-keyprop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rsa/rsa-keyprop.c b/lib/rsa/rsa-keyprop.c
index 1e83eedc82..98855f67b8 100644
--- a/lib/rsa/rsa-keyprop.c
+++ b/lib/rsa/rsa-keyprop.c
@@ -12,9 +12,9 @@
#include <common.h>
#include <image.h>
#include <malloc.h>
-#include <asm/byteorder.h>
#include <crypto/internal/rsa.h>
#include <u-boot/rsa-mod-exp.h>
+#include <asm/unaligned.h>
/**
* br_dec16be() - Convert 16-bit big-endian integer to native
@@ -23,7 +23,7 @@
*/
static unsigned br_dec16be(const void *src)
{
- return be16_to_cpup(src);
+ return get_unaligned_be16(src);
}
/**
@@ -33,7 +33,7 @@ static unsigned br_dec16be(const void *src)
*/
static uint32_t br_dec32be(const void *src)
{
- return be32_to_cpup(src);
+ return get_unaligned_be32(src);
}
/**