Add support for selecting the RSA key used for signature validation

This patch only reorganizes the code to allow to select a key, it doesn't
contain any functional changes.

Change-Id: I97a03669c5dbb6734fa7e2de4c8724ccefb1566e
7 files changed