Public Access
Section 7 always required "a canonical, length-prefixed encoding" for signatures without ever specifying one. That gap had to be closed before enrollment could exist: the client hashes the key statement and uses the result as an OIDC nonce, so the provider signs over those exact bytes. Two implementations disagreeing by one byte produce two nonces and an enrollment nobody can verify -- and it only shows up against a real provider, never in a local test. JSON cannot be the hashed form. Property order, number formatting, Unicode escaping and whitespace all vary between serialisers. So the statement is transmitted as JSON and hashed as a fixed binary encoding, and the two are independent by construction. Three details are load-bearing rather than stylistic: - The presence byte before each string is what makes the encoding injective. Without it an absent email and an empty one encode identically, and two different statements share a binding. - Timestamps truncate to milliseconds. PostgreSQL stores microseconds, so a statement that has been through the database must still hash to what the client hashed. The same applies to the key log, where an entry that cannot reproduce its own hash after being read back makes the chain unverifiable. - The key log entry hash deliberately excludes the database sequence. It is unknown until the insert runs, and order already follows the hash links -- so a renumbered or gapped sequence column cannot silently reorder history. KeyStatementFields is separate from Contracts.KeyStatement on purpose: one may gain JSON fields freely, the other cannot change without invalidating every stored binding, and Crypto must not depend on the contract assembly. KeyStatementDriftTests makes a field added to one and not the other a build failure, because a wire field outside the binding is unauthenticated data the server can change undetected. 54 new tests and two new golden vector sections. The vectors pin the absent-versus-empty email case and confirm that an offset-bearing sub-millisecond timestamp encodes identically to its truncated UTC form. Only additions to vectors.json; nothing existing moved.
223 lines
8.2 KiB
JSON
223 lines
8.2 KiB
JSON
{
|
|
"version": 2,
|
|
"dependencies": {
|
|
"net10.0": {
|
|
"Meziantou.Analyzer": {
|
|
"type": "Direct",
|
|
"requested": "[3.0.134, )",
|
|
"resolved": "3.0.134",
|
|
"contentHash": "tTYCcYKyOko3TMNxmxmA9nakbcHVUgglENmCMIhzIjl9y9FBZO/0tWSxTGC74Sp198FmWih5S5KkjQRBg5ePkQ=="
|
|
},
|
|
"Microsoft.CodeAnalysis.BannedApiAnalyzers": {
|
|
"type": "Direct",
|
|
"requested": "[5.6.0, )",
|
|
"resolved": "5.6.0",
|
|
"contentHash": "Kcobt3pnOdO0A+6CKiMHZdTEluJpsfxiV20axtZdmfBQnDmiWTKPJADlgAfdTuKNAnVarrkJa0UEGwuOo91muw=="
|
|
},
|
|
"NSubstitute": {
|
|
"type": "Direct",
|
|
"requested": "[6.0.0, )",
|
|
"resolved": "6.0.0",
|
|
"contentHash": "0gvKMbiJ+/WrfbcfBfqRZZrvfLJcd3rqkqVMjjlY5dtmLRVzMY+o/K/rJUStofQ2haSr9Vd04YDfvZtVVGS3/A==",
|
|
"dependencies": {
|
|
"Castle.Core": "5.1.1"
|
|
}
|
|
},
|
|
"Shouldly": {
|
|
"type": "Direct",
|
|
"requested": "[4.3.0, )",
|
|
"resolved": "4.3.0",
|
|
"contentHash": "sDetrWXrl6YXZ4HeLsdBoNk3uIa7K+V4uvIJ+cqdRa5DrFxeTED7VkjoxCuU1kJWpUuBDZz2QXFzSxBtVXLwRQ==",
|
|
"dependencies": {
|
|
"DiffEngine": "11.3.0",
|
|
"EmptyFiles": "4.4.0"
|
|
}
|
|
},
|
|
"xunit.v3": {
|
|
"type": "Direct",
|
|
"requested": "[3.2.2, )",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "L+4/4y0Uqcg8/d6hfnxhnwh4j9FaeULvefTwrk30rr1o4n/vdPfyUQ8k0yzH8VJx7bmFEkDdcRfbtbjEHlaYcA==",
|
|
"dependencies": {
|
|
"xunit.v3.mtp-v1": "[3.2.2]"
|
|
}
|
|
},
|
|
"Castle.Core": {
|
|
"type": "Transitive",
|
|
"resolved": "5.1.1",
|
|
"contentHash": "rpYtIczkzGpf+EkZgDr9CClTdemhsrwA/W5hMoPjLkRFnXzH44zDLoovXeKtmxb1ykXK9aJVODSpiJml8CTw2g==",
|
|
"dependencies": {
|
|
"System.Diagnostics.EventLog": "6.0.0"
|
|
}
|
|
},
|
|
"DiffEngine": {
|
|
"type": "Transitive",
|
|
"resolved": "11.3.0",
|
|
"contentHash": "k0ZgZqd09jLZQjR8FyQbSQE86Q7QZnjEzq1LPHtj1R2AoWO8sjV5x+jlSisL7NZAbUOI4y+7Bog8gkr9WIRBGw==",
|
|
"dependencies": {
|
|
"EmptyFiles": "4.4.0",
|
|
"System.Management": "6.0.1"
|
|
}
|
|
},
|
|
"EmptyFiles": {
|
|
"type": "Transitive",
|
|
"resolved": "4.4.0",
|
|
"contentHash": "gwJEfIGS7FhykvtZoscwXj/XwW+mJY6UbAZk+qtLKFUGWC95kfKXnj8VkxsZQnWBxJemM/q664rGLN5nf+OHZw=="
|
|
},
|
|
"Microsoft.ApplicationInsights": {
|
|
"type": "Transitive",
|
|
"resolved": "2.23.0",
|
|
"contentHash": "nWArUZTdU7iqZLycLKWe0TDms48KKGE6pONH2terYNa8REXiqixrMOkf1sk5DHGMaUTqONU2YkS4SAXBhLStgw=="
|
|
},
|
|
"Microsoft.Bcl.AsyncInterfaces": {
|
|
"type": "Transitive",
|
|
"resolved": "6.0.0",
|
|
"contentHash": "UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg=="
|
|
},
|
|
"Microsoft.Testing.Extensions.Telemetry": {
|
|
"type": "Transitive",
|
|
"resolved": "1.9.1",
|
|
"contentHash": "No5AudZMmSb+uNXjlgL2y3/stHD2IT4uxqc5yHwkE+/nNux9jbKcaJMvcp9SwgP4DVD8L9/P3OUz8mmmcvEIdQ==",
|
|
"dependencies": {
|
|
"Microsoft.ApplicationInsights": "2.23.0",
|
|
"Microsoft.Testing.Platform": "1.9.1"
|
|
}
|
|
},
|
|
"Microsoft.Testing.Extensions.TrxReport.Abstractions": {
|
|
"type": "Transitive",
|
|
"resolved": "1.9.1",
|
|
"contentHash": "AL46Xe1WBi85Ntd4mNPvat5ZSsZ2uejiVqoKCypr8J3wK0elA5xJ3AN4G/Q4GIwzUFnggZoH/DBjnr9J18IO/g==",
|
|
"dependencies": {
|
|
"Microsoft.Testing.Platform": "1.9.1"
|
|
}
|
|
},
|
|
"Microsoft.Testing.Platform": {
|
|
"type": "Transitive",
|
|
"resolved": "1.9.1",
|
|
"contentHash": "QafNtNSmEI0zazdebnsIkDKmFtTSpmx/5PLOjURWwozcPb3tvRxzosQSL8xwYNM1iPhhKiBksXZyRSE2COisrA=="
|
|
},
|
|
"Microsoft.Testing.Platform.MSBuild": {
|
|
"type": "Transitive",
|
|
"resolved": "1.9.1",
|
|
"contentHash": "oTUtyR4X/s9ytuiNA29FGsNCCH0rNmY5Wdm14NCKLjTM1cT9edVSlA+rGS/mVmusPqcP0l/x9qOnMXg16v87RQ==",
|
|
"dependencies": {
|
|
"Microsoft.Testing.Platform": "1.9.1"
|
|
}
|
|
},
|
|
"Microsoft.Win32.Registry": {
|
|
"type": "Transitive",
|
|
"resolved": "5.0.0",
|
|
"contentHash": "dDoKi0PnDz31yAyETfRntsLArTlVAVzUzCIvvEDsDsucrl33Dl8pIJG06ePTJTI3tGpeyHS9Cq7Foc/s4EeKcg=="
|
|
},
|
|
"System.CodeDom": {
|
|
"type": "Transitive",
|
|
"resolved": "6.0.0",
|
|
"contentHash": "CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA=="
|
|
},
|
|
"System.Diagnostics.EventLog": {
|
|
"type": "Transitive",
|
|
"resolved": "6.0.0",
|
|
"contentHash": "lcyUiXTsETK2ALsZrX+nWuHSIQeazhqPphLfaRxzdGaG93+0kELqpgEHtwWOlQe7+jSFnKwaCAgL4kjeZCQJnw=="
|
|
},
|
|
"System.Management": {
|
|
"type": "Transitive",
|
|
"resolved": "6.0.1",
|
|
"contentHash": "10J1D0h/lioojphfJ4Fuh5ZUThT/xOVHdV9roGBittKKNP2PMjrvibEdbVTGZcPra1399Ja3tqIJLyQrc5Wmhg==",
|
|
"dependencies": {
|
|
"System.CodeDom": "6.0.0"
|
|
}
|
|
},
|
|
"xunit.analyzers": {
|
|
"type": "Transitive",
|
|
"resolved": "1.27.0",
|
|
"contentHash": "y/pxIQaLvk/kxAoDkZW9GnHLCEqzwl5TW0vtX3pweyQpjizB9y3DXhb9pkw2dGeUqhLjsxvvJM1k89JowU6z3g=="
|
|
},
|
|
"xunit.v3.assert": {
|
|
"type": "Transitive",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "BPciBghgEEaJN/JG00QfCYDfEfnLgQhfnYEy+j1izoeHVNYd5+3Wm8GJ6JgYysOhpBPYGE+sbf75JtrRc7jrdA=="
|
|
},
|
|
"xunit.v3.common": {
|
|
"type": "Transitive",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "Hj775PEH6GTbbg0wfKRvG2hNspDCvTH9irXhH4qIWgdrOSV1sQlqPie+DOvFeigsFg2fxSM3ZAaaCDQs+KreFA==",
|
|
"dependencies": {
|
|
"Microsoft.Bcl.AsyncInterfaces": "6.0.0"
|
|
}
|
|
},
|
|
"xunit.v3.core.mtp-v1": {
|
|
"type": "Transitive",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "Ga5aA2Ca9ktz+5k3g5ukzwfexwoqwDUpV6z7atSEUvqtd6JuybU1XopHqg1oFd78QdTfZgZE9h5sHpO4qYIi5w==",
|
|
"dependencies": {
|
|
"Microsoft.Testing.Extensions.Telemetry": "1.9.1",
|
|
"Microsoft.Testing.Extensions.TrxReport.Abstractions": "1.9.1",
|
|
"Microsoft.Testing.Platform": "1.9.1",
|
|
"Microsoft.Testing.Platform.MSBuild": "1.9.1",
|
|
"xunit.v3.extensibility.core": "[3.2.2]",
|
|
"xunit.v3.runner.inproc.console": "[3.2.2]"
|
|
}
|
|
},
|
|
"xunit.v3.extensibility.core": {
|
|
"type": "Transitive",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "srY8z/oMPvh/t8axtO2DwrHajhFMH7tnqKildvYrVQIfICi8fOn3yIBWkVPAcrKmHMwvXRJ/XsQM3VMR6DOYfQ==",
|
|
"dependencies": {
|
|
"xunit.v3.common": "[3.2.2]"
|
|
}
|
|
},
|
|
"xunit.v3.mtp-v1": {
|
|
"type": "Transitive",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "O41aAzYKBT5PWqATa1oEWVNCyEUypFQ4va6K0kz37dduV3EKzXNMaV2UnEhufzU4Cce1I33gg0oldS8tGL5I0A==",
|
|
"dependencies": {
|
|
"xunit.analyzers": "1.27.0",
|
|
"xunit.v3.assert": "[3.2.2]",
|
|
"xunit.v3.core.mtp-v1": "[3.2.2]"
|
|
}
|
|
},
|
|
"xunit.v3.runner.common": {
|
|
"type": "Transitive",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "/hkHkQCzGrugelOAehprm7RIWdsUFVmIVaD6jDH/8DNGCymTlKKPTbGokD5czbAfqfex47mBP0sb0zbHYwrO/g==",
|
|
"dependencies": {
|
|
"Microsoft.Win32.Registry": "[5.0.0]",
|
|
"xunit.v3.common": "[3.2.2]"
|
|
}
|
|
},
|
|
"xunit.v3.runner.inproc.console": {
|
|
"type": "Transitive",
|
|
"resolved": "3.2.2",
|
|
"contentHash": "ulWOdSvCk+bPXijJZ73bth9NyoOHsAs1ZOvamYbCkD4DNLX/Bd29Ve2ZNUwBbK0MqfIYWXHZViy/HKrdEC/izw==",
|
|
"dependencies": {
|
|
"xunit.v3.extensibility.core": "[3.2.2]",
|
|
"xunit.v3.runner.common": "[3.2.2]"
|
|
}
|
|
},
|
|
"dodossh.contracts": {
|
|
"type": "Project"
|
|
},
|
|
"dodossh.crypto": {
|
|
"type": "Project",
|
|
"dependencies": {
|
|
"NSec.Cryptography": "[26.4.0, )"
|
|
}
|
|
},
|
|
"libsodium": {
|
|
"type": "CentralTransitive",
|
|
"requested": "[1.0.22, )",
|
|
"resolved": "1.0.22",
|
|
"contentHash": "KPD9SloJFclrsjnhABu7dzWrcyYkwPbvx5l1gRSPAX/0n+OBtSiVCKtGFv4n+ecWUHU0tCG9LSSwoZZx673zBQ=="
|
|
},
|
|
"NSec.Cryptography": {
|
|
"type": "CentralTransitive",
|
|
"requested": "[26.4.0, )",
|
|
"resolved": "26.4.0",
|
|
"contentHash": "0vsCtY5f+YgQROiWNqzgWp+l2pddfk9FkWoGV/bEo0MuEYPKlJWuoA8aOfO6qp3f+EnObKE3zSJhn1PspJeJVg==",
|
|
"dependencies": {
|
|
"libsodium": "[1.0.22, 1.0.23)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |