Home
last modified time | relevance | path

Searched refs:hash_ctx (Results 1 – 25 of 393) sorted by relevance

12345678910>>...16

/dports/print/qpdf/qpdf-10.5.0/libqpdf/
H A DQPDFCrypto_gnutls.cc7 hash_ctx(nullptr), in QPDFCrypto_gnutls()
20 if (this->hash_ctx) in ~QPDFCrypto_gnutls()
22 gnutls_hash_deinit(this->hash_ctx, digest); in ~QPDFCrypto_gnutls()
51 this->hash_ctx = nullptr; in MD5_init()
61 gnutls_hash(this->hash_ctx, data, len); in MD5_update()
67 if (this->hash_ctx) in MD5_finalize()
70 this->hash_ctx = nullptr; in MD5_finalize()
149 this->hash_ctx = nullptr; in SHA2_init()
159 gnutls_hash(this->hash_ctx, data, len); in SHA2_update()
165 if (this->hash_ctx) in SHA2_finalize()
[all …]
/dports/net/libwebsockets/libwebsockets-v4.2.2/lib/secure-streams/system/auth-sigv4/
H A Dsign.c200 struct lws_genhash_ctx hash_ctx; in build_sign_string() local
207 lws_genhash_destroy(&hash_ctx, NULL); in build_sign_string()
216 hash_update_str(&hash_ctx, "\n")) in build_sign_string()
219 hash_update_str(&hash_ctx, "\n")) in build_sign_string()
223 if (hash_update_str(&hash_ctx, "\n")) in build_sign_string()
229 hash_update_str(&hash_ctx, "\n")) in build_sign_string()
233 if (hash_update_str(&hash_ctx, "\n")) in build_sign_string()
238 hash_update_str(&hash_ctx, ";")) in build_sign_string()
242 hash_update_str(&hash_ctx, "\n") || in build_sign_string()
243 hash_update_str(&hash_ctx, s->payload_hash)) in build_sign_string()
[all …]
/dports/databases/postgresql14-plpython/postgresql-14.1/src/common/
H A Dhmac.c150 pg_cryptohash_ctx *hash_ctx; in pg_hmac_init() local
158 hash_ctx = pg_cryptohash_create(ctx->type); in pg_hmac_init()
159 if (hash_ctx == NULL) in pg_hmac_init()
165 if (pg_cryptohash_init(hash_ctx) < 0 || in pg_hmac_init()
166 pg_cryptohash_update(hash_ctx, key, len) < 0 || in pg_hmac_init()
167 pg_cryptohash_final(hash_ctx, shrinkbuf, digest_size) < 0) in pg_hmac_init()
169 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
176 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
/dports/databases/postgresql14-pltcl/postgresql-14.1/src/common/
H A Dhmac.c150 pg_cryptohash_ctx *hash_ctx; in pg_hmac_init() local
158 hash_ctx = pg_cryptohash_create(ctx->type); in pg_hmac_init()
159 if (hash_ctx == NULL) in pg_hmac_init()
165 if (pg_cryptohash_init(hash_ctx) < 0 || in pg_hmac_init()
166 pg_cryptohash_update(hash_ctx, key, len) < 0 || in pg_hmac_init()
167 pg_cryptohash_final(hash_ctx, shrinkbuf, digest_size) < 0) in pg_hmac_init()
169 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
176 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
/dports/databases/postgresql14-plperl/postgresql-14.1/src/common/
H A Dhmac.c150 pg_cryptohash_ctx *hash_ctx; in pg_hmac_init() local
158 hash_ctx = pg_cryptohash_create(ctx->type); in pg_hmac_init()
159 if (hash_ctx == NULL) in pg_hmac_init()
165 if (pg_cryptohash_init(hash_ctx) < 0 || in pg_hmac_init()
166 pg_cryptohash_update(hash_ctx, key, len) < 0 || in pg_hmac_init()
167 pg_cryptohash_final(hash_ctx, shrinkbuf, digest_size) < 0) in pg_hmac_init()
169 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
176 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
/dports/databases/postgresql14-docs/postgresql-14.1/src/common/
H A Dhmac.c150 pg_cryptohash_ctx *hash_ctx; in pg_hmac_init() local
158 hash_ctx = pg_cryptohash_create(ctx->type); in pg_hmac_init()
159 if (hash_ctx == NULL) in pg_hmac_init()
165 if (pg_cryptohash_init(hash_ctx) < 0 || in pg_hmac_init()
166 pg_cryptohash_update(hash_ctx, key, len) < 0 || in pg_hmac_init()
167 pg_cryptohash_final(hash_ctx, shrinkbuf, digest_size) < 0) in pg_hmac_init()
169 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
176 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
/dports/databases/postgresql14-server/postgresql-14.1/src/common/
H A Dhmac.c150 pg_cryptohash_ctx *hash_ctx; in pg_hmac_init() local
158 hash_ctx = pg_cryptohash_create(ctx->type); in pg_hmac_init()
159 if (hash_ctx == NULL) in pg_hmac_init()
165 if (pg_cryptohash_init(hash_ctx) < 0 || in pg_hmac_init()
166 pg_cryptohash_update(hash_ctx, key, len) < 0 || in pg_hmac_init()
167 pg_cryptohash_final(hash_ctx, shrinkbuf, digest_size) < 0) in pg_hmac_init()
169 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
176 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
/dports/databases/postgresql14-contrib/postgresql-14.1/src/common/
H A Dhmac.c150 pg_cryptohash_ctx *hash_ctx;
158 hash_ctx = pg_cryptohash_create(ctx->type);
159 if (hash_ctx == NULL)
165 if (pg_cryptohash_init(hash_ctx) < 0 ||
166 pg_cryptohash_update(hash_ctx, key, len) < 0 ||
167 pg_cryptohash_final(hash_ctx, shrinkbuf, digest_size) < 0)
169 pg_cryptohash_free(hash_ctx);
176 pg_cryptohash_free(hash_ctx);
/dports/databases/postgresql14-client/postgresql-14.1/src/common/
H A Dhmac.c150 pg_cryptohash_ctx *hash_ctx; in pg_hmac_init() local
158 hash_ctx = pg_cryptohash_create(ctx->type); in pg_hmac_init()
159 if (hash_ctx == NULL) in pg_hmac_init()
165 if (pg_cryptohash_init(hash_ctx) < 0 || in pg_hmac_init()
166 pg_cryptohash_update(hash_ctx, key, len) < 0 || in pg_hmac_init()
167 pg_cryptohash_final(hash_ctx, shrinkbuf, digest_size) < 0) in pg_hmac_init()
169 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
176 pg_cryptohash_free(hash_ctx); in pg_hmac_init()
/dports/security/wolfssl/wolfssl-5.1.0/wolfcrypt/src/port/silabs/
H A Dsilabs_hash.c49 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
55 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
61 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
69 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
78 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
101 sl_status_t status = sl_se_hash_update(&sha->hash_ctx, data, len); in wc_silabs_se_hash_update()
113 sl_status_t status = sl_se_hash_finish(&sha->hash_ctx, hash, sha->hash_ctx.size); in wc_silabs_se_hash_final()
/dports/databases/mariadb105-client/mariadb-10.5.15/extra/wolfssl/wolfssl/wolfcrypt/src/port/silabs/
H A Dsilabs_hash.c49 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
55 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
61 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
69 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
78 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
101 sl_status_t status = sl_se_hash_update(&sha->hash_ctx, data, len); in wc_silabs_se_hash_update()
113 sl_status_t status = sl_se_hash_finish(&sha->hash_ctx, hash, sha->hash_ctx.size); in wc_silabs_se_hash_final()
/dports/databases/mariadb104-server/mariadb-10.4.24/extra/wolfssl/wolfssl/wolfcrypt/src/port/silabs/
H A Dsilabs_hash.c49 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
55 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
61 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
69 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
78 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
101 sl_status_t status = sl_se_hash_update(&sha->hash_ctx, data, len); in wc_silabs_se_hash_update()
113 sl_status_t status = sl_se_hash_finish(&sha->hash_ctx, hash, sha->hash_ctx.size); in wc_silabs_se_hash_final()
/dports/databases/mariadb105-server/mariadb-10.5.15/extra/wolfssl/wolfssl/wolfcrypt/src/port/silabs/
H A Dsilabs_hash.c49 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
55 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
61 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
69 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
78 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
101 sl_status_t status = sl_se_hash_update(&sha->hash_ctx, data, len); in wc_silabs_se_hash_update()
113 sl_status_t status = sl_se_hash_finish(&sha->hash_ctx, hash, sha->hash_ctx.size); in wc_silabs_se_hash_final()
/dports/databases/mariadb104-client/mariadb-10.4.24/extra/wolfssl/wolfssl/wolfcrypt/src/port/silabs/
H A Dsilabs_hash.c49 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
55 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
61 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
69 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
78 rr = sl_se_hash_starts(&sha->hash_ctx, in wc_silabs_se_hash_init()
101 sl_status_t status = sl_se_hash_update(&sha->hash_ctx, data, len); in wc_silabs_se_hash_update()
113 sl_status_t status = sl_se_hash_finish(&sha->hash_ctx, hash, sha->hash_ctx.size); in wc_silabs_se_hash_final()
/dports/news/tin/tin-2.4.5/libcanlock/src/
H A Dcanlock.c293 USHAContext hash_ctx; in cl_get_lock() local
319 if (USHAReset(&hash_ctx, which_sha) != shaSuccess) in cl_get_lock()
325 if (USHAInput(&hash_ctx, cankey, (unsigned int) strlen((char *) cankey)) in cl_get_lock()
334 if (USHAResult(&hash_ctx, hmacbuff) != shaSuccess) in cl_get_lock()
393 USHAContext hash_ctx; in cl_verify() local
418 if (USHAReset(&hash_ctx, which_sha) != shaSuccess) in cl_verify()
421 if (USHAInput(&hash_ctx, (const uint8_t *) key, (unsigned int) key_size) in cl_verify()
425 if (USHAResult(&hash_ctx, hashbuff) != shaSuccess) in cl_verify()
/dports/chinese/tin/tin-2.4.5/libcanlock/src/
H A Dcanlock.c293 USHAContext hash_ctx; in cl_get_lock() local
319 if (USHAReset(&hash_ctx, which_sha) != shaSuccess) in cl_get_lock()
325 if (USHAInput(&hash_ctx, cankey, (unsigned int) strlen((char *) cankey)) in cl_get_lock()
334 if (USHAResult(&hash_ctx, hmacbuff) != shaSuccess) in cl_get_lock()
393 USHAContext hash_ctx; in cl_verify() local
418 if (USHAReset(&hash_ctx, which_sha) != shaSuccess) in cl_verify()
421 if (USHAInput(&hash_ctx, (const uint8_t *) key, (unsigned int) key_size) in cl_verify()
425 if (USHAResult(&hash_ctx, hashbuff) != shaSuccess) in cl_verify()
/dports/net/libwebsockets/libwebsockets-v4.2.2/minimal-examples/api-tests/api-test-jose/
H A Djws.c412 struct lws_genhash_ctx hash_ctx; in test_jws_ES256() local
497 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES256()
498 lws_genhash_update(&hash_ctx, jws.map_b64.buf[LJWS_JOSE], in test_jws_ES256()
500 lws_genhash_update(&hash_ctx, ".", 1) || in test_jws_ES256()
503 lws_genhash_destroy(&hash_ctx, digest)) { in test_jws_ES256()
504 lws_genhash_destroy(&hash_ctx, NULL); in test_jws_ES256()
574 struct lws_genhash_ctx hash_ctx; in test_jws_ES512() local
659 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES512()
662 lws_genhash_update(&hash_ctx, ".", 1) || in test_jws_ES512()
665 lws_genhash_destroy(&hash_ctx, digest)) { in test_jws_ES512()
[all …]
/dports/emulators/citra/citra-ac98458e0/externals/libressl/ssl/
H A Dtls12_record_layer.c88 SSL_AEAD_CTX *aead_ctx, EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, in tls12_record_layer_set_read_state() argument
94 rl->read_hash_ctx = hash_ctx; in tls12_record_layer_set_read_state()
100 SSL_AEAD_CTX *aead_ctx, EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, in tls12_record_layer_set_write_state() argument
106 rl->write_hash_ctx = hash_ctx; in tls12_record_layer_set_write_state()
158 EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, int stream_mac) in tls12_record_layer_set_read_cipher_hash() argument
160 tls12_record_layer_set_read_state(rl, NULL, cipher_ctx, hash_ctx, in tls12_record_layer_set_read_cipher_hash()
168 EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, int stream_mac) in tls12_record_layer_set_write_cipher_hash() argument
170 tls12_record_layer_set_write_state(rl, NULL, cipher_ctx, hash_ctx, in tls12_record_layer_set_write_cipher_hash()
231 EVP_MD_CTX *hash_ctx, int stream_mac, uint16_t epoch, uint8_t *seq_num, in tls12_record_layer_mac() argument
244 if (!EVP_MD_CTX_copy(mac_ctx, hash_ctx)) in tls12_record_layer_mac()
[all …]
/dports/emulators/citra-qt5/citra-ac98458e0/externals/libressl/ssl/
H A Dtls12_record_layer.c88 SSL_AEAD_CTX *aead_ctx, EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, in tls12_record_layer_set_read_state() argument
94 rl->read_hash_ctx = hash_ctx; in tls12_record_layer_set_read_state()
100 SSL_AEAD_CTX *aead_ctx, EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, in tls12_record_layer_set_write_state() argument
106 rl->write_hash_ctx = hash_ctx; in tls12_record_layer_set_write_state()
158 EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, int stream_mac) in tls12_record_layer_set_read_cipher_hash() argument
160 tls12_record_layer_set_read_state(rl, NULL, cipher_ctx, hash_ctx, in tls12_record_layer_set_read_cipher_hash()
168 EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *hash_ctx, int stream_mac) in tls12_record_layer_set_write_cipher_hash() argument
170 tls12_record_layer_set_write_state(rl, NULL, cipher_ctx, hash_ctx, in tls12_record_layer_set_write_cipher_hash()
231 EVP_MD_CTX *hash_ctx, int stream_mac, uint16_t epoch, uint8_t *seq_num, in tls12_record_layer_mac() argument
244 if (!EVP_MD_CTX_copy(mac_ctx, hash_ctx)) in tls12_record_layer_mac()
[all …]
/dports/sysutils/u-boot-utilite/u-boot-2015.07/lib/
H A Dtpm.c612 sha1_context hash_ctx; in create_request_auth() local
621 sha1_starts(&hash_ctx); in create_request_auth()
624 sha1_update(&hash_ctx, in create_request_auth()
628 sha1_finish(&hash_ctx, hmac_data); in create_request_auth()
630 sha1_starts(&hash_ctx); in create_request_auth()
633 sha1_finish(&hash_ctx, auth_session->nonce_odd); in create_request_auth()
677 sha1_context hash_ctx; in verify_response_auth() local
691 sha1_starts(&hash_ctx); in verify_response_auth()
693 sha1_update(&hash_ctx, hmac_data, 4); in verify_response_auth()
695 sha1_update(&hash_ctx, in verify_response_auth()
[all …]
/dports/security/nettle/nettle-3.7.3/testsuite/
H A Dgostdsa-vko-test.c12 void * hash_ctx, in test_vko() argument
44 hash->init (hash_ctx); in test_vko()
45 hash->update (hash_ctx, out_len, out); in test_vko()
46 hash->digest (hash_ctx, hash->digest_size, out); in test_vko()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/crypto/ux500/hash/
H A Dhash_core.c135 struct hash_ctx *ctx = data; in hash_dma_callback()
186 static void hash_dma_done(struct hash_ctx *ctx) in hash_dma_done()
196 static int hash_dma_write(struct hash_ctx *ctx, in hash_dma_write()
472 struct hash_ctx *ctx) in init_hash_hw()
1502 struct hash_ctx *ctx = crypto_tfm_ctx(tfm); in hash_cra_init()
1540 .cra_ctxsize = sizeof(struct hash_ctx),
1563 .cra_ctxsize = sizeof(struct hash_ctx),
1587 .cra_ctxsize = sizeof(struct hash_ctx),
1611 .cra_ctxsize = sizeof(struct hash_ctx),
1857 struct hash_ctx *temp_ctx = NULL; in ux500_hash_suspend()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/crypto/ux500/hash/
H A Dhash_core.c135 struct hash_ctx *ctx = data; in hash_dma_callback()
186 static void hash_dma_done(struct hash_ctx *ctx) in hash_dma_done()
196 static int hash_dma_write(struct hash_ctx *ctx, in hash_dma_write()
472 struct hash_ctx *ctx) in init_hash_hw()
1502 struct hash_ctx *ctx = crypto_tfm_ctx(tfm); in hash_cra_init()
1540 .cra_ctxsize = sizeof(struct hash_ctx),
1563 .cra_ctxsize = sizeof(struct hash_ctx),
1587 .cra_ctxsize = sizeof(struct hash_ctx),
1611 .cra_ctxsize = sizeof(struct hash_ctx),
1857 struct hash_ctx *temp_ctx = NULL; in ux500_hash_suspend()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/crypto/ux500/hash/
H A Dhash_core.c135 struct hash_ctx *ctx = data; in hash_dma_callback()
186 static void hash_dma_done(struct hash_ctx *ctx) in hash_dma_done()
196 static int hash_dma_write(struct hash_ctx *ctx, in hash_dma_write()
472 struct hash_ctx *ctx) in init_hash_hw()
1502 struct hash_ctx *ctx = crypto_tfm_ctx(tfm); in hash_cra_init()
1540 .cra_ctxsize = sizeof(struct hash_ctx),
1563 .cra_ctxsize = sizeof(struct hash_ctx),
1587 .cra_ctxsize = sizeof(struct hash_ctx),
1611 .cra_ctxsize = sizeof(struct hash_ctx),
1857 struct hash_ctx *temp_ctx = NULL; in ux500_hash_suspend()
[all …]
/dports/net/libwebsockets/libwebsockets-v4.2.2/lib/jose/jws/
H A Djws.c452 struct lws_genhash_ctx hash_ctx; in lws_jws_sig_confirm() local
511 lws_genhash_update(&hash_ctx, ".", 1) || in lws_jws_sig_confirm()
514 lws_genhash_destroy(&hash_ctx, digest)) { in lws_jws_sig_confirm()
515 lws_genhash_destroy(&hash_ctx, NULL); in lws_jws_sig_confirm()
623 lws_genhash_update(&hash_ctx, ".", 1) || in lws_jws_sig_confirm()
626 lws_genhash_destroy(&hash_ctx, digest)) { in lws_jws_sig_confirm()
627 lws_genhash_destroy(&hash_ctx, NULL); in lws_jws_sig_confirm()
746 struct lws_genhash_ctx hash_ctx; in lws_jws_sign_from_b64() local
760 lws_genhash_update(&hash_ctx, ".", 1) || in lws_jws_sign_from_b64()
763 lws_genhash_destroy(&hash_ctx, digest)) { in lws_jws_sign_from_b64()
[all …]

12345678910>>...16