(message)
return signature
Signs the SHA256 hash of message with HQ's private key, and returns
    the binary signature. The scheme used is RSASSA-PSS.
Signs the SHA256 hash of message with HQ's private key, and returns
    the binary signature. The scheme used is RSASSA-PSS.
Signs the SHA256 hash of message with HQ s private key and returns the binary signature . The scheme used is RSASSA - PSS .
def sign(message):
    """
    Signs the SHA256 hash of message with HQ's private key, and returns
    the binary signature. The scheme used is RSASSA-PSS.
    """
    private_key = get_hq_private_key()
    sha256_hash = SHA256.new(message)
    signature = PKCS1_PSS.new(private_key).sign(sha256_hash)
    return signature
def sign ( message ) : private_key = get_hq_private_key ( ) sha256_hash = SHA256 . new ( message ) signature = PKCS1_PSS . new ( private_key ) . sign ( sha256_hash ) return signature