Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)