IPWorks OpenPGP 2020 Python Edition

Questions / Feedback?

on_signature_info Event

Fired during verification of the signed message.


class OpenPGPSignatureInfoEventParams(object):
  def key_id() -> str: ...
  def signing_algorithm() -> str: ...
  def public_key_algorithm() -> str: ...

# In class OpenPGP:
def on_signature_info() -> Callable[[OpenPGPSignatureInfoEventParams], None]: ...
def on_signature_info(event_hook: Callable[[OpenPGPSignatureInfoEventParams], None]) -> None: ...


This event fires when the verify_signature or decrypt_and_verify_signature method is called. It provides information about the signature of the message.

KeyId is the Id of the key used to sign the message. If a subkey was used to sign the message this will be the Id of that subkey. It is the hex-encoded, 4- or 8-byte Id of the key. It is the same as the last 4 or 8 bytes of the Fingerprint. For instance:

This can be used to identify the correct key to specify in the SignerKey* properties. This property can be set from within this event as this event fires directly before the verification process begins.

SigningAlgorithm describes the hash algorithm used when the message was originally signed. This value is applicable only to the message signature, not the key used to sign the message. Possible values are:

  • SHA1
  • SHA256
  • SHA384
  • SHA512
  • SHA224
  • MD5

PublicKeyAlgorithm is the algorithm of the public key used to sign the message. Possible values are:

  • RSA
  • DSA
  • EdDSA

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks OpenPGP 2020 Python Edition - Version 20.0 [Build 8161]