Section 1 · User commands

tsscreateprimary.1

Package: tss2

TSSCREATEPRIMARY

NAME
DESCRIPTION


NAME

tsscreateprimary − Runs tsscreateprimary

DESCRIPTION

tsscreateprimary creates a primary storage key

Runs TPM2_CreatePrimary

[−hihierarchy (e, o, p, n) (default null)]
[−pwdppassword for hierarchy (default empty)]

[−pwdpi

password file name for hierarchy (default empty)]

[−pwdkpassword for key (default empty)]
[−iuinPublic unique field file (default none)]
[−opupublic key file name (default do not save)]
[−opempublic key PEM format file name (default do not save)]
[−tkoutput ticket file name]
[−choutput creation hash file name]
[−cdoutput creation data file name (default do not save)]

[Asymmetric Key Algorithm]

−rsa [keybits] (default)

(2048 default)

−ecc curve

bnp256 nistp256 nistp384

Key attributes

−bldata blob for unseal (create only) requires −if
−dendecryption, (unrestricted, RSA and EC NULL scheme)
−deodecryption, (unrestricted, RSA OAEP, EC NULL scheme)
−deedecryption, (unrestricted, RSA ES, EC NULL scheme)
−desencryption/decryption, AES symmetric [−116 for TPM rev 116 compatibility]
−ststorage (restricted) [default for primary keys]
−siunrestricted signing (RSA and EC NULL scheme)
−sirrestricted signing (RSA RSASSA, EC ECDSA scheme)
−dauunrestricted ECDAA signing key pair
−darrestricted ECDAA signing key pair
−khkeyed hash (unrestricted, hmac)
−khrkeyed hash (restricted, hmac)
−dpderivation parent
−gpgeneral purpose, not storage
[−kt(can be specified more than once)]

f fixedTPM (default for primary keys and derivation parents)

p fixedParent (default for primary keys and derivation parents)

nf no fixedTPM (default for non−primary keys)

np no fixedParent (default for non−primary keys)

ed encrypted duplication (default not set)

[−daobject subject to DA protection (default no)]
[−polpolicy file (default empty)]
[−uwauserWithAuth attribute clear (default set)]
[−ifdata (inSensitive) file name]
[−nalgname hash algorithm (sha1, sha256, sha384, sha512) (default sha256)]
[−halgscheme hash algorithm (sha1, sha256, sha384, sha512) (default sha256)]

−se[0−2] session handle / attributes (default PWAP)

01 continue

20 command decrypt

40 response encrypt

Depending on the build configuration, some hash algorithms may not be available.