lib: rsa: add support to other openssl engine types than pkcs11
authorVesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Sun, 16 Jun 2019 17:53:38 +0000 (20:53 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:23 +0000 (11:31 -0400)
commit5b123e010954d8f6ef24dd0cb1a8cbe1d7d53851
treecca21fad52e79da0f23dcad1e0866a3b7ad03a39
parent0e80dda32c8d724c2a98dbbfb2f1e59762788f15
lib: rsa: add support to other openssl engine types than pkcs11

There are multiple other openssl engines used by HSMs that can be used to
sign FIT images instead of forcing users to use pkcs11 type of service.

Relax engine selection so that other openssl engines can be specified and
use generic key id definition formula.

Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Cc: Tom Rini <trini@konsulko.com>
doc/uImage.FIT/signature.txt
lib/rsa/rsa-sign.c
tools/mkimage.c