Home
last modified time | relevance | path

Searched refs:sha_ctx (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/quiche/deps/boringssl/src/crypto/trust_token/
Dtrust_token.c529 SHA256_CTX sha_ctx; in get_metadata_obfuscator() local
530 SHA256_Init(&sha_ctx); in get_metadata_obfuscator()
531 SHA256_Update(&sha_ctx, key, key_len); in get_metadata_obfuscator()
532 SHA256_Update(&sha_ctx, client_data, client_data_len); in get_metadata_obfuscator()
533 SHA256_Final(metadata_obfuscator, &sha_ctx); in get_metadata_obfuscator()
594 SHA256_CTX sha_ctx; in TRUST_TOKEN_ISSUER_redeem() local
595 SHA256_Init(&sha_ctx); in TRUST_TOKEN_ISSUER_redeem()
596 SHA256_Update(&sha_ctx, kTokenHashDSTLabel, sizeof(kTokenHashDSTLabel)); in TRUST_TOKEN_ISSUER_redeem()
597 SHA256_Update(&sha_ctx, CBS_data(&token_copy), CBS_len(&token_copy)); in TRUST_TOKEN_ISSUER_redeem()
598 SHA256_Final(token_hash, &sha_ctx); in TRUST_TOKEN_ISSUER_redeem()
Dtrust_token_test.cc504 SHA256_CTX sha_ctx; in TEST_P() local
505 SHA256_Init(&sha_ctx); in TEST_P()
506 SHA256_Update(&sha_ctx, kTokenHashDSTLabel, sizeof(kTokenHashDSTLabel)); in TEST_P()
507 SHA256_Update(&sha_ctx, token->data, token->len); in TEST_P()
508 SHA256_Final(token_hash, &sha_ctx); in TEST_P()
/external/boringssl/src/crypto/trust_token/
Dtrust_token.c635 SHA256_CTX sha_ctx; in get_metadata_obfuscator() local
636 SHA256_Init(&sha_ctx); in get_metadata_obfuscator()
637 SHA256_Update(&sha_ctx, key, key_len); in get_metadata_obfuscator()
638 SHA256_Update(&sha_ctx, client_data, client_data_len); in get_metadata_obfuscator()
639 SHA256_Final(metadata_obfuscator, &sha_ctx); in get_metadata_obfuscator()
700 SHA256_CTX sha_ctx; in TRUST_TOKEN_ISSUER_redeem() local
701 SHA256_Init(&sha_ctx); in TRUST_TOKEN_ISSUER_redeem()
702 SHA256_Update(&sha_ctx, kTokenHashDSTLabel, sizeof(kTokenHashDSTLabel)); in TRUST_TOKEN_ISSUER_redeem()
703 SHA256_Update(&sha_ctx, CBS_data(&token_copy), CBS_len(&token_copy)); in TRUST_TOKEN_ISSUER_redeem()
704 SHA256_Final(token_hash, &sha_ctx); in TRUST_TOKEN_ISSUER_redeem()
Dtrust_token_test.cc580 SHA256_CTX sha_ctx; in TEST_P() local
581 SHA256_Init(&sha_ctx); in TEST_P()
582 SHA256_Update(&sha_ctx, kTokenHashDSTLabel, sizeof(kTokenHashDSTLabel)); in TEST_P()
583 SHA256_Update(&sha_ctx, token->data, token->len); in TEST_P()
584 SHA256_Final(token_hash, &sha_ctx); in TEST_P()
/external/usrsctp/usrsctplib/netinet/
Dsctp_sha1.c69 SHA1_Init(&ctx->sha_ctx); in sctp_sha1_init()
75 SHA1_Update(&ctx->sha_ctx, ptr, (unsigned long)siz); in sctp_sha1_update()
81 SHA1_Final(digest, &ctx->sha_ctx); in sctp_sha1_final()
Dsctp_sha1.h64 SHA_CTX sha_ctx;