Skip to content

Commit c0a3fe5

Browse files
authored
Merge pull request #95 from kigawas/patch-1
Fix documentation for generate_keypair
2 parents e3e34d9 + 8644e06 commit c0a3fe5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkcs11/types.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,12 @@ def generate_keypair(self, key_type, key_length=None, **kwargs):
490490
:param int key_length: Key length in bits (e.g. 256).
491491
:param bytes id: Key identifier.
492492
:param str label: Key label.
493-
:param store: Store key on token (requires R/W session).
493+
:param bool store: Store key on token (requires R/W session).
494494
:param MechanismFlag capabilities: Key capabilities (or default).
495495
:param Mechanism mechanism: Generation mechanism (or default).
496496
:param bytes mechanism_param: Optional vector to the mechanism.
497-
:param dict(Attribute,*) template: Additional attributes.
497+
:param dict(Attribute,*) private_template: Additional attributes for private key.
498+
:param dict(Attribute,*) public_template: Additional attributes for public key.
498499
499500
:rtype: (PublicKey, PrivateKey)
500501
"""

0 commit comments

Comments
 (0)