Home | History | Annotate | Download | only in tpm2

Lines Matching refs:digest

145 //      This function starts a hash and return the size, in bytes, of the digest.
149 // >0 the digest size of the algorithm
173 // Start a hash stack for a sequence object and return the size, in bytes, of the digest. This call uses the
178 // >0 the digest size of the algorithm
201 // This function starts an HMAC sequence and returns the size of the digest that will be produced.
207 // >0 the digest size of the algorithm
237 // This function starts an HMAC sequence and returns the size of the digest that will be produced.
244 // >0 the digest size of the algorithm
269 // This function starts an HMAC and returns the size of the digest that will be produced.
279 // >0 the digest size of the algorithm
296 // This function starts an HMAC sequence and returns the size of the digest that will be produced.
303 // >0 the digest size of the algorithm
320 // This function updates a digest (hash or HMAC) with an array of octets.
344 // This function updates a digest (hash or HMAC) with a TPM2B.
350 void *digestState, // IN: the digest state
354 // Only compute the digest if a pointer to the 2B is provided.
356 // to the digest occurs. This function should not provide a buffer if bIn is
414 // This function completes a hash sequence and returns the digest.
417 // If digestSize is smaller than the digest size of hash/HMAC algorithm, the most significant bytes of
422 // >=0 the number of bytes placed in digest
427 UINT16 digestSize, // IN: size of digest buffer
428 BYTE *digest // OUT: hash digest
441 return _cpri__CompleteHash(&hashState->state, digestSize, digest);
447 // This function is the same as CypteCompleteHash() but the digest is placed in a TPM2B. This is the most
448 // common use and this is provided for specification clarity. 'digest.size' should be set to indicate the number
456 digest.buffer'
461 TPM2B *digest // IN: the size of the buffer Out: requested
466 if(digest != NULL)
467 retVal = CryptCompleteHash(state, digest->size, digest->buffer);
474 // Hash a block of data and return the results. If the digest is larger than retSize, it is truncated and with the
497 // This function completes a HMAC sequence and returns the digest. If digestSize is smaller than the digest
502 // >=0 the number of bytes placed in digest
507 UINT32 digestSize, // IN: size of digest buffer
508 BYTE *digest // OUT: HMAC digest
517 digestSize, digest);
528 // >=0 the number of bytes placed in digest
533 TPM2B *digest // OUT: HMAC
537 if(digest != NULL)
538 retVal = CryptCompleteHMAC(hmacState, digest->size, digest->buffer);
564 // This function returns the digest size in bytes for a hash algorithm.
568 // 0 digest size for TPM_ALG_NULL
569 // >0 digest size
582 // Get the digest size in byte of a hash algorithm.
621 // Sign a digest using an HMAC key. This an HMAC of a digest, not an HMAC of a message.
644 (BYTE *) &signature->signature.hmac.digest);
662 TPM2B_DIGEST *hashData, // IN: digest being verified
672 // Compare digest
674 (BYTE *) &signature->signature.hmac.digest,
730 // size of the digest of the algorithm
1113 // This function is used to sign a digest with an RSA signing key.
1178 TPM2B_DIGEST *digestData, // IN: digest being signed
1505 TPM2B_DIGEST *digestData, // IN: digest being signed
1989 BYTE mask[MAX_DIGEST_SIZE]; // Allocate a digest sized buffer
2394 // The output secret value has the size of the digest produced by the nameAlg.
2462 // bits the number of bits in the digest of HashID
2498 // digest produced by the name algorithm.
2556 // of the digest produced by the nameAlg.
2570 // bits -- the number of bits in the digest of HashID
2582 // The seed size can not be bigger than the digest size of nameAlg
2612 // The seed size can not be bigger than the digest size of nameAlg
2840 // For all object types, the size of seedValue is the digest size of nameAlg
2958 // For all object types, the size of seedValue is the digest size
3360 // Sign a digest with asymmetric key or HMAC. This function is called by attestation commands and the
3361 // generic TPM2_Sign() command. This function checks the key scheme and digest size. It does not check
3368 // TPM_RC_VALUE digest value is greater than the modulus of signHandle or size of
3377 TPM2B_DIGEST *digest, // IN: The digest being signed
3404 result = CryptSignRSA(signKey, signScheme, digest, signature);
3409 result = CryptSignECC(signKey, signScheme, digest, signature);
3413 result = CryptSignHMAC(signKey, signScheme, digest, signature);
3441 TPM2B_DIGEST *digest, // IN: The digest being validated
3460 result = CryptRSAVerifySignature(authObject, digest, signature);
3465 result = CryptECCVerifySignature(authObject, digest, signature);
3472 result = CryptHMACVerifySignature(authObject, digest, signature);