def calc_rsassa_pss_sig(self, data): h = enc._generate_ID(data) privkey = self._private_key() signer = self._rsassa_pss_signer() return signer.sign(h)
def verify_rsassa_pss_sig(self, data, signature): h = enc._generate_ID(data) signer = self._rsassa_pss_verifier() return signer.verify(h, signature)