[*] These functions have been modified to work with the Crypto.Key object, and not with a list of keys.