chore: localfied react, react-dom and crypto-es

This commit is contained in:
CrescentLeaf
2025-09-06 23:28:50 +08:00
parent 22b8269c4b
commit b6140063c7
45 changed files with 26277 additions and 36 deletions

View File

@@ -0,0 +1,22 @@
import { WordArray } from "./core.mjs";
import { ZeroPadding } from "./pad-zeropadding.mjs";
//#region src/pad-iso97971.ts
/**
* ISO/IEC 9797-1 Padding Method 2.
*/
const Iso97971 = {
pad(data, blockSize) {
data.concat(WordArray.create([2147483648], 1));
ZeroPadding.pad(data, blockSize);
},
unpad(data) {
const _data = data;
ZeroPadding.unpad(_data);
_data.sigBytes -= 1;
}
};
//#endregion
export { Iso97971 };
//# sourceMappingURL=pad-iso97971.mjs.map