Lines Matching refs:hash_ctx
709 sha1_context hash_ctx; in create_request_auth() local
718 sha1_starts(&hash_ctx); in create_request_auth()
719 sha1_update(&hash_ctx, request + command_code_offset, 4); in create_request_auth()
721 sha1_update(&hash_ctx, in create_request_auth()
725 sha1_finish(&hash_ctx, hmac_data); in create_request_auth()
727 sha1_starts(&hash_ctx); in create_request_auth()
728 sha1_update(&hash_ctx, auth_session->nonce_odd, DIGEST_LENGTH); in create_request_auth()
729 sha1_update(&hash_ctx, hmac_data, sizeof(hmac_data)); in create_request_auth()
730 sha1_finish(&hash_ctx, auth_session->nonce_odd); in create_request_auth()
774 sha1_context hash_ctx; in verify_response_auth() local
788 sha1_starts(&hash_ctx); in verify_response_auth()
789 sha1_update(&hash_ctx, response + return_code_offset, 4); in verify_response_auth()
790 sha1_update(&hash_ctx, hmac_data, 4); in verify_response_auth()
792 sha1_update(&hash_ctx, in verify_response_auth()
796 sha1_finish(&hash_ctx, hmac_data); in verify_response_auth()