Home
last modified time | relevance | path

Searched refs:hashctx (Results 1 – 7 of 7) sorted by relevance

/third_party/openssl/crypto/ec/curve448/
Deddsa.c27 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()
39 || !EVP_DigestUpdate(hashctx, in, inlen) in oneshot_hash()
40 || !EVP_DigestFinalXOF(hashctx, out, outlen)) in oneshot_hash()
45 EVP_MD_CTX_free(hashctx); in oneshot_hash()
57 static c448_error_t hash_init_with_dom(OSSL_LIB_CTX *ctx, EVP_MD_CTX *hashctx, in hash_init_with_dom() argument
84 if (!EVP_DigestInit_ex(hashctx, shake256, NULL) in hash_init_with_dom()
85 || !EVP_DigestUpdate(hashctx, dom_s, strlen(dom_s)) in hash_init_with_dom()
86 || !EVP_DigestUpdate(hashctx, dom, sizeof(dom)) in hash_init_with_dom()
[all …]
/third_party/node/deps/openssl/openssl/crypto/ec/curve448/
Deddsa.c27 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()
39 || !EVP_DigestUpdate(hashctx, in, inlen) in oneshot_hash()
40 || !EVP_DigestFinalXOF(hashctx, out, outlen)) in oneshot_hash()
45 EVP_MD_CTX_free(hashctx); in oneshot_hash()
57 static c448_error_t hash_init_with_dom(OSSL_LIB_CTX *ctx, EVP_MD_CTX *hashctx, in hash_init_with_dom() argument
84 if (!EVP_DigestInit_ex(hashctx, shake256, NULL) in hash_init_with_dom()
85 || !EVP_DigestUpdate(hashctx, dom_s, strlen(dom_s)) in hash_init_with_dom()
86 || !EVP_DigestUpdate(hashctx, dom, sizeof(dom)) in hash_init_with_dom()
[all …]
/third_party/openssl/test/
Dcurve448_internal_test.c585 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()
/third_party/node/deps/openssl/openssl/providers/implementations/keymgmt/
Decx_kmgmt.c1001 EVP_MD_CTX *hashctx = NULL; in s390x_ecd_keygen448() local
1027 hashctx = EVP_MD_CTX_new(); in s390x_ecd_keygen448()
1028 if (hashctx == NULL) in s390x_ecd_keygen448()
1030 if (EVP_DigestInit_ex(hashctx, shake, NULL) != 1) in s390x_ecd_keygen448()
1032 if (EVP_DigestUpdate(hashctx, privkey, 57) != 1) in s390x_ecd_keygen448()
1034 if (EVP_DigestFinalXOF(hashctx, buff, sizeof(buff)) != 1) in s390x_ecd_keygen448()
1046 EVP_MD_CTX_free(hashctx); in s390x_ecd_keygen448()
1052 EVP_MD_CTX_free(hashctx); in s390x_ecd_keygen448()
/third_party/openssl/providers/implementations/keymgmt/
Decx_kmgmt.c1001 EVP_MD_CTX *hashctx = NULL; in s390x_ecd_keygen448() local
1027 hashctx = EVP_MD_CTX_new(); in s390x_ecd_keygen448()
1028 if (hashctx == NULL) in s390x_ecd_keygen448()
1030 if (EVP_DigestInit_ex(hashctx, shake, NULL) != 1) in s390x_ecd_keygen448()
1032 if (EVP_DigestUpdate(hashctx, privkey, 57) != 1) in s390x_ecd_keygen448()
1034 if (EVP_DigestFinalXOF(hashctx, buff, sizeof(buff)) != 1) in s390x_ecd_keygen448()
1046 EVP_MD_CTX_free(hashctx); in s390x_ecd_keygen448()
1052 EVP_MD_CTX_free(hashctx); in s390x_ecd_keygen448()
/third_party/node/deps/openssl/openssl/crypto/ec/
Decx_meth.c1101 EVP_MD_CTX *hashctx = NULL; in s390x_pkey_ecd_keygen448() local
1121 hashctx = EVP_MD_CTX_new(); in s390x_pkey_ecd_keygen448()
1122 if (hashctx == NULL) in s390x_pkey_ecd_keygen448()
1129 rv = EVP_DigestInit_ex(hashctx, md, NULL); in s390x_pkey_ecd_keygen448()
1134 if (EVP_DigestUpdate(hashctx, privkey, 57) != 1) in s390x_pkey_ecd_keygen448()
1136 if (EVP_DigestFinalXOF(hashctx, buff, sizeof(buff)) != 1) in s390x_pkey_ecd_keygen448()
1150 EVP_MD_CTX_free(hashctx); in s390x_pkey_ecd_keygen448()
1154 EVP_MD_CTX_free(hashctx); in s390x_pkey_ecd_keygen448()
/third_party/openssl/crypto/ec/
Decx_meth.c1101 EVP_MD_CTX *hashctx = NULL; in s390x_pkey_ecd_keygen448() local
1121 hashctx = EVP_MD_CTX_new(); in s390x_pkey_ecd_keygen448()
1122 if (hashctx == NULL) in s390x_pkey_ecd_keygen448()
1129 rv = EVP_DigestInit_ex(hashctx, md, NULL); in s390x_pkey_ecd_keygen448()
1134 if (EVP_DigestUpdate(hashctx, privkey, 57) != 1) in s390x_pkey_ecd_keygen448()
1136 if (EVP_DigestFinalXOF(hashctx, buff, sizeof(buff)) != 1) in s390x_pkey_ecd_keygen448()
1150 EVP_MD_CTX_free(hashctx); in s390x_pkey_ecd_keygen448()
1154 EVP_MD_CTX_free(hashctx); in s390x_pkey_ecd_keygen448()