Lines Matching refs:hashAlg

104    TPM_ALG_ID          hashAlg,               //   IN: hash algorithm for KDFa  in ComputeProtectionKeyParms()  argument
137 KDFa(hashAlg, (TPM2B *)seed, "STORAGE", (TPM2B *)name, NULL, in ComputeProtectionKeyParms()
158 TPMI_ALG_HASH hashAlg, // IN: algorithm to use for integrity in ComputeOuterIntegrity() argument
173 hmacKey.t.size = CryptGetHashDigestSize(hashAlg); in ComputeOuterIntegrity()
175 KDFa(hashAlg, (TPM2B *)seed, "INTEGRITY", NULL, NULL, in ComputeOuterIntegrity()
178 integrity->t.size = CryptStartHMAC2B(hashAlg, &hmacKey.b, &hmacState); in ComputeOuterIntegrity()
195 TPM_ALG_ID hashAlg, // IN: hash algorithm for inner wrap in ComputeInnerIntegrity() argument
204 integrity->t.size = CryptStartHash(hashAlg, &hashState); in ComputeInnerIntegrity()
225 TPM_ALG_ID hashAlg, // IN: hash algorithm for inner wrap in ProduceInnerIntegrity() argument
239 integritySize = sizeof(UINT16) + CryptGetHashDigestSize(hashAlg); in ProduceInnerIntegrity()
241 ComputeInnerIntegrity(hashAlg, name, dataSize, sensitiveData, &integrity); in ProduceInnerIntegrity()
262 TPM_ALG_ID hashAlg, // IN: hash algorithm for inner wrap in CheckInnerIntegrity() argument
281 ComputeInnerIntegrity(hashAlg, name, (UINT16) size, buffer, in CheckInnerIntegrity()
405 if( curveScheme->details.anySig.hashAlg != TPM_ALG_NULL in SchemeChecks()
406 && ( keyScheme->details.anySig.hashAlg in SchemeChecks()
407 != curveScheme->details.anySig.hashAlg in SchemeChecks()
470 || scheme->details.xor_.hashAlg == TPM_ALG_NULL) in SchemeChecks()
478 || scheme->details.hmac.hashAlg == TPM_ALG_NULL) in SchemeChecks()
705 TPM_ALG_ID hashAlg, // IN: hash algorithm for outer wrap in ProduceOuterWrap() argument
730 integritySize = sizeof(UINT16) + CryptGetHashDigestSize(hashAlg); in ProduceOuterWrap()
750 ComputeProtectionKeyParms(protector, hashAlg, name, seed, in ProduceOuterWrap()
758 ComputeOuterIntegrity(name, protector, hashAlg, seed, dataSize + ivSize, in ProduceOuterWrap()
790 TPM_ALG_ID hashAlg, // IN: hash algorithm for outer wrap in UnwrapOuter() argument
818 ComputeOuterIntegrity(name, protector, hashAlg, seed, in UnwrapOuter()
825 ComputeProtectionKeyParms(protector, hashAlg, name, seed, in UnwrapOuter()
874 TPMI_ALG_HASH hashAlg; // hash algorithm for integrity in SensitiveToPrivate() local
882 hashAlg = nameAlg; in SensitiveToPrivate()
887 hashAlg = ObjectGetNameAlg(parentHandle); in SensitiveToPrivate()
892 integritySize = sizeof(UINT16) + CryptGetHashDigestSize(hashAlg); in SensitiveToPrivate()
912 outPrivate->t.size = ProduceOuterWrap(parentHandle, name, hashAlg, NULL, in SensitiveToPrivate()
955 TPMI_ALG_HASH hashAlg; // hash algorithm for integrity in PrivateToSensitive() local
965 hashAlg = nameAlg; in PrivateToSensitive()
970 hashAlg = ObjectGetNameAlg(parentHandle); in PrivateToSensitive()
973 result = UnwrapOuter(parentHandle, name, hashAlg, NULL, TRUE, in PrivateToSensitive()
978 integritySize = sizeof(UINT16) + CryptGetHashDigestSize(hashAlg); in PrivateToSensitive()