/** * Copyright (c) 2025 Ofri Peretz * Licensed under the MIT License. Use of this source code is governed by the * MIT license that can be found in the LICENSE file. */ /** * ESLint Rule: no-static-iv * Detects use of hardcoded or reused initialization vectors (IVs) * CWE-329: Not Using an Unpredictable IV with CBC Mode * * @see https://cwe.mitre.org/data/definitions/329.html */ import type { TSESLint } from '@interlace/eslint-devkit'; type MessageIds = 'staticIv' | 'useRandomBytes'; export interface Options { /** Allow static IVs in test files. Default: false */ allowInTests?: boolean; } type RuleOptions = [Options?]; export declare const noStaticIv: TSESLint.RuleModule & { name: string; }; export type { Options as NoStaticIvOptions };