tools: trust_merger: support option for RSA algorithm and SHA algorithm

1. RSA option: --rsa [algorithm magic]

  --rsa 0: none RSA
  --rsa 1: RSA 1024
  --rsa 2: RSA 2048
  --rsa 3: RSA 2048 PSS(PKCS1 V2.1, only RK3308/PX30/RK3326 need)

2. SHA option: --sha [algorithm magic]
  --sha 0: none sha
  --sha 1: SHA 160
  --sha 2: rk big endian SHA 256(only rk3368 need)
  --sha 3: little endian SHA 256

Change-Id: I54bc8e1b1e5f4a8aadb6787da1f17ffeb55ff1dd
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen
2018-05-11 10:29:52 +08:00
committed by Jianhong Chen
parent 95dad4ad6e
commit 1bd61eb3e4

Binary file not shown.