mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
7b7851abfb
Fixes alignment faults that occured in the AES256 implementations while wrapping or unwrapping keys on imx53_qsb, imx6q_sabrelite, and imx7d_sabre. The problem was that the unwrap_key/wrap_key functions did reinterpret casts from unsigned char pointers to uint64_t pointers and then directly used the 64 bit values of referenced by the latter. Most probably this caused the compiler to optimize operations in the assumption that the pointer is 8-byte aligned which then created alignment faults. As a solution, this commit changes the interface of the wrap_key/unwrap_key functions to take uint64 pointers as arguments instead of unsigned char pointers and then adapts the function users to ensure that they refer to appropriately aligned memory regions. Fixed #4932 |
||
---|---|---|
.. | ||
include | ||
lib | ||
recipes | ||
run | ||
sculpt | ||
src | ||
README |
This directory is a source-code repository containing Genode-specific services and applications. In contrast to the components hosted in the 'os' repository, programs contained in 'gems' are able to leverage the functionalities provided by higher-level repositories such as 'libports'. To use the 'gems' repository, make sure to also add those repositories to your build configuraion.