將部分依賴存放本地, 添加針對移動端的報錯提示, 修正 CryptoES 的導出以及 Utf8 的引用, 忽略編譯靜態庫文件

This commit is contained in:
CrescentLeaf
2025-09-06 22:09:33 +08:00
parent 3c02b55a9b
commit d0c9465498
44 changed files with 6251 additions and 14 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