/third_party/libwebsockets/plugins/generic-sessions/ |
D | utils.c | 391 struct lws_genhash_ctx hash_ctx; in lwsgs_check_credentials() local 403 if (lws_genhash_init(&hash_ctx, LWS_GENHASH_TYPE_SHA256) || in lwsgs_check_credentials() 404 lws_genhash_update(&hash_ctx, password, strlen(password)) || in lwsgs_check_credentials() 405 lws_genhash_update(&hash_ctx, "-", 1) || in lwsgs_check_credentials() 406 lws_genhash_update(&hash_ctx, vhd->confounder, strlen(vhd->confounder)) || in lwsgs_check_credentials() 407 lws_genhash_update(&hash_ctx, "-", 1) || in lwsgs_check_credentials() 408 lws_genhash_update(&hash_ctx, u.pwsalt.id, strlen(u.pwsalt.id)) || in lwsgs_check_credentials() 409 lws_genhash_destroy(&hash_ctx, hash_bin.bin)) { in lwsgs_check_credentials() 410 lws_genhash_destroy(&hash_ctx, NULL); in lwsgs_check_credentials() 427 struct lws_genhash_ctx hash_ctx; in lwsgs_hash_password() local [all …]
|
/third_party/libwebsockets/lib/jose/jws/ |
D | jws.c | 452 struct lws_genhash_ctx hash_ctx; in lws_jws_sig_confirm() local 499 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type)) in lws_jws_sig_confirm() 509 if (lws_genhash_update(&hash_ctx, map_b64->buf[LJWS_JOSE], in lws_jws_sig_confirm() 511 lws_genhash_update(&hash_ctx, ".", 1) || in lws_jws_sig_confirm() 512 lws_genhash_update(&hash_ctx, map_b64->buf[LJWS_PYLD], 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() 620 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in lws_jws_sig_confirm() 621 lws_genhash_update(&hash_ctx, map_b64->buf[LJWS_JOSE], in lws_jws_sig_confirm() 623 lws_genhash_update(&hash_ctx, ".", 1) || in lws_jws_sig_confirm() [all …]
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-jose/ |
D | jws.c | 411 struct lws_genhash_ctx hash_ctx; in test_jws_ES256() local 496 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES256() 497 lws_genhash_update(&hash_ctx, jws.map_b64.buf[LJWS_JOSE], in test_jws_ES256() 499 lws_genhash_update(&hash_ctx, ".", 1) || in test_jws_ES256() 500 lws_genhash_update(&hash_ctx, jws.map_b64.buf[LJWS_PYLD], in test_jws_ES256() 502 lws_genhash_destroy(&hash_ctx, digest)) { in test_jws_ES256() 503 lws_genhash_destroy(&hash_ctx, NULL); in test_jws_ES256() 572 struct lws_genhash_ctx hash_ctx; in test_jws_ES512() local 657 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES512() 658 lws_genhash_update(&hash_ctx, jws.map_b64.buf[LJWS_JOSE], in test_jws_ES512() [all …]
|
/third_party/libwebsockets/lib/jose/jwe/ |
D | jwe.c | 213 struct lws_genhash_ctx hash_ctx; in lws_jwa_concat_kdf() local 279 if (lws_genhash_init(&hash_ctx, LWS_GENHASH_TYPE_SHA256)) in lws_jwa_concat_kdf() 283 lws_genhash_update(&hash_ctx, be32(ctr++, &t), 4) || in lws_jwa_concat_kdf() 285 lws_genhash_update(&hash_ctx, shared_secret, sslen) || in lws_jwa_concat_kdf() 287 lws_genhash_update(&hash_ctx, be32(strlen(aid), &t), 4) || in lws_jwa_concat_kdf() 288 lws_genhash_update(&hash_ctx, aid, aidlen) || in lws_jwa_concat_kdf() 289 lws_genhash_update(&hash_ctx, in lws_jwa_concat_kdf() 291 lws_genhash_update(&hash_ctx, jwe->jose.e[LJJHI_APU].buf, in lws_jwa_concat_kdf() 293 lws_genhash_update(&hash_ctx, in lws_jwa_concat_kdf() 295 lws_genhash_update(&hash_ctx, jwe->jose.e[LJJHI_APV].buf, in lws_jwa_concat_kdf() [all …]
|
/third_party/uboot/u-boot-2020.01/lib/ |
D | tpm-v1.c | 532 sha1_context hash_ctx; in create_request_auth() local 541 sha1_starts(&hash_ctx); in create_request_auth() 542 sha1_update(&hash_ctx, request + command_code_offset, 4); in create_request_auth() 544 sha1_update(&hash_ctx, in create_request_auth() 548 sha1_finish(&hash_ctx, hmac_data); in create_request_auth() 550 sha1_starts(&hash_ctx); in create_request_auth() 551 sha1_update(&hash_ctx, auth_session->nonce_odd, DIGEST_LENGTH); in create_request_auth() 552 sha1_update(&hash_ctx, hmac_data, sizeof(hmac_data)); in create_request_auth() 553 sha1_finish(&hash_ctx, auth_session->nonce_odd); in create_request_auth() 596 sha1_context hash_ctx; in verify_response_auth() local [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/crypto/fsl/ |
D | fsl_hash.c | 83 static int caam_hash_update(void *hash_ctx, const void *buf, in caam_hash_update() argument 89 struct sha_ctx *ctx = hash_ctx; in caam_hash_update() 129 static int caam_hash_finish(void *hash_ctx, void *dest_buf, in caam_hash_finish() argument 133 struct sha_ctx *ctx = hash_ctx; in caam_hash_finish()
|
/third_party/boringssl/src/crypto/hrss/ |
D | hrss.c | 2056 SHA256_CTX hash_ctx; in HRSS_encap() local 2057 SHA256_Init(&hash_ctx); in HRSS_encap() 2058 SHA256_Update(&hash_ctx, kSharedKey, sizeof(kSharedKey)); in HRSS_encap() 2059 SHA256_Update(&hash_ctx, m_bytes, sizeof(m_bytes)); in HRSS_encap() 2060 SHA256_Update(&hash_ctx, r_bytes, sizeof(r_bytes)); in HRSS_encap() 2061 SHA256_Update(&hash_ctx, out_ciphertext, POLY_BYTES); in HRSS_encap() 2062 SHA256_Final(out_shared_key, &hash_ctx); in HRSS_encap() 2083 SHA256_CTX hash_ctx; in HRSS_decap() local 2084 SHA256_Init(&hash_ctx); in HRSS_decap() 2085 SHA256_Update(&hash_ctx, masked_key, sizeof(masked_key)); in HRSS_decap() [all …]
|
/third_party/libwebsockets/lib/tls/mbedtls/ |
D | mbedtls-server.c | 476 struct lws_genhash_ctx hash_ctx; in lws_tls_acme_sni_cert_create() local 539 if (lws_genhash_init(&hash_ctx, LWS_GENHASH_TYPE_SHA256)) in lws_tls_acme_sni_cert_create() 542 if (lws_genhash_update(&hash_ctx, buf, lws_ptr_diff(p, buf))) { in lws_tls_acme_sni_cert_create() 543 lws_genhash_destroy(&hash_ctx, NULL); in lws_tls_acme_sni_cert_create() 547 if (lws_genhash_destroy(&hash_ctx, digest)) in lws_tls_acme_sni_cert_create()
|
/third_party/libwebsockets/lib/jose/jwk/ |
D | jwk.c | 819 struct lws_genhash_ctx hash_ctx; in lws_jwk_rfc7638_fingerprint() local 829 if (lws_genhash_init(&hash_ctx, LWS_GENHASH_TYPE_SHA256)) in lws_jwk_rfc7638_fingerprint() 832 if (lws_genhash_update(&hash_ctx, tmp, n)) { in lws_jwk_rfc7638_fingerprint() 833 lws_genhash_destroy(&hash_ctx, NULL); in lws_jwk_rfc7638_fingerprint() 839 if (lws_genhash_destroy(&hash_ctx, digest32)) in lws_jwk_rfc7638_fingerprint()
|
/third_party/boringssl/src/third_party/fiat/ |
D | curve25519.c | 1907 SHA512_CTX hash_ctx; in ED25519_sign() local 1908 SHA512_Init(&hash_ctx); in ED25519_sign() 1909 SHA512_Update(&hash_ctx, az + 32, 32); in ED25519_sign() 1910 SHA512_Update(&hash_ctx, message, message_len); in ED25519_sign() 1912 SHA512_Final(nonce, &hash_ctx); in ED25519_sign() 1919 SHA512_Init(&hash_ctx); in ED25519_sign() 1920 SHA512_Update(&hash_ctx, out_sig, 32); in ED25519_sign() 1921 SHA512_Update(&hash_ctx, private_key + 32, 32); in ED25519_sign() 1922 SHA512_Update(&hash_ctx, message, message_len); in ED25519_sign() 1924 SHA512_Final(hram, &hash_ctx); in ED25519_sign() [all …]
|
/third_party/openssl/crypto/ec/ |
D | curve25519.c | 5439 SHA512_CTX hash_ctx; in ED25519_sign() local 5441 SHA512_Init(&hash_ctx); in ED25519_sign() 5442 SHA512_Update(&hash_ctx, private_key, 32); in ED25519_sign() 5443 SHA512_Final(az, &hash_ctx); in ED25519_sign() 5449 SHA512_Init(&hash_ctx); in ED25519_sign() 5450 SHA512_Update(&hash_ctx, az + 32, 32); in ED25519_sign() 5451 SHA512_Update(&hash_ctx, message, message_len); in ED25519_sign() 5452 SHA512_Final(nonce, &hash_ctx); in ED25519_sign() 5458 SHA512_Init(&hash_ctx); in ED25519_sign() 5459 SHA512_Update(&hash_ctx, out_sig, 32); in ED25519_sign() [all …]
|
/third_party/libwebsockets/plugins/ssh-base/ |
D | sshd.c | 1214 if (lws_genhash_init(&pss->ua->hash_ctx, in lws_ssh_parse_plaintext() 1221 if (lws_genhash_update(&pss->ua->hash_ctx, ps, pp - ps)) { in lws_ssh_parse_plaintext() 1226 lws_genhash_destroy(&pss->ua->hash_ctx, hash); in lws_ssh_parse_plaintext() 1277 pss->ua->hash_ctx.type)) { in lws_ssh_parse_plaintext() 1279 lws_genhash_size(pss->ua->hash_ctx.type)); in lws_ssh_parse_plaintext()
|
/third_party/libwebsockets/plugins/ssh-base/include/ |
D | lws-ssh.h | 378 struct lws_genhash_ctx hash_ctx; member
|