Skip to content

Commit ca682d6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0ec1c00 commit ca682d6

15 files changed

Lines changed: 25 additions & 22 deletions

samples/destroy_by_ID.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1919
"""
2020

21-
2221
import PyKCS11
2322

2423
# the CKA_ID of the objects to destroy

samples/ec_generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
(PyKCS11.CKA_ID, key_id),
6666
]
6767

68-
(pub_key, priv_key) = session.generateKeyPair(
68+
pub_key, priv_key = session.generateKeyPair(
6969
ec_public_tmpl, ec_priv_tmpl, mecha=PyKCS11.MechanismECGENERATEKEYPAIR
7070
)
7171

samples/ec_signature.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2121
"""
2222

23-
2423
import binascii
2524

2625
import PyKCS11

samples/encrypt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1919
"""
2020

21-
2221
import binascii
2322

2423
import PyKCS11

samples/events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1919
"""
2020

21-
2221
import getinfo
2322

2423
import PyKCS11

samples/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
(PyKCS11.CKA_ID, key_id),
6060
]
6161

62-
(pubKey, privKey) = session.generateKeyPair(pubTemplate, privTemplate)
62+
pubKey, privKey = session.generateKeyPair(pubTemplate, privTemplate)
6363

6464
# logout
6565
session.logout()

samples/getinfo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1919
"""
2020

21-
2221
import getopt
2322
import platform
2423
import sys

samples/modulus.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1919
"""
2020

21-
2221
import binascii
2322

2423
from PyKCS11 import (

samples/rsa_encrypt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
(PyKCS11.CKA_ID, (0x43,)),
5757
]
5858

59-
(pubKey, privKey) = session.generateKeyPair(pubTemplate, privTemplate)
59+
pubKey, privKey = session.generateKeyPair(pubTemplate, privTemplate)
6060

6161
PLAINTEXT = "A test string"
6262
mech = PyKCS11.RSAOAEPMechanism(PyKCS11.CKM_SHA_1, PyKCS11.CKG_MGF1_SHA1)

samples/unblock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1919
"""
2020

21-
2221
import PyKCS11
2322

2423
pin = "1234"

0 commit comments

Comments
 (0)