Searched refs:hashctx (Results 1 – 2 of 2) sorted by relevance
/third_party/openssl/crypto/ec/curve448/ |
D | eddsa.c | 25 EVP_MD_CTX *hashctx = EVP_MD_CTX_new(); in oneshot_hash() local 27 if (hashctx == NULL) in oneshot_hash() 30 if (!EVP_DigestInit_ex(hashctx, EVP_shake256(), NULL) in oneshot_hash() 31 || !EVP_DigestUpdate(hashctx, in, inlen) in oneshot_hash() 32 || !EVP_DigestFinalXOF(hashctx, out, outlen)) { in oneshot_hash() 33 EVP_MD_CTX_free(hashctx); in oneshot_hash() 37 EVP_MD_CTX_free(hashctx); in oneshot_hash() 48 static c448_error_t hash_init_with_dom(EVP_MD_CTX *hashctx, uint8_t prehashed, in hash_init_with_dom() argument 68 if (!EVP_DigestInit_ex(hashctx, EVP_shake256(), NULL) in hash_init_with_dom() 69 || !EVP_DigestUpdate(hashctx, dom_s, strlen(dom_s)) in hash_init_with_dom() [all …]
|
/third_party/openssl/test/ |
D | curve448_internal_test.c | 595 static const uint8_t *dohash(EVP_MD_CTX *hashctx, const uint8_t *msg, in dohash() argument 600 if (!EVP_DigestInit_ex(hashctx, EVP_shake256(), NULL) in dohash() 601 || !EVP_DigestUpdate(hashctx, msg, msglen) in dohash() 602 || !EVP_DigestFinalXOF(hashctx, hashout, sizeof(hashout))) in dohash() 611 EVP_MD_CTX *hashctx = EVP_MD_CTX_new(); in test_ed448() local 613 if (!TEST_ptr(hashctx) in test_ed448() 641 || !TEST_true(ED448ph_sign(outsig, dohash(hashctx, phmsg1, in test_ed448() 645 || !TEST_true(ED448ph_sign(outsig, dohash(hashctx, phmsg2, in test_ed448() 649 EVP_MD_CTX_free(hashctx); in test_ed448() 653 EVP_MD_CTX_free(hashctx); in test_ed448()
|