MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / checkForKDFAlgorithm

Function checkForKDFAlgorithm

app/core/Encryptor/lib.ts:14–18  ·  view source on GitHub ↗
(algorithm: string)

Source from the content-addressed store, hash-verified

12const AesForked = NativeModules.AesForked;
13
14function checkForKDFAlgorithm(algorithm: string) {
15 if (algorithm !== KDF_ALGORITHM) {
16 throw new Error('Unsupported KDF algorithm');
17 }
18}
19
20class AesEncryptionLibrary implements EncryptionLibrary {
21 deriveKey = async (

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected