forked from tpm2-software/tpm2-tss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAPI: Add new profile P_RSA3072SHA256 P_ECCP384SHA384
* The new profiles are added to the dist directory. * The key size 3072 and 4092 is added to the json serialization and deserialization. Signed-off-by: Juergen Repp <[email protected]>
- Loading branch information
1 parent
48ce2d4
commit 15d5656
Showing
5 changed files
with
155 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"type": "TPM2_ALG_ECC", | ||
"nameAlg":"TPM2_ALG_SHA384", | ||
"srk_template": "system,restricted,decrypt,0x81000001", | ||
"srk_description": "Storage root key SRK", | ||
"srk_persistent": 0, | ||
"ek_template": "system,restricted,decrypt,user", | ||
"ek_description": "Endorsement key EK", | ||
"ecc_signing_scheme": { | ||
"scheme":"TPM2_ALG_ECDSA", | ||
"details":{ | ||
"hashAlg":"TPM2_ALG_SHA384" | ||
}, | ||
}, | ||
"sym_mode":"TPM2_ALG_CFB", | ||
"sym_parameters": { | ||
"algorithm":"TPM2_ALG_AES", | ||
"keyBits":"256", | ||
"mode":"TPM2_ALG_CFB" | ||
}, | ||
"sym_block_size": 16, | ||
"pcr_selection": [ | ||
{ "hash": "TPM2_ALG_SHA1", | ||
"pcrSelect": [ ], | ||
}, | ||
{ "hash": "TPM2_ALG_SHA256", | ||
"pcrSelect": [ 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ] | ||
} | ||
], | ||
"curveID": "TPM2_ECC_NIST_P384", | ||
"ek_policy": { | ||
"description": "Endorsement hierarchy used for policy secret.", | ||
"policy":[ | ||
{ | ||
"type": "PolicyOR", | ||
"branches": [ | ||
{ | ||
"name": "A", | ||
"description": "", | ||
"policy": [ | ||
{ | ||
"type":"POLICYSECRET", | ||
"objectName": "4000000b" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "B", | ||
"description": "", | ||
"policy": [ | ||
{ | ||
"type":"AUTHORIZENV", | ||
"nvPublic": { | ||
"size": 60, | ||
"nvPublic": { | ||
"nvIndex": 29392642, | ||
"nameAlg":"SHA384", | ||
"attributes":{ | ||
"PPWRITE":0, | ||
"OWNERWRITE":0, | ||
"AUTHWRITE":0, | ||
"POLICYWRITE":1, | ||
"POLICY_DELETE":0, | ||
"WRITELOCKED":0, | ||
"WRITEALL":1, | ||
"WRITEDEFINE":0, | ||
"WRITE_STCLEAR":0, | ||
"GLOBALLOCK":0, | ||
"PPREAD":1, | ||
"OWNERREAD":1, | ||
"AUTHREAD":1, | ||
"POLICYREAD":1, | ||
"NO_DA":1, | ||
"ORDERLY":0, | ||
"CLEAR_STCLEAR":0, | ||
"READLOCKED":0, | ||
"WRITTEN":1, | ||
"PLATFORMCREATE":0, | ||
"READ_STCLEAR":0, | ||
"TPM2_NT":"ORDINARY" | ||
}, | ||
"authPolicy":"8bbf2266537c171cb56e403c4dc1d4b64f432611dc386e6f532050c3278c930e143e8bb1133824ccb431053871c6db53", | ||
"dataSize":50 | ||
} | ||
} | ||
|
||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"type": "TPM2_ALG_RSA", | ||
"nameAlg":"TPM2_ALG_SHA256", | ||
"srk_template": "system,restricted,decrypt,0x81000001", | ||
"srk_description": "Storage root key SRK", | ||
"srk_persistent": 1, | ||
"ek_template": "system,restricted,decrypt", | ||
"ek_description": "Endorsement key EK", | ||
"rsa_signing_scheme": { | ||
"scheme":"TPM2_ALG_RSAPSS", | ||
"details":{ | ||
"hashAlg":"TPM2_ALG_SHA256" | ||
} | ||
}, | ||
"rsa_decrypt_scheme": { | ||
"scheme":"TPM2_ALG_OAEP", | ||
"details":{ | ||
"hashAlg":"TPM2_ALG_SHA256" | ||
} | ||
}, | ||
"sym_mode":"TPM2_ALG_CFB", | ||
"sym_parameters": { | ||
"algorithm":"TPM2_ALG_AES", | ||
"keyBits":"128", | ||
"mode":"TPM2_ALG_CFB" | ||
}, | ||
"sym_block_size": 16, | ||
"pcr_selection": [ | ||
{ "hash": "TPM2_ALG_SHA1", | ||
"pcrSelect": [ ] | ||
}, | ||
{ "hash": "TPM2_ALG_SHA256", | ||
"pcrSelect": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ] | ||
} | ||
], | ||
"exponent": 0, | ||
"keyBits": 2048, | ||
"session_hash_alg": "TPM2_ALG_SHA256", | ||
"session_symmetric":{ | ||
"algorithm":"TPM2_ALG_AES", | ||
"keyBits":"128", | ||
"mode":"TPM2_ALG_CFB" | ||
}, | ||
"ek_policy": { | ||
"description": "Endorsement hierarchy used for policy secret.", | ||
"policy":[ | ||
{ | ||
"type":"POLICYSECRET", | ||
"objectName": "4000000b" | ||
} | ||
] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters