Home
last modified time | relevance | path

Searched refs:hashContext (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/crypto/third_party/nss/
Drsawrapr.c27 void *hashContext; in MGF1() local
34 hashContext = (*hash->create)(); in MGF1()
44 (*hash->begin)(hashContext); in MGF1()
45 (*hash->update)(hashContext, mgfSeed, mgfSeedLen); in MGF1()
46 (*hash->update)(hashContext, C, sizeof C); in MGF1()
50 (*hash->end)(hashContext, tempHash, &digestLen, hash->length); in MGF1()
53 (*hash->end)(hashContext, temp, &digestLen, hash->length); in MGF1()
58 (*hash->destroy)(hashContext, PR_TRUE); in MGF1()
/external/tpm2/
DCpriHash.c509 EVP_MD_CTX hashContext; in _cpri__HashBlock() local
519 EVP_MD_CTX_init(&hashContext); // Initialize the local hash context in _cpri__HashBlock()
523 || (EVP_DigestInit_ex(&hashContext, hashServer, NULL) != 1) in _cpri__HashBlock()
524 || (EVP_DigestUpdate(&hashContext, data, dataSize) != 1)) in _cpri__HashBlock()
533 if(EVP_DigestFinal_ex(&hashContext, b, &dSize) != 1) in _cpri__HashBlock()
540 if((EVP_DigestFinal_ex(&hashContext, digest, &dSize)) != 1) in _cpri__HashBlock()
545 EVP_MD_CTX_cleanup(&hashContext); in _cpri__HashBlock()
672 EVP_MD_CTX hashContext; in _cpri__MGF1() local
688 EVP_MD_CTX_init(&hashContext); // Initialize the local hash context in _cpri__MGF1()
698 if( (EVP_DigestInit_ex(&hashContext, hashServer, NULL) != 1) in _cpri__MGF1()
[all …]
Dpart4.txt27019 364 EVP_MD_CTX hashContext;
27031 376 EVP_MD_CTX_init(&hashContext); // Initialize the local hash context
27036 381 || (EVP_DigestInit_ex(&hashContext, hashServer, NULL) != 1)
27037 382 || (EVP_DigestUpdate(&hashContext, data, dataSize) != 1))
27046 391 if(EVP_DigestFinal_ex(&hashContext, b, &dSize) != 1)
27053 398 if((EVP_DigestFinal_ex(&hashContext, digest, &dSize)) != 1)
27058 403 EVP_MD_CTX_cleanup(&hashContext);
27211 499 EVP_MD_CTX hashContext;
27230 518 EVP_MD_CTX_init(&hashContext); // Initialize the local hash context
27242 530 if( (EVP_DigestInit_ex(&hashContext, hashServer, NULL) != 1)
[all …]