Home
last modified time | relevance | path

Searched refs:signKey (Results 1 – 13 of 13) sorted by relevance

/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Attestation/
DCertifyX509.c71 OBJECT *signKey = HandleToObject(in->signHandle); in TPM2_CertifyX509() local
96 if(!IsSigningObject(signKey)) in TPM2_CertifyX509()
100 if(!CryptSelectSignScheme(signKey, &in->inScheme)) in TPM2_CertifyX509()
162 (X509AddSigningAlgorithm(NULL, signKey, &in->inScheme) == 0)) in TPM2_CertifyX509()
190 certTBS[SIGNATURE_REF].len = X509AddSigningAlgorithm(&ctxOut, signKey, in TPM2_CertifyX509()
198 digest->size = (INT16)CryptHashStart(&hash, signKey->publicArea.nameAlg); in TPM2_CertifyX509()
209 CryptDigestUpdate2B(&hash, &signKey->name.b); in TPM2_CertifyX509()
276 result = CryptSign(signKey, &in->inScheme, &out->tbsDigest, &out->signature); in TPM2_CertifyX509()
DAttest_spt.c124 OBJECT *signKey, // IN: sign object in SignAttestInfo() argument
143 if(signKey == NULL) in SignAttestInfo()
169 result = CryptSign(signKey, scheme, &digest, signature); in SignAttestInfo()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/X509/
DX509_RSA.c55 OBJECT *signKey, in X509AddSigningAlgorithmRSA() argument
63 NOT_REFERENCED(signKey); in X509AddSigningAlgorithmRSA()
121 (INT16)signKey->publicArea.unique.rsa.t.size); in X509AddSigningAlgorithmRSA()
DX509_spt.c227 OBJECT *signKey, in X509AddSigningAlgorithm() argument
231 switch(signKey->publicArea.type) in X509AddSigningAlgorithm()
235 return X509AddSigningAlgorithmRSA(signKey, scheme, ctx); in X509AddSigningAlgorithm()
239 return X509AddSigningAlgorithmECC(signKey, scheme, ctx); in X509AddSigningAlgorithm()
DX509_ECC.c75 OBJECT *signKey, in X509AddSigningAlgorithmECC() argument
82 NOT_REFERENCED(signKey); in X509AddSigningAlgorithmECC()
/external/ms-tpm-20-ref/TPMCmd/tpm/include/prototypes/
DCryptEccSignature_fp.h75 OBJECT *signKey, // IN: ECC key to sign the hash
106 OBJECT *signKey, // IN: ECC key signed the hash
DX509_RSA_fp.h52 OBJECT *signKey,
DX509_ECC_fp.h61 OBJECT *signKey,
DAttest_spt_fp.h66 OBJECT *signKey, // IN: sign object
DX509_spt_fp.h91 OBJECT *signKey,
DCryptUtil_fp.h353 OBJECT *signKey, // IN: signing key
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptEccSignature.c504 OBJECT *signKey, // IN: ECC key to sign the hash in CryptEccSign() argument
510 CURVE_INITIALIZED(E, signKey->publicArea.parameters.eccDetail.curveID); in CryptEccSign()
511 ECC_INITIALIZED(bnD, &signKey->sensitive.sensitive.ecc.b); in CryptEccSign()
534 bnD, digest, scheme, signKey, rand); in CryptEccSign()
762 OBJECT *signKey, // IN: ECC key signed the hash in CryptEccValidateSignature() argument
766 CURVE_INITIALIZED(E, signKey->publicArea.parameters.eccDetail.curveID); in CryptEccValidateSignature()
769 POINT_INITIALIZED(ecQ, &signKey->publicArea.unique.ecc); in CryptEccValidateSignature()
DCryptUtil.c56 OBJECT *signKey, // IN: HMAC key sign the hash in CryptHmacSign() argument
64 &signKey->sensitive.sensitive.bits.b); in CryptHmacSign()
81 OBJECT *signKey, // IN: HMAC key signed the hash in CryptHMACVerifySignature() argument
88 &signKey->publicArea.parameters.keyedHashDetail.scheme; in CryptHMACVerifySignature()
106 CryptHmacSign(&test, signKey, hashData); in CryptHMACVerifySignature()
1424 OBJECT *signKey, // IN: signing key in CryptSign() argument
1437 if((signature->sigAlg == TPM_ALG_NULL) || (signKey == NULL)) in CryptSign()
1446 switch(signKey->publicArea.type) in CryptSign()
1450 result = CryptRsaSign(signature, signKey, digest, NULL); in CryptSign()
1458 result = CryptEccSign(signature, signKey, digest, in CryptSign()
[all …]