Home
last modified time | relevance | path

Searched refs:signObject (Results 1 – 12 of 12) sorted by relevance

/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Signature/
DSign.c65 OBJECT *signObject = HandleToObject(in->keyHandle); in TPM2_Sign() local
68 if(!IsSigningObject(signObject)) in TPM2_Sign()
72 if(IS_ATTRIBUTE(signObject->publicArea.objectAttributes, TPMA_OBJECT, x509sign)) in TPM2_Sign()
77 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_Sign()
82 || IS_ATTRIBUTE(signObject->publicArea.objectAttributes, in TPM2_Sign()
107 result = CryptSign(signObject, &in->inScheme, &in->digest, &out->signature); in TPM2_Sign()
DVerifySignature.c57 OBJECT *signObject = HandleToObject(in->keyHandle); in TPM2_VerifySignature() local
62 if(!IS_ATTRIBUTE(signObject->publicArea.objectAttributes, TPMA_OBJECT, sign)) in TPM2_VerifySignature()
75 || signObject->publicArea.nameAlg == TPM_ALG_NULL) in TPM2_VerifySignature()
86 TicketComputeVerified(hierarchy, &in->digest, &signObject->name, in TPM2_VerifySignature()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Attestation/
DAttest_spt.c51 OBJECT *signObject = HandleToObject(signHandle); in FillInAttestInfo() local
56 if(signObject == NULL) in FillInAttestInfo()
73 attest->qualifiedSigner = signObject->qualifiedName; in FillInAttestInfo()
84 if((signObject == NULL) in FillInAttestInfo()
85 || (!signObject->attributes.epsHierarchy in FillInAttestInfo()
86 && !signObject->attributes.ppsHierarchy)) in FillInAttestInfo()
DGetTime.c62 OBJECT *signObject = HandleToObject(in->signHandle); in TPM2_GetTime() local
64 if(!IsSigningObject(signObject)) in TPM2_GetTime()
66 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_GetTime()
84 return SignAttestInfo(signObject, &in->inScheme, &timeInfo, &in->qualifyingData, in TPM2_GetTime()
DGetSessionAuditDigest.c64 OBJECT *signObject = HandleToObject(in->signHandle); in TPM2_GetSessionAuditDigest() local
66 if(!IsSigningObject(signObject)) in TPM2_GetSessionAuditDigest()
68 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_GetSessionAuditDigest()
90 return SignAttestInfo(signObject, &in->inScheme, &auditInfo, in TPM2_GetSessionAuditDigest()
DQuote.c58 OBJECT *signObject = HandleToObject(in->signHandle); in TPM2_Quote() local
60 if(!IsSigningObject(signObject)) in TPM2_Quote()
62 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_Quote()
94 return SignAttestInfo(signObject, &in->inScheme, &quoted, &in->qualifyingData, in TPM2_Quote()
DCertify.c58 OBJECT *signObject = HandleToObject(in->signHandle); in TPM2_Certify() local
61 if(!IsSigningObject(signObject)) in TPM2_Certify()
63 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_Certify()
90 return SignAttestInfo(signObject, &in->inScheme, &certifyInfo, in TPM2_Certify()
DGetCommandAuditDigest.c63 OBJECT *signObject = HandleToObject(in->signHandle); in TPM2_GetCommandAuditDigest() local
65 if(!IsSigningObject(signObject)) in TPM2_GetCommandAuditDigest()
67 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_GetCommandAuditDigest()
88 result = SignAttestInfo(signObject, &in->inScheme, &auditInfo, in TPM2_GetCommandAuditDigest()
DCertifyCreation.c61 OBJECT *signObject = HandleToObject(in->signHandle); in TPM2_CertifyCreation() local
63 if(!IsSigningObject(signObject)) in TPM2_CertifyCreation()
65 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_CertifyCreation()
93 return SignAttestInfo(signObject, &in->inScheme, &certifyInfo, in TPM2_CertifyCreation()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/
DNV_Certify.c70 OBJECT *signObject = HandleToObject(in->signHandle); in TPM2_NV_Certify() local
72 if(!IsSigningObject(signObject)) in TPM2_NV_Certify()
74 if(!CryptSelectSignScheme(signObject, &in->inScheme)) in TPM2_NV_Certify()
137 return SignAttestInfo(signObject, &in->inScheme, &certifyInfo, in TPM2_NV_Certify()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptUtil.c1334 OBJECT *signObject, // IN: signing key in CryptSelectSignScheme() argument
1344 if(signObject == NULL) in CryptSelectSignScheme()
1353 publicArea = &signObject->publicArea; in CryptSelectSignScheme()
1497 OBJECT *signObject = HandleToObject(keyHandle); in CryptValidateSignature() local
1498 TPMT_PUBLIC *publicArea = &signObject->publicArea; in CryptValidateSignature()
1513 result = CryptRsaValidateSignature(signature, signObject, digest); in CryptValidateSignature()
1520 result = CryptEccValidateSignature(signature, signObject, digest); in CryptValidateSignature()
1525 if(signObject->attributes.publicOnly) in CryptValidateSignature()
1528 result = CryptHMACVerifySignature(signObject, digest, signature); in CryptValidateSignature()
/external/ms-tpm-20-ref/TPMCmd/tpm/include/prototypes/
DCryptUtil_fp.h331 OBJECT *signObject, // IN: signing key