An explicit ureq client with platform TLS verification, connect/header/ request deadlines, manual bounded redirects, decoded-byte budgets and Go-style proxy selection. A Go-compatible URL module checked against oracle vectors, and a byte-preserving HTML tokenizer for link rewriting (href/src/action/poster, <style> and style= url(), <base href>). Mirror keeps to one host across redirects, bounds pages and bytes, refuses local-name collisions and reports partial results. Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
712 B
Bash
Executable File
15 lines
712 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerate the Go-oracle vectors and fixtures in tests/vectors.
|
|
#
|
|
# Everything is computed by the frozen Go implementation in oracle/go (see
|
|
# oracle/README.md); nothing comes from the Rust code under test. Key files
|
|
# and ciphertexts use fresh randomness, so regenerating changes them; the
|
|
# deterministic vectors (*.json fields derived from fixed seeds) do not.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
out=$PWD/tests/vectors
|
|
mkdir -p "$out"
|
|
(cd oracle/go && VAULT_ORACLE_OUT=$out go test -count=1 -run '^TestOracleVectors$' ./ ./internal/pqcrypt ./internal/stream)
|
|
(cd oracle/go && VAULT_ORACLE_OUT=$out go test -count=1 -run '^TestOracleNetVectors$' ./)
|
|
echo "vectors written to $out"
|