Skip to content
Commit e73cb4a7 authored by Jamin Lin's avatar Jamin Lin
Browse files

socsec: change rsa order to big endian for AST2600 A3



In general, software such as openssl calculates digest(big endian) of input data and uses big-endian digest to sign for RSA signature creation.

However, AST2600 A1 only supports little endian. In other words, AST2600 A1 crypto hardware engine digest output is “little endian”.
That is why our SOCSEC tool reverse signature and digest to match the AST2600 A1 crypto engine design(little endian).

AST2600 A3 changed the design to support big endian. ASPEED recommends using big endian to remain compatible with general software tool design
and therefore SOCSEC tool does not need to reverse digest and signature.

Default to big endian for OpenBMC platforms as A3 is production silicon, and earlier revisions are not well supported.

Signed-off-by: default avatarJamin Lin <jamin_lin@aspeedtech.com>
Change-Id: Iba46f704b86990d53937f104c3c601da5a3c111f
parent 743f9b46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment