Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@noble/post-quantum": "0.6.1",
"@types/node": "^26.1.1",
"eslint": "^9.18.0",
"prettier": "^3.4.2",
"prettier": "^3.9.6",
"tsx": "^4.23.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.20.0"
Expand Down
11 changes: 1 addition & 10 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@ export type FindingCategory =

/** Classical asymmetric algorithm families that are not quantum-safe. */
export type AlgorithmFamily =
| "RSA"
| "ECDH"
| "ECDSA"
| "EdDSA"
| "DH"
| "DSA"
| "X25519"
| "X448"
| "ECIES"
| "unknown";
"RSA" | "ECDH" | "ECDSA" | "EdDSA" | "DH" | "DSA" | "X25519" | "X448" | "ECIES" | "unknown";

/** A precise location inside a scanned file. */
export interface SourceLocation {
Expand Down
4 changes: 1 addition & 3 deletions packages/sieve/src/categories/correctness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ import { toB64 } from "../protocol.js";

/** Outcome of one round-trip iteration. */
type Outcome =
| { kind: "ok" }
| { kind: "mismatch"; detail: string }
| { kind: "error"; detail: string };
{ kind: "ok" } | { kind: "mismatch"; detail: string } | { kind: "error"; detail: string };

export const correctness: Category = async (ctx): Promise<CategoryResult> => {
const checks: Check[] = [];
Expand Down
7 changes: 1 addition & 6 deletions packages/sieve/src/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,7 @@ interface ErrorResult {

/** Any response the SUT may emit. */
export type Response =
| KeygenResult
| EncapsResult
| DecapsResult
| SignResult
| VerifyResult
| ErrorResult;
KeygenResult | EncapsResult | DecapsResult | SignResult | VerifyResult | ErrorResult;

// ---------------------------------------------------------------------------
// Serialization
Expand Down
Loading