Searched refs:hashctx (Results 1 – 4 of 4) sorted by relevance
/openssl/crypto/ec/curve448/ |
H A D | eddsa.c | 27 EVP_MD_CTX *hashctx = EVP_MD_CTX_new(); in oneshot_hash() local 31 if (hashctx == NULL) in oneshot_hash() 38 if (!EVP_DigestInit_ex(hashctx, shake256, NULL) in oneshot_hash() 45 EVP_MD_CTX_free(hashctx); in oneshot_hash() 164 EVP_MD_CTX *hashctx = EVP_MD_CTX_new(); in ossl_c448_ed448_sign() local 171 if (hashctx == NULL) in ossl_c448_ed448_sign() 191 || !EVP_DigestUpdate(hashctx, in ossl_c448_ed448_sign() 258 EVP_MD_CTX_free(hashctx); in ossl_c448_ed448_sign() 340 if (hashctx == NULL in ossl_c448_ed448_verify() 347 EVP_MD_CTX_free(hashctx); in ossl_c448_ed448_verify() [all …]
|
/openssl/test/ |
H A D | curve448_internal_test.c | 585 static const uint8_t *dohash(EVP_MD_CTX *hashctx, const uint8_t *msg, in dohash() argument 590 if (!EVP_DigestInit_ex(hashctx, EVP_shake256(), NULL) in dohash() 591 || !EVP_DigestUpdate(hashctx, msg, msglen) in dohash() 592 || !EVP_DigestFinalXOF(hashctx, hashout, sizeof(hashout))) in dohash() 601 EVP_MD_CTX *hashctx = EVP_MD_CTX_new(); in test_ed448() local 603 if (!TEST_ptr(hashctx) in test_ed448() 633 dohash(hashctx, phmsg1, in test_ed448() 638 dohash(hashctx, phmsg2, in test_ed448() 643 EVP_MD_CTX_free(hashctx); in test_ed448() 647 EVP_MD_CTX_free(hashctx); in test_ed448()
|
/openssl/providers/implementations/keymgmt/ |
H A D | ecx_kmgmt.c | 1223 EVP_MD_CTX *hashctx = NULL; in s390x_ecd_keygen448() local 1249 hashctx = EVP_MD_CTX_new(); in s390x_ecd_keygen448() 1250 if (hashctx == NULL) in s390x_ecd_keygen448() 1252 if (EVP_DigestInit_ex(hashctx, shake, NULL) != 1) in s390x_ecd_keygen448() 1254 if (EVP_DigestUpdate(hashctx, privkey, 57) != 1) in s390x_ecd_keygen448() 1256 if (EVP_DigestFinalXOF(hashctx, buff, sizeof(buff)) != 1) in s390x_ecd_keygen448() 1268 EVP_MD_CTX_free(hashctx); in s390x_ecd_keygen448() 1274 EVP_MD_CTX_free(hashctx); in s390x_ecd_keygen448()
|
/openssl/crypto/ec/ |
H A D | ecx_meth.c | 1104 EVP_MD_CTX *hashctx = NULL; in s390x_pkey_ecd_keygen448() local 1124 hashctx = EVP_MD_CTX_new(); in s390x_pkey_ecd_keygen448() 1125 if (hashctx == NULL) in s390x_pkey_ecd_keygen448() 1132 rv = EVP_DigestInit_ex(hashctx, md, NULL); in s390x_pkey_ecd_keygen448() 1137 if (EVP_DigestUpdate(hashctx, privkey, 57) != 1) in s390x_pkey_ecd_keygen448() 1139 if (EVP_DigestFinalXOF(hashctx, buff, sizeof(buff)) != 1) in s390x_pkey_ecd_keygen448() 1153 EVP_MD_CTX_free(hashctx); in s390x_pkey_ecd_keygen448() 1157 EVP_MD_CTX_free(hashctx); in s390x_pkey_ecd_keygen448()
|
Completed in 19 milliseconds