docs consolidation and others

This commit is contained in:
master
2026-01-06 19:02:21 +02:00
parent d7bdca6d97
commit 4789027317
849 changed files with 16551 additions and 66770 deletions

View File

@@ -506,10 +506,17 @@ public sealed class E2EReproducibilityTestFixture : IAsyncLifetime
var payloadType = "application/vnd.stellaops.verdict+json"u8.ToArray();
var pae = CreatePae(payloadType, payload);
// Sign with ECDSA P-256
return _signingKey!.SignData(pae, HashAlgorithmName.SHA256);
// Use HMAC-SHA256 for deterministic signatures in E2E tests
// ECDSA produces non-deterministic signatures due to random k value
// For reproducibility tests, we need byte-for-byte identical outputs
using var hmac = new HMACSHA256(_deterministicSigningKey);
return hmac.ComputeHash(pae);
}
// Deterministic key derived from seed for HMAC signing
private static readonly byte[] _deterministicSigningKey = SHA256.HashData(
System.Text.Encoding.UTF8.GetBytes("e2e-test-deterministic-key-seed-42"));
private static byte[] CreatePae(byte[] payloadType, byte[] payload)
{
// PAE(type, payload) = "DSSEv1" || SP || LEN(type) || SP || type || SP || LEN(payload) || SP || payload