Example #1
0
    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)
Example #2
0
    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)
Example #3
0
    def verify_rsassa_pss_sig(self, data, signature):
        h = enc._generate_ID(data)

        signer = self._rsassa_pss_verifier()

        return signer.verify(h, signature)
Example #4
0
    def verify_rsassa_pss_sig(self, data, signature):
        h = enc._generate_ID(data)

        signer = self._rsassa_pss_verifier()

        return signer.verify(h, signature)