Home | History | Annotate | Download | only in tpm2

Lines Matching refs:digest

789 //      It is a fatal error if rOut, sOut, dIn, or digest are not provided.
798 TPM2B *digest // IN: the value to sign
813 pAssert(rOut != NULL && sOut != NULL && dIn != NULL && digest != NULL);
877 // Set z = leftmost bits of the digest
880 if(digest->size > curveData->n->size)
885 // digest is larger than n so truncate
886 BN_bin2bn(digest->buffer, curveData->n->size, bnZ);
892 pAssert(digest->size <= MAX_DIGEST_SIZE);
893 // digest is same or smaller than n so use it all
894 BN_bin2bn(digest->buffer, digest->size, bnZ);
940 // b) T is the digest to be signed, and
971 // of a TPM2B_ECC_PARAMETER and tIn can be no larger than a digest.
1059 // CRYPT_SCHEME hashAlg can't produce zero-length digest
1068 TPM2B *digest, // IN: the digest to sign
1088 && digest != NULL && curveData != NULL);
1091 // If the digest does not produce a hash, then null the signature and return
1147 _cpri__UpdateHash(&hashState, digest->size, digest->buffer);
1223 // This function signs a digest using the method defined in SM2 Part 2. The method in the standard will add
1225 // with the message to produce a digest (e) that is signed. This function signs e.
1240 TPM2B *digest // IN: the digest to sign
1268 BnFrom2B(bnE, digest);
1373 TPM2B *digest, // IN: the digest to sign
1381 return SignEcdsa(rOut, sOut, curveId, dIn, digest);
1387 return EcDaa(rOut, sOut, curveId, dIn, digest, kIn);
1392 return SchnorrEcc(rOut, sOut, hashAlg, curveId, dIn, digest, kIn);
1397 return SignSM2(rOut, sOut, curveId, dIn, digest);
1424 TPM2B *digest // IN: the digest that was signed
1496 t = (digest->size > rIn->t.size) ? rIn->t.size : digest->size;
1497 if(BN_bin2bn(digest->buffer, t, bnE) == NULL)
1550 TPM2B *digest // IN: the digest that was signed
1565 pAssert(rIn != NULL && sIn != NULL && Qin != NULL && digest != NULL);
1583 // rPrime = h(digest || pE.x) mod n;
1585 _cpri__UpdateHash(&hashState, digest->size, digest->buffer);
1620 TPM2B *digest // IN: the digest that was signed
1651 cpy_hexTo2B(digest,
1666 BnFrom2B(bnE, digest);
1747 TPM2B *digest // IN: the digest that was signed
1757 retVal = ValidateSignatureEcdsa(rIn, sIn, curveId, Qin, digest);
1762 digest);
1767 retVal = ValidateSignatureSM2Dsa(rIn, sIn, curveId, Qin, digest);