Use the passed in algorithm when creating the signing key.