This commit is contained in:
2025-05-19 20:36:21 -05:00
commit f5303487be
1865 changed files with 260387 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { AES } from "./aes.js";
export class ModeOfOperation {
constructor(name, key, cls) {
if (cls && !(this instanceof cls)) {
throw new Error(`${name} must be instantiated with "new"`);
}
Object.defineProperties(this, {
aes: { enumerable: true, value: new AES(key) },
name: { enumerable: true, value: name }
});
}
}
//# sourceMappingURL=mode.js.map