From 41c6fee1de5640c7af9b4504d05fc91923ad05d4 Mon Sep 17 00:00:00 2001 From: Drazail Date: Thu, 4 Aug 2022 01:02:33 +0300 Subject: [PATCH] adding hooks and relevant tests, bbumping dependencies --- JSHash/Hooks/useHash.js | 27 ++ JSHash/Hooks/useHmac.js | 29 ++ README.md | 41 +++ __tests__/JSHash.test.js | 67 ---- __tests__/JSHmac.test.js | 78 +++++ __tests__/hooks/useHash.test.js | 165 ++++++++++ __tests__/hooks/useHmack.test.js | 170 ++++++++++ coverage/coverage-final.json | 31 +- coverage/favicon.png | Bin 540 -> 445 bytes coverage/index.html | 68 ++-- coverage/react-native-hash/Constants.js.html | 4 +- .../react-native-hash/JSHash/Hooks/index.html | 131 ++++++++ .../JSHash/Hooks/useHash.js.html | 166 ++++++++++ .../JSHash/Hooks/useHmac.js.html | 172 ++++++++++ .../react-native-hash/JSHash/JSHash.js.html | 36 +-- .../react-native-hash/JSHash/JSHmac.js.html | 32 +- coverage/react-native-hash/JSHash/index.html | 2 +- .../JSHash/lib/core/Base.js.html | 32 +- .../lib/core/BufferedBlockAlgorithm.js.html | 56 ++-- .../JSHash/lib/core/CipherParams.js.html | 2 +- .../JSHash/lib/core/HMAC.js.html | 146 ++++----- .../JSHash/lib/core/Hasher.js.html | 56 ++-- .../JSHash/lib/core/Hex.js.html | 16 +- .../JSHash/lib/core/Latin1.js.html | 12 +- .../JSHash/lib/core/Utf8.js.html | 4 +- .../JSHash/lib/core/WordArray.js.html | 70 ++--- .../JSHash/lib/core/core.js.html | 2 +- .../JSHash/lib/core/index.html | 98 +++--- .../JSHash/lib/core/x64-core/X64Word.js.html | 8 +- .../lib/core/x64-core/X64WordArray.js.html | 24 +- .../JSHash/lib/core/x64-core/index.html | 2 +- .../JSHash/lib/format-hex.js.html | 4 +- .../react-native-hash/JSHash/lib/index.html | 2 +- .../JSHash/lib/index.js.html | 2 +- .../react-native-hash/JSHash/lib/md5.js.html | 242 +++++++------- .../react-native-hash/JSHash/lib/sha1.js.html | 82 ++--- .../JSHash/lib/sha224.js.html | 10 +- .../JSHash/lib/sha256.js.html | 102 +++--- .../react-native-hash/JSHash/lib/sha3.js.html | 180 +++++------ .../JSHash/lib/sha384.js.html | 10 +- .../JSHash/lib/sha512.js.html | 296 +++++++++--------- .../react-native-hash/__tests__/C.js.html | 30 +- .../react-native-hash/__tests__/index.html | 2 +- coverage/react-native-hash/index.html | 2 +- coverage/sort-arrow-sprite.png | Bin 209 -> 138 bytes example/App.js | 82 +++-- example/android/build.gradle | 2 +- example/package.json | 20 +- index.d.ts | 22 +- index.js | 2 + package.json | 27 +- 51 files changed, 1897 insertions(+), 969 deletions(-) create mode 100644 JSHash/Hooks/useHash.js create mode 100644 JSHash/Hooks/useHmac.js create mode 100644 __tests__/JSHmac.test.js create mode 100644 __tests__/hooks/useHash.test.js create mode 100644 __tests__/hooks/useHmack.test.js create mode 100644 coverage/react-native-hash/JSHash/Hooks/index.html create mode 100644 coverage/react-native-hash/JSHash/Hooks/useHash.js.html create mode 100644 coverage/react-native-hash/JSHash/Hooks/useHmac.js.html diff --git a/JSHash/Hooks/useHash.js b/JSHash/Hooks/useHash.js new file mode 100644 index 0000000..ee5c897 --- /dev/null +++ b/JSHash/Hooks/useHash.js @@ -0,0 +1,27 @@ +/* eslint linebreak-style: ["error", "windows"] */ +/* eslint-disable no-use-before-define */ + +import React, { useState, useEffect } from 'react'; +import hashString from '../JSHash.js'; +import CONSTANTS from '../../Constants.js'; + +const useHash = ( + hashAlgo = CONSTANTS.HashAlgorithms.md5, + initialMessage = 'hello World', +) => { + const [Algo, setAlgo] = useState(hashAlgo); + const [message, setMessage] = useState(initialMessage); + const [hashed, setHashed] = useState(); + useEffect(() => { + const hash = () => hashString(message, Algo) + .then((a) => setHashed(a)) + .catch((er) => { + console.error(er); + }); + hash(); + }, [message, Algo]); + + return [hashed, setAlgo, setMessage]; +}; + +export default useHash; diff --git a/JSHash/Hooks/useHmac.js b/JSHash/Hooks/useHmac.js new file mode 100644 index 0000000..c10e567 --- /dev/null +++ b/JSHash/Hooks/useHmac.js @@ -0,0 +1,29 @@ +/* eslint linebreak-style: ["error", "windows"] */ +/* eslint-disable no-use-before-define */ + +import React, { useState, useEffect } from 'react'; +import hmacString from '../JSHmac.js'; +import CONSTANTS from '../../Constants.js'; + +const useHmac = ( + hmacAlgo = CONSTANTS.HmacAlgorithms.HmacMD5, + initialMessage = 'hello World', + initialSecret = 'SecretKey', +) => { + const [Algo, setAlgo] = useState(hmacAlgo); + const [message, setMessage] = useState(initialMessage); + const [secret, setSecret] = useState(initialSecret); + const [hmaced, setHmaced] = useState(); + useEffect(() => { + const hmac = () => hmacString(message, secret, Algo) + .then((a) => setHmaced(a)) + .catch((er) => { + console.error(er); + }); + hmac(); + }, [message, secret, Algo]); + + return [hmaced, setAlgo, setMessage, setSecret]; +}; + +export default useHmac; diff --git a/README.md b/README.md index 167f14c..8524000 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,47 @@ JSHmac("message", "SecretKey", CONSTANTS.HmacAlgorithms.HmacSHA256) check out the [example](https://github.com/Drazail/react-native-hash/blob/f992bdb09b1df5652a3b1590ca6e903a077ad4e6/example/App.js#L88-L90) for more information. +# React Hooks + +Following hooks are available: + +```javaScript +useHash( + hmacAlgo?: string = "MD5", + initialMessage: ?string = "hello World", +): [ + hashed: string, + setMessage: (message: string) => Promise, + setAlgo: (algo: string) => Promise +]; +``` + +```javaScript +useHmac( + hmacAlgo?: string = "HmacMD5", + initialMessage: ?string = "hello World", + initialSecret: ?string = "SecretKey" +): [ + hashed: string, + setMessage: (message: string) => Promise, + setAlgo: (algo: string) => Promise, + setSecret: (secret: string) => Promise +]; +``` +## Usage + +```javaScript +const [hashedMessage, setHashAlgo, setHashMessage] = useHash(); +const [hmac, setHmacAlgo, setHmacMessage, setHmacSecret] = useHmac(); +``` + +`hashedMessage` and `hmac` will update after a call to one of the setters is resolved. + +note that all the setter functions of these two hooks are async and will return a `promise`. + +check out the [example] for more information. + + *** # Android diff --git a/__tests__/JSHash.test.js b/__tests__/JSHash.test.js index 2dbd5f2..77c8f9e 100644 --- a/__tests__/JSHash.test.js +++ b/__tests__/JSHash.test.js @@ -14,14 +14,7 @@ import { SHA224Hashes, SHA384Hashes, KeccakHashes, - HmacMD5s, - HmacSHA1s, - HmacSHA224s, - HmacSHA256s, - HmacSHA384s, - HmacSHA512s, } from './C.js'; -import hmacString from '../JSHash/JSHmac.js'; describe('JSHash hasString Function', () => { test('MD5', async () => { @@ -92,64 +85,4 @@ describe('JSHash hasString Function', () => { hashString('value', 'badHashAlgo'), ).rejects.toEqual(new Error('badHashAlgo algorithm is not suported')); }); - - test('HmacMD5', async () => { - const iterator = TestStrings.entries(); - for (const [index, value] of iterator) { - await expect( - hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacMD5), - ).resolves.toEqual(HmacMD5s[index]); - } - }); - - test('HmacSHA1', async () => { - const iterator = TestStrings.entries(); - for (const [index, value] of iterator) { - await expect( - hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA1), - ).resolves.toEqual(HmacSHA1s[index]); - } - }); - - test('HmacSHA224', async () => { - const iterator = TestStrings.entries(); - for (const [index, value] of iterator) { - await expect( - hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA224), - ).resolves.toEqual(HmacSHA224s[index]); - } - }); - - test('HmacSHA256', async () => { - const iterator = TestStrings.entries(); - for (const [index, value] of iterator) { - await expect( - hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA256), - ).resolves.toEqual(HmacSHA256s[index]); - } - }); - - test('HmacSHA384', async () => { - const iterator = TestStrings.entries(); - for (const [index, value] of iterator) { - await expect( - hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA384), - ).resolves.toEqual(HmacSHA384s[index]); - } - }); - - test('HmacSHA512', async () => { - const iterator = TestStrings.entries(); - for (const [index, value] of iterator) { - await expect( - hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA512), - ).resolves.toEqual(HmacSHA512s[index]); - } - }); - - test('badHmac', async () => { - await expect( - hmacString('value', 'SecretKey', 'badHmacAlgo'), - ).rejects.toEqual(new Error('badHmacAlgo algorithm is not suported')); - }); }); diff --git a/__tests__/JSHmac.test.js b/__tests__/JSHmac.test.js new file mode 100644 index 0000000..00933d4 --- /dev/null +++ b/__tests__/JSHmac.test.js @@ -0,0 +1,78 @@ +/* eslint linebreak-style: ["error", "windows"] */ +/* eslint-disable no-restricted-syntax */ +/* eslint-disable no-await-in-loop */ + +import CONSTANTS from '../Constants.js'; + +import { + TestStrings, + HmacMD5s, + HmacSHA1s, + HmacSHA224s, + HmacSHA256s, + HmacSHA384s, + HmacSHA512s, +} from './C.js'; +import hmacString from '../JSHash/JSHmac.js'; + +describe('JSHash hasString Function', () => { + test('HmacMD5', async () => { + const iterator = TestStrings.entries(); + for (const [index, value] of iterator) { + await expect( + hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacMD5), + ).resolves.toEqual(HmacMD5s[index]); + } + }); + + test('HmacSHA1', async () => { + const iterator = TestStrings.entries(); + for (const [index, value] of iterator) { + await expect( + hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA1), + ).resolves.toEqual(HmacSHA1s[index]); + } + }); + + test('HmacSHA224', async () => { + const iterator = TestStrings.entries(); + for (const [index, value] of iterator) { + await expect( + hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA224), + ).resolves.toEqual(HmacSHA224s[index]); + } + }); + + test('HmacSHA256', async () => { + const iterator = TestStrings.entries(); + for (const [index, value] of iterator) { + await expect( + hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA256), + ).resolves.toEqual(HmacSHA256s[index]); + } + }); + + test('HmacSHA384', async () => { + const iterator = TestStrings.entries(); + for (const [index, value] of iterator) { + await expect( + hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA384), + ).resolves.toEqual(HmacSHA384s[index]); + } + }); + + test('HmacSHA512', async () => { + const iterator = TestStrings.entries(); + for (const [index, value] of iterator) { + await expect( + hmacString(value, 'SecretKey', CONSTANTS.HmacAlgorithms.HmacSHA512), + ).resolves.toEqual(HmacSHA512s[index]); + } + }); + + test('badHmac', async () => { + await expect( + hmacString('value', 'SecretKey', 'badHmacAlgo'), + ).rejects.toEqual(new Error('badHmacAlgo algorithm is not suported')); + }); +}); diff --git a/__tests__/hooks/useHash.test.js b/__tests__/hooks/useHash.test.js new file mode 100644 index 0000000..e4f0801 --- /dev/null +++ b/__tests__/hooks/useHash.test.js @@ -0,0 +1,165 @@ +/* eslint-disable no-plusplus */ +/* eslint linebreak-style: ["error", "windows"] */ + +import { act, renderHook, waitFor } from '@testing-library/react-native'; +import useHash from '../../JSHash/Hooks/useHash.js'; +import CONSTANTS from '../../Constants.js'; +import { + TestStrings, + Md5Hashes, + SHA1Hashes, + SHA224Hashes, + SHA256Hashes, + SHA384Hashes, + SHA512Hashes, + KeccakHashes, +} from '../C.js'; + +/** + * hashedMessage == result.current[0] + * SetAlgo == result.current[1] + * setMessage == result.current[2] + */ + +test('should use hook', async () => { + const { result } = renderHook(() => useHash()); + + expect(typeof result.current[2]).toBe('function'); + expect(typeof result.current[2]).toBe('function'); + waitFor(() => expect(result.current[0]).toBe('39d11ab1c3c6c9eab3f5b3675f438dbf')); +}); + +test('should use initial message', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); +}); + +test('should update message', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5)); + + waitFor(() => expect(result.current[0]).toBe('39d11ab1c3c6c9eab3f5b3675f438dbf')); + act(() => result.current[2]('testMessage1')); + waitFor(() => expect(result.current[0]).toBe('dccf67b5b214dc38e729958f6a6be829')); + act(() => result.current[2]('testMessage2')); + waitFor(() => expect(result.current[0]).toBe('1ddfe493cdf4176866742a4afa04c840')); +}); + +test('should update algo', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + act(() => result.current[1](CONSTANTS.HashAlgorithms.sha1)); + waitFor(() => expect(result.current[0]).toBe('d2581121a80ea419e91878d321100cc99dfb21db')); +}); + +test('should pass all test strings for MD5', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on MD5 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(Md5Hashes[index])); + } +}); + +test('should pass all test strings for SHA-1', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + + act(() => result.current[1](CONSTANTS.HashAlgorithms.sha1)); + waitFor(() => expect(result.current[0]).toBe('d2581121a80ea419e91878d321100cc99dfb21db')); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on SHA-1 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(SHA1Hashes[index])); + } +}); + +test('should pass all test strings for SHA-224', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + + act(() => result.current[1](CONSTANTS.HashAlgorithms.sha224)); + waitFor(() => expect(result.current[0]).toBe( + '9f88cd1ebf58072d157320edfbe19e9d691186ebe9f04adf97e56acf', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on SHA-224 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(SHA224Hashes[index])); + } +}); + +test('should pass all test strings for SHA-256', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + + act(() => result.current[1](CONSTANTS.HashAlgorithms.sha256)); + waitFor(() => expect(result.current[0]).toBe( + 'd9920dc69e7b8352ea5774041afeaf8eeebd1c4985bae1368c2a5559c12bcb56', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on SHA-256 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(SHA256Hashes[index])); + } +}); + +test('should pass all test strings for SHA-384', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + + act(() => result.current[1](CONSTANTS.HashAlgorithms.sha384)); + waitFor(() => expect(result.current[0]).toBe( + 'e9e230f76fe1d4f93ec9e649c85d3852bad7a5c3d271d56dbd474f30a81b50d4d32ab842df113a70160f0b2672b41b52', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on SHA-384 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(SHA384Hashes[index])); + } +}); + +test('should pass all test strings for SHA-512', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + + act(() => result.current[1](CONSTANTS.HashAlgorithms.sha512)); + waitFor(() => expect(result.current[0]).toBe( + '413a3e2d4d844350d6e5ef595cc2ede4ba58e0cfd754dcb4405b149780704a5281ffeb9b00aa3e0f22e73c6cac3396d7d55a0d5701424921a12d06292f72ca59', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on SHA-512 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(SHA512Hashes[index])); + } +}); + +test('should pass all test strings for keccak', async () => { + const { result } = renderHook(() => useHash(CONSTANTS.HashAlgorithms.md5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('c703b927a0c5d56e5a33c4b834053bd4')); + + act(() => result.current[1](CONSTANTS.HashAlgorithms.keccak)); + waitFor(() => expect(result.current[0]).toBe( + 'd9de47c4755e556d57d08c844c2ef912c543c745b4e8c4408aced9e6f9a21728fe9413c2c214d35c0308eb1b9ed119b19438b17c6208487560533b08b96fb7b9', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on keccak algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(KeccakHashes[index])); + } +}); diff --git a/__tests__/hooks/useHmack.test.js b/__tests__/hooks/useHmack.test.js new file mode 100644 index 0000000..0736cbb --- /dev/null +++ b/__tests__/hooks/useHmack.test.js @@ -0,0 +1,170 @@ +/* eslint-disable no-plusplus */ +/* eslint linebreak-style: ["error", "windows"] */ + +import { act, renderHook, waitFor } from '@testing-library/react-native'; +import useHmac from '../../JSHash/Hooks/useHmac.js'; +import CONSTANTS from '../../Constants.js'; +import { + TestStrings, + HmacMD5s, + HmacSHA1s, + HmacSHA224s, + HmacSHA256s, + HmacSHA384s, + HmacSHA512s, +} from '../C.js'; +/** + * hmacedMessage == result.current[0] + * SetAlgo == result.current[1] + * setMessage == result.current[2] + * setSecret == result.current[3] + */ +test('should use hook', async () => { + const { result } = renderHook(() => useHmac()); + + expect(typeof result.current[1]).toBe('function'); + expect(typeof result.current[2]).toBe('function'); + expect(typeof result.current[3]).toBe('function'); + waitFor(() => expect(result.current[0]).toBe('12d7d6f9dc80359d60f1cdbae4502535')); +}); + +test('should use initial message', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); +}); + +test('should use initial secret', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage', 'SecretKey-2')); + waitFor(() => expect(result.current[0]).toBe('d5b755795cdf69b1b320ba2cf00e6bb3')); +}); + +test('should update message', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5)); + + waitFor(() => expect(result.current[0]).toBe('12d7d6f9dc80359d60f1cdbae4502535')); + act(() => result.current[2]('testMessage1')); + waitFor(() => expect(result.current[0]).toBe('4f58bb5dd9d2b692b0c6764c6447e34f')); + act(() => result.current[2]('testMessage2')); + waitFor(() => expect(result.current[0]).toBe('0cc80d81ca954657d77cfd055fbe5bec')); +}); + +test('should update secret', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5)); + + waitFor(() => expect(result.current[0]).toBe('12d7d6f9dc80359d60f1cdbae4502535')); + act(() => result.current[3]('SecretKey-1')); + waitFor(() => expect(result.current[0]).toBe('35ae1a8865638f584ded5de3862b019e')); + act(() => result.current[3]('SecretKey-2')); + waitFor(() => expect(result.current[0]).toBe('81cbda2898ad9fa5c7fe7de1aa451c23')); +}); + +test('should update algo', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); + act(() => result.current[1](CONSTANTS.HmacAlgorithms.HmacSHA1)); + waitFor(() => expect(result.current[0]).toBe('b039ebfa8c171945745f265b349d6b9058683add')); +}); + +test('should pass all test strings for MD5', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on HMAC-MD5 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(HmacMD5s[index])); + } +}); + +test('should pass all test strings for HMAC-SHA-1', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); + + act(() => result.current[1](CONSTANTS.HmacAlgorithms.HmacSHA1)); + waitFor(() => expect(result.current[0]).toBe('b039ebfa8c171945745f265b349d6b9058683add')); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write(`processing TestString[${index}] on HMAC-SHA-1 algo`); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(HmacSHA1s[index])); + } +}); + +test('should pass all test strings for HMAC-SHA-224', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); + + act(() => result.current[1](CONSTANTS.HmacAlgorithms.HmacSHA224)); + waitFor(() => expect(result.current[0]).toBe( + 'c020f4a07df71faff9d7c4e27d2d23870f913b0728dd609598aec3af', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write( + `processing TestString[${index}] on HMAC-SHA-224 algo`, + ); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(HmacSHA224s[index])); + } +}); + +test('should pass all test strings for HMAC-SHA-256', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); + + act(() => result.current[1](CONSTANTS.HmacAlgorithms.HmacSHA256)); + waitFor(() => expect(result.current[0]).toBe( + '57fec5525b413ee9760223f72b90b1602f87bff9ff81355ccd96b19358c14d9d', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write( + `processing TestString[${index}] on HMAC-SHA-256 algo`, + ); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(HmacSHA256s[index])); + } +}); + +test('should pass all test strings for HMAC-SHA-384', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); + + act(() => result.current[1](CONSTANTS.HmacAlgorithms.HmacSHA384)); + waitFor(() => expect(result.current[0]).toBe( + 'ace53da255a7dec8bb60906943bef6077c2ff7fef492f12e1a3bdac2c650fef9089b71f98bb4dbdedbb8db328d9dec1b', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write( + `processing TestString[${index}] on HMAC-SHA-384 algo`, + ); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(HmacSHA384s[index])); + } +}); + +test('should pass all test strings for HMAC-SHA-512', async () => { + const { result } = renderHook(() => useHmac(CONSTANTS.HmacAlgorithms.HmacMD5, 'testMessage')); + + waitFor(() => expect(result.current[0]).toBe('7b216128808b283b9a88dd453f480e0c')); + + act(() => result.current[1](CONSTANTS.HmacAlgorithms.HmacSHA512)); + waitFor(() => expect(result.current[0]).toBe( + '54fb61eee2b321956d3fdb36f1fd4f8582094906ca03ed5ac583e4caf750ca65f74d15c4c6502322212315b7a0e1e71b329565f5111eb43a8015cae929d67640', + )); + + for (let index = 0; index < TestStrings.length; index++) { + process.stdout.write( + `processing TestString[${index}] on HMAC-SHA-512 algo`, + ); + act(() => result.current[2](TestStrings[index])); + waitFor(() => expect(result.current[0]).toBe(HmacSHA512s[index])); + } +}); diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json index 5d857c0..0fb6711 100644 --- a/coverage/coverage-final.json +++ b/coverage/coverage-final.json @@ -1,26 +1,7 @@ -{"G:\\projects\\react-native-hash\\react-native-hash\\Constants.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\Constants.js","statementMap":{"0":{"start":{"line":3,"column":18},"end":{"line":34,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"57e31fe0a3f4d7f71b747ee62c86e494e170282f"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHash.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHash.js","statementMap":{"0":{"start":{"line":15,"column":4},"end":{"line":15,"column":8}},"1":{"start":{"line":22,"column":19},"end":{"line":55,"column":1}},"2":{"start":{"line":23,"column":2},"end":{"line":54,"column":3}},"3":{"start":{"line":25,"column":19},"end":{"line":25,"column":36}},"4":{"start":{"line":26,"column":6},"end":{"line":26,"column":33}},"5":{"start":{"line":29,"column":19},"end":{"line":29,"column":37}},"6":{"start":{"line":30,"column":6},"end":{"line":30,"column":33}},"7":{"start":{"line":33,"column":19},"end":{"line":33,"column":39}},"8":{"start":{"line":34,"column":6},"end":{"line":34,"column":33}},"9":{"start":{"line":37,"column":19},"end":{"line":37,"column":39}},"10":{"start":{"line":38,"column":6},"end":{"line":38,"column":33}},"11":{"start":{"line":41,"column":19},"end":{"line":41,"column":39}},"12":{"start":{"line":42,"column":6},"end":{"line":42,"column":33}},"13":{"start":{"line":45,"column":19},"end":{"line":45,"column":39}},"14":{"start":{"line":46,"column":6},"end":{"line":46,"column":33}},"15":{"start":{"line":49,"column":19},"end":{"line":49,"column":37}},"16":{"start":{"line":50,"column":6},"end":{"line":50,"column":33}},"17":{"start":{"line":53,"column":6},"end":{"line":53,"column":64}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":22,"column":19},"end":{"line":22,"column":20}},"loc":{"start":{"line":22,"column":48},"end":{"line":55,"column":1}},"line":22}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":2},"end":{"line":54,"column":3}},"type":"switch","locations":[{"start":{"line":24,"column":4},"end":{"line":27,"column":5}},{"start":{"line":28,"column":4},"end":{"line":31,"column":5}},{"start":{"line":32,"column":4},"end":{"line":35,"column":5}},{"start":{"line":36,"column":4},"end":{"line":39,"column":5}},{"start":{"line":40,"column":4},"end":{"line":43,"column":5}},{"start":{"line":44,"column":4},"end":{"line":47,"column":5}},{"start":{"line":48,"column":4},"end":{"line":51,"column":5}},{"start":{"line":52,"column":4},"end":{"line":53,"column":64}}],"line":23}},"s":{"0":1,"1":1,"2":71,"3":10,"4":10,"5":10,"6":10,"7":10,"8":10,"9":10,"10":10,"11":10,"12":10,"13":10,"14":10,"15":10,"16":10,"17":1},"f":{"0":71},"b":{"0":[10,10,10,10,10,10,10,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"df46c2e28222237f5ab1d718bd4be76c865db363"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHmac.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHmac.js","statementMap":{"0":{"start":{"line":14,"column":4},"end":{"line":14,"column":8}},"1":{"start":{"line":21,"column":19},"end":{"line":53,"column":1}},"2":{"start":{"line":22,"column":2},"end":{"line":52,"column":3}},"3":{"start":{"line":24,"column":19},"end":{"line":24,"column":45}},"4":{"start":{"line":25,"column":6},"end":{"line":25,"column":33}},"5":{"start":{"line":29,"column":19},"end":{"line":29,"column":46}},"6":{"start":{"line":30,"column":6},"end":{"line":30,"column":33}},"7":{"start":{"line":34,"column":19},"end":{"line":34,"column":48}},"8":{"start":{"line":35,"column":6},"end":{"line":35,"column":33}},"9":{"start":{"line":39,"column":19},"end":{"line":39,"column":48}},"10":{"start":{"line":40,"column":6},"end":{"line":40,"column":33}},"11":{"start":{"line":43,"column":19},"end":{"line":43,"column":48}},"12":{"start":{"line":44,"column":6},"end":{"line":44,"column":33}},"13":{"start":{"line":47,"column":19},"end":{"line":47,"column":48}},"14":{"start":{"line":48,"column":6},"end":{"line":48,"column":33}},"15":{"start":{"line":51,"column":6},"end":{"line":51,"column":64}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":21,"column":19},"end":{"line":21,"column":20}},"loc":{"start":{"line":21,"column":53},"end":{"line":53,"column":1}},"line":21}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":2},"end":{"line":52,"column":3}},"type":"switch","locations":[{"start":{"line":23,"column":4},"end":{"line":26,"column":5}},{"start":{"line":28,"column":4},"end":{"line":31,"column":5}},{"start":{"line":33,"column":4},"end":{"line":36,"column":5}},{"start":{"line":38,"column":4},"end":{"line":41,"column":5}},{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":50,"column":4},"end":{"line":51,"column":64}}],"line":22}},"s":{"0":1,"1":1,"2":61,"3":10,"4":10,"5":10,"6":10,"7":10,"8":10,"9":10,"10":10,"11":10,"12":10,"13":10,"14":10,"15":1},"f":{"0":61},"b":{"0":[10,10,10,10,10,10,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0e665495fb69f06ace197d0773d5230fcbbbaecc"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\format-hex.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\format-hex.js","statementMap":{"0":{"start":{"line":8,"column":28},"end":{"line":43,"column":1}},"1":{"start":{"line":23,"column":4},"end":{"line":23,"column":38}},"2":{"start":{"line":40,"column":23},"end":{"line":40,"column":39}},"3":{"start":{"line":41,"column":4},"end":{"line":41,"column":47}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":22,"column":2},"end":{"line":22,"column":3}},"loc":{"start":{"line":22,"column":26},"end":{"line":24,"column":3}},"line":22},"1":{"name":"(anonymous_1)","decl":{"start":{"line":39,"column":2},"end":{"line":39,"column":3}},"loc":{"start":{"line":39,"column":15},"end":{"line":42,"column":3}},"line":39}},"branchMap":{},"s":{"0":1,"1":130,"2":0,"3":0},"f":{"0":130,"1":0},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b03632a36f87fe36747229740384250efce4e698"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\index.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\index.js","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"24aa7fe7244e32e6ee3cd6988b76620756e79845"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\md5.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\md5.js","statementMap":{"0":{"start":{"line":9,"column":10},"end":{"line":9,"column":12}},"1":{"start":{"line":12,"column":0},"end":{"line":14,"column":1}},"2":{"start":{"line":12,"column":13},"end":{"line":12,"column":14}},"3":{"start":{"line":13,"column":2},"end":{"line":13,"column":55}},"4":{"start":{"line":16,"column":11},"end":{"line":19,"column":1}},"5":{"start":{"line":17,"column":12},"end":{"line":17,"column":44}},"6":{"start":{"line":18,"column":2},"end":{"line":18,"column":43}},"7":{"start":{"line":21,"column":11},"end":{"line":24,"column":1}},"8":{"start":{"line":22,"column":12},"end":{"line":22,"column":44}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":43}},"10":{"start":{"line":26,"column":11},"end":{"line":29,"column":1}},"11":{"start":{"line":27,"column":12},"end":{"line":27,"column":35}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":43}},"13":{"start":{"line":31,"column":11},"end":{"line":34,"column":1}},"14":{"start":{"line":32,"column":12},"end":{"line":32,"column":38}},"15":{"start":{"line":33,"column":2},"end":{"line":33,"column":43}},"16":{"start":{"line":41,"column":4},"end":{"line":46,"column":7}},"17":{"start":{"line":50,"column":15},"end":{"line":50,"column":16}},"18":{"start":{"line":53,"column":4},"end":{"line":62,"column":5}},"19":{"start":{"line":53,"column":17},"end":{"line":53,"column":18}},"20":{"start":{"line":55,"column":23},"end":{"line":55,"column":33}},"21":{"start":{"line":56,"column":25},"end":{"line":56,"column":36}},"22":{"start":{"line":58,"column":6},"end":{"line":61,"column":8}},"23":{"start":{"line":65,"column":14},"end":{"line":65,"column":30}},"24":{"start":{"line":67,"column":23},"end":{"line":67,"column":37}},"25":{"start":{"line":68,"column":23},"end":{"line":68,"column":37}},"26":{"start":{"line":69,"column":23},"end":{"line":69,"column":37}},"27":{"start":{"line":70,"column":23},"end":{"line":70,"column":37}},"28":{"start":{"line":71,"column":23},"end":{"line":71,"column":37}},"29":{"start":{"line":72,"column":23},"end":{"line":72,"column":37}},"30":{"start":{"line":73,"column":23},"end":{"line":73,"column":37}},"31":{"start":{"line":74,"column":23},"end":{"line":74,"column":37}},"32":{"start":{"line":75,"column":23},"end":{"line":75,"column":37}},"33":{"start":{"line":76,"column":23},"end":{"line":76,"column":37}},"34":{"start":{"line":77,"column":24},"end":{"line":77,"column":39}},"35":{"start":{"line":78,"column":24},"end":{"line":78,"column":39}},"36":{"start":{"line":79,"column":24},"end":{"line":79,"column":39}},"37":{"start":{"line":80,"column":24},"end":{"line":80,"column":39}},"38":{"start":{"line":81,"column":24},"end":{"line":81,"column":39}},"39":{"start":{"line":82,"column":24},"end":{"line":82,"column":39}},"40":{"start":{"line":85,"column":12},"end":{"line":85,"column":16}},"41":{"start":{"line":86,"column":12},"end":{"line":86,"column":16}},"42":{"start":{"line":87,"column":12},"end":{"line":87,"column":16}},"43":{"start":{"line":88,"column":12},"end":{"line":88,"column":16}},"44":{"start":{"line":91,"column":4},"end":{"line":91,"column":44}},"45":{"start":{"line":92,"column":4},"end":{"line":92,"column":45}},"46":{"start":{"line":93,"column":4},"end":{"line":93,"column":45}},"47":{"start":{"line":94,"column":4},"end":{"line":94,"column":45}},"48":{"start":{"line":95,"column":4},"end":{"line":95,"column":44}},"49":{"start":{"line":96,"column":4},"end":{"line":96,"column":45}},"50":{"start":{"line":97,"column":4},"end":{"line":97,"column":45}},"51":{"start":{"line":98,"column":4},"end":{"line":98,"column":45}},"52":{"start":{"line":99,"column":4},"end":{"line":99,"column":44}},"53":{"start":{"line":100,"column":4},"end":{"line":100,"column":45}},"54":{"start":{"line":101,"column":4},"end":{"line":101,"column":47}},"55":{"start":{"line":102,"column":4},"end":{"line":102,"column":47}},"56":{"start":{"line":103,"column":4},"end":{"line":103,"column":46}},"57":{"start":{"line":104,"column":4},"end":{"line":104,"column":47}},"58":{"start":{"line":105,"column":4},"end":{"line":105,"column":47}},"59":{"start":{"line":106,"column":4},"end":{"line":106,"column":47}},"60":{"start":{"line":108,"column":4},"end":{"line":108,"column":45}},"61":{"start":{"line":109,"column":4},"end":{"line":109,"column":45}},"62":{"start":{"line":110,"column":4},"end":{"line":110,"column":47}},"63":{"start":{"line":111,"column":4},"end":{"line":111,"column":46}},"64":{"start":{"line":112,"column":4},"end":{"line":112,"column":45}},"65":{"start":{"line":113,"column":4},"end":{"line":113,"column":46}},"66":{"start":{"line":114,"column":4},"end":{"line":114,"column":47}},"67":{"start":{"line":115,"column":4},"end":{"line":115,"column":46}},"68":{"start":{"line":116,"column":4},"end":{"line":116,"column":45}},"69":{"start":{"line":117,"column":4},"end":{"line":117,"column":46}},"70":{"start":{"line":118,"column":4},"end":{"line":118,"column":46}},"71":{"start":{"line":119,"column":4},"end":{"line":119,"column":46}},"72":{"start":{"line":120,"column":4},"end":{"line":120,"column":46}},"73":{"start":{"line":121,"column":4},"end":{"line":121,"column":45}},"74":{"start":{"line":122,"column":4},"end":{"line":122,"column":46}},"75":{"start":{"line":123,"column":4},"end":{"line":123,"column":47}},"76":{"start":{"line":125,"column":4},"end":{"line":125,"column":45}},"77":{"start":{"line":126,"column":4},"end":{"line":126,"column":46}},"78":{"start":{"line":127,"column":4},"end":{"line":127,"column":47}},"79":{"start":{"line":128,"column":4},"end":{"line":128,"column":47}},"80":{"start":{"line":129,"column":4},"end":{"line":129,"column":45}},"81":{"start":{"line":130,"column":4},"end":{"line":130,"column":46}},"82":{"start":{"line":131,"column":4},"end":{"line":131,"column":46}},"83":{"start":{"line":132,"column":4},"end":{"line":132,"column":47}},"84":{"start":{"line":133,"column":4},"end":{"line":133,"column":46}},"85":{"start":{"line":134,"column":4},"end":{"line":134,"column":46}},"86":{"start":{"line":135,"column":4},"end":{"line":135,"column":46}},"87":{"start":{"line":136,"column":4},"end":{"line":136,"column":46}},"88":{"start":{"line":137,"column":4},"end":{"line":137,"column":45}},"89":{"start":{"line":138,"column":4},"end":{"line":138,"column":47}},"90":{"start":{"line":139,"column":4},"end":{"line":139,"column":47}},"91":{"start":{"line":140,"column":4},"end":{"line":140,"column":46}},"92":{"start":{"line":142,"column":4},"end":{"line":142,"column":45}},"93":{"start":{"line":143,"column":4},"end":{"line":143,"column":46}},"94":{"start":{"line":144,"column":4},"end":{"line":144,"column":47}},"95":{"start":{"line":145,"column":4},"end":{"line":145,"column":46}},"96":{"start":{"line":146,"column":4},"end":{"line":146,"column":46}},"97":{"start":{"line":147,"column":4},"end":{"line":147,"column":46}},"98":{"start":{"line":148,"column":4},"end":{"line":148,"column":47}},"99":{"start":{"line":149,"column":4},"end":{"line":149,"column":46}},"100":{"start":{"line":150,"column":4},"end":{"line":150,"column":45}},"101":{"start":{"line":151,"column":4},"end":{"line":151,"column":47}},"102":{"start":{"line":152,"column":4},"end":{"line":152,"column":46}},"103":{"start":{"line":153,"column":4},"end":{"line":153,"column":47}},"104":{"start":{"line":154,"column":4},"end":{"line":154,"column":45}},"105":{"start":{"line":155,"column":4},"end":{"line":155,"column":47}},"106":{"start":{"line":156,"column":4},"end":{"line":156,"column":46}},"107":{"start":{"line":157,"column":4},"end":{"line":157,"column":46}},"108":{"start":{"line":160,"column":4},"end":{"line":160,"column":26}},"109":{"start":{"line":161,"column":4},"end":{"line":161,"column":26}},"110":{"start":{"line":162,"column":4},"end":{"line":162,"column":26}},"111":{"start":{"line":163,"column":4},"end":{"line":163,"column":26}},"112":{"start":{"line":169,"column":17},"end":{"line":169,"column":27}},"113":{"start":{"line":170,"column":22},"end":{"line":170,"column":32}},"114":{"start":{"line":172,"column":23},"end":{"line":172,"column":43}},"115":{"start":{"line":173,"column":22},"end":{"line":173,"column":39}},"116":{"start":{"line":176,"column":4},"end":{"line":176,"column":66}},"117":{"start":{"line":178,"column":24},"end":{"line":178,"column":60}},"118":{"start":{"line":179,"column":24},"end":{"line":179,"column":34}},"119":{"start":{"line":180,"column":4},"end":{"line":183,"column":6}},"120":{"start":{"line":184,"column":4},"end":{"line":187,"column":6}},"121":{"start":{"line":189,"column":4},"end":{"line":189,"column":47}},"122":{"start":{"line":192,"column":4},"end":{"line":192,"column":20}},"123":{"start":{"line":195,"column":17},"end":{"line":195,"column":27}},"124":{"start":{"line":196,"column":14},"end":{"line":196,"column":24}},"125":{"start":{"line":199,"column":4},"end":{"line":205,"column":5}},"126":{"start":{"line":199,"column":17},"end":{"line":199,"column":18}},"127":{"start":{"line":201,"column":18},"end":{"line":201,"column":22}},"128":{"start":{"line":203,"column":6},"end":{"line":204,"column":53}},"129":{"start":{"line":208,"column":4},"end":{"line":208,"column":16}},"130":{"start":{"line":212,"column":18},"end":{"line":212,"column":40}},"131":{"start":{"line":213,"column":4},"end":{"line":213,"column":37}},"132":{"start":{"line":215,"column":4},"end":{"line":215,"column":17}},"133":{"start":{"line":233,"column":19},"end":{"line":233,"column":48}},"134":{"start":{"line":249,"column":23},"end":{"line":249,"column":56}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":11},"end":{"line":16,"column":12}},"loc":{"start":{"line":16,"column":36},"end":{"line":19,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":11},"end":{"line":21,"column":12}},"loc":{"start":{"line":21,"column":36},"end":{"line":24,"column":1}},"line":21},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":11},"end":{"line":26,"column":12}},"loc":{"start":{"line":26,"column":36},"end":{"line":29,"column":1}},"line":26},"3":{"name":"(anonymous_3)","decl":{"start":{"line":31,"column":11},"end":{"line":31,"column":12}},"loc":{"start":{"line":31,"column":36},"end":{"line":34,"column":1}},"line":31},"4":{"name":"(anonymous_4)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":3}},"loc":{"start":{"line":40,"column":13},"end":{"line":47,"column":3}},"line":40},"5":{"name":"(anonymous_5)","decl":{"start":{"line":49,"column":2},"end":{"line":49,"column":3}},"loc":{"start":{"line":49,"column":29},"end":{"line":164,"column":3}},"line":49},"6":{"name":"(anonymous_6)","decl":{"start":{"line":167,"column":2},"end":{"line":167,"column":3}},"loc":{"start":{"line":167,"column":16},"end":{"line":209,"column":3}},"line":167},"7":{"name":"(anonymous_7)","decl":{"start":{"line":211,"column":2},"end":{"line":211,"column":3}},"loc":{"start":{"line":211,"column":10},"end":{"line":216,"column":3}},"line":211}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":64,"4":1,"5":800,"6":800,"7":1,"8":800,"9":800,"10":1,"11":800,"12":800,"13":1,"14":800,"15":800,"16":40,"17":50,"18":50,"19":50,"20":800,"21":800,"22":800,"23":50,"24":50,"25":50,"26":50,"27":50,"28":50,"29":50,"30":50,"31":50,"32":50,"33":50,"34":50,"35":50,"36":50,"37":50,"38":50,"39":50,"40":50,"41":50,"42":50,"43":50,"44":50,"45":50,"46":50,"47":50,"48":50,"49":50,"50":50,"51":50,"52":50,"53":50,"54":50,"55":50,"56":50,"57":50,"58":50,"59":50,"60":50,"61":50,"62":50,"63":50,"64":50,"65":50,"66":50,"67":50,"68":50,"69":50,"70":50,"71":50,"72":50,"73":50,"74":50,"75":50,"76":50,"77":50,"78":50,"79":50,"80":50,"81":50,"82":50,"83":50,"84":50,"85":50,"86":50,"87":50,"88":50,"89":50,"90":50,"91":50,"92":50,"93":50,"94":50,"95":50,"96":50,"97":50,"98":50,"99":50,"100":50,"101":50,"102":50,"103":50,"104":50,"105":50,"106":50,"107":50,"108":50,"109":50,"110":50,"111":50,"112":30,"113":30,"114":30,"115":30,"116":30,"117":30,"118":30,"119":30,"120":30,"121":30,"122":30,"123":30,"124":30,"125":30,"126":30,"127":120,"128":120,"129":30,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":800,"1":800,"2":800,"3":800,"4":40,"5":50,"6":30,"7":0},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"75fca6d0dae8c6710e3887c716d7c116bc182a93"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha1.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha1.js","statementMap":{"0":{"start":{"line":9,"column":10},"end":{"line":9,"column":12}},"1":{"start":{"line":16,"column":4},"end":{"line":22,"column":7}},"2":{"start":{"line":27,"column":14},"end":{"line":27,"column":30}},"3":{"start":{"line":30,"column":12},"end":{"line":30,"column":16}},"4":{"start":{"line":31,"column":12},"end":{"line":31,"column":16}},"5":{"start":{"line":32,"column":12},"end":{"line":32,"column":16}},"6":{"start":{"line":33,"column":12},"end":{"line":33,"column":16}},"7":{"start":{"line":34,"column":12},"end":{"line":34,"column":16}},"8":{"start":{"line":37,"column":4},"end":{"line":61,"column":5}},"9":{"start":{"line":37,"column":17},"end":{"line":37,"column":18}},"10":{"start":{"line":38,"column":6},"end":{"line":43,"column":7}},"11":{"start":{"line":39,"column":8},"end":{"line":39,"column":33}},"12":{"start":{"line":41,"column":18},"end":{"line":41,"column":61}},"13":{"start":{"line":42,"column":8},"end":{"line":42,"column":37}},"14":{"start":{"line":45,"column":14},"end":{"line":45,"column":48}},"15":{"start":{"line":46,"column":6},"end":{"line":54,"column":7}},"16":{"start":{"line":47,"column":8},"end":{"line":47,"column":47}},"17":{"start":{"line":48,"column":13},"end":{"line":54,"column":7}},"18":{"start":{"line":49,"column":8},"end":{"line":49,"column":38}},"19":{"start":{"line":50,"column":13},"end":{"line":54,"column":7}},"20":{"start":{"line":51,"column":8},"end":{"line":51,"column":56}},"21":{"start":{"line":53,"column":8},"end":{"line":53,"column":38}},"22":{"start":{"line":56,"column":6},"end":{"line":56,"column":12}},"23":{"start":{"line":57,"column":6},"end":{"line":57,"column":12}},"24":{"start":{"line":58,"column":6},"end":{"line":58,"column":32}},"25":{"start":{"line":59,"column":6},"end":{"line":59,"column":12}},"26":{"start":{"line":60,"column":6},"end":{"line":60,"column":12}},"27":{"start":{"line":64,"column":4},"end":{"line":64,"column":26}},"28":{"start":{"line":65,"column":4},"end":{"line":65,"column":26}},"29":{"start":{"line":66,"column":4},"end":{"line":66,"column":26}},"30":{"start":{"line":67,"column":4},"end":{"line":67,"column":26}},"31":{"start":{"line":68,"column":4},"end":{"line":68,"column":26}},"32":{"start":{"line":73,"column":17},"end":{"line":73,"column":27}},"33":{"start":{"line":74,"column":22},"end":{"line":74,"column":32}},"34":{"start":{"line":76,"column":23},"end":{"line":76,"column":43}},"35":{"start":{"line":77,"column":22},"end":{"line":77,"column":39}},"36":{"start":{"line":80,"column":4},"end":{"line":80,"column":66}},"37":{"start":{"line":81,"column":4},"end":{"line":81,"column":91}},"38":{"start":{"line":82,"column":4},"end":{"line":82,"column":65}},"39":{"start":{"line":83,"column":4},"end":{"line":83,"column":41}},"40":{"start":{"line":86,"column":4},"end":{"line":86,"column":20}},"41":{"start":{"line":89,"column":4},"end":{"line":89,"column":22}},"42":{"start":{"line":93,"column":18},"end":{"line":93,"column":40}},"43":{"start":{"line":94,"column":4},"end":{"line":94,"column":37}},"44":{"start":{"line":96,"column":4},"end":{"line":96,"column":17}},"45":{"start":{"line":114,"column":20},"end":{"line":114,"column":50}},"46":{"start":{"line":130,"column":24},"end":{"line":130,"column":58}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":15,"column":2},"end":{"line":15,"column":3}},"loc":{"start":{"line":15,"column":13},"end":{"line":23,"column":3}},"line":15},"1":{"name":"(anonymous_1)","decl":{"start":{"line":25,"column":2},"end":{"line":25,"column":3}},"loc":{"start":{"line":25,"column":29},"end":{"line":69,"column":3}},"line":25},"2":{"name":"(anonymous_2)","decl":{"start":{"line":71,"column":2},"end":{"line":71,"column":3}},"loc":{"start":{"line":71,"column":16},"end":{"line":90,"column":3}},"line":71},"3":{"name":"(anonymous_3)","decl":{"start":{"line":92,"column":2},"end":{"line":92,"column":3}},"loc":{"start":{"line":92,"column":10},"end":{"line":97,"column":3}},"line":92}},"branchMap":{"0":{"loc":{"start":{"line":38,"column":6},"end":{"line":43,"column":7}},"type":"if","locations":[{"start":{"line":38,"column":6},"end":{"line":43,"column":7}},{"start":{"line":40,"column":13},"end":{"line":43,"column":7}}],"line":38},"1":{"loc":{"start":{"line":46,"column":6},"end":{"line":54,"column":7}},"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":54,"column":7}},{"start":{"line":48,"column":13},"end":{"line":54,"column":7}}],"line":46},"2":{"loc":{"start":{"line":48,"column":13},"end":{"line":54,"column":7}},"type":"if","locations":[{"start":{"line":48,"column":13},"end":{"line":54,"column":7}},{"start":{"line":50,"column":13},"end":{"line":54,"column":7}}],"line":48},"3":{"loc":{"start":{"line":50,"column":13},"end":{"line":54,"column":7}},"type":"if","locations":[{"start":{"line":50,"column":13},"end":{"line":54,"column":7}},{"start":{"line":52,"column":31},"end":{"line":54,"column":7}}],"line":50}},"s":{"0":1,"1":40,"2":50,"3":50,"4":50,"5":50,"6":50,"7":50,"8":50,"9":50,"10":4000,"11":800,"12":3200,"13":3200,"14":4000,"15":4000,"16":1000,"17":3000,"18":1000,"19":2000,"20":1000,"21":1000,"22":4000,"23":4000,"24":4000,"25":4000,"26":4000,"27":50,"28":50,"29":50,"30":50,"31":50,"32":30,"33":30,"34":30,"35":30,"36":30,"37":30,"38":30,"39":30,"40":30,"41":30,"42":0,"43":0,"44":0,"45":1,"46":1},"f":{"0":40,"1":50,"2":30,"3":0},"b":{"0":[800,3200],"1":[1000,3000],"2":[1000,2000],"3":[1000,1000]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d3fa929b7bf5aebf9e2d5d152d5621094f8ca98c"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha224.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha224.js","statementMap":{"0":{"start":{"line":11,"column":4},"end":{"line":20,"column":7}},"1":{"start":{"line":24,"column":17},"end":{"line":24,"column":45}},"2":{"start":{"line":26,"column":4},"end":{"line":26,"column":23}},"3":{"start":{"line":28,"column":4},"end":{"line":28,"column":16}},"4":{"start":{"line":46,"column":22},"end":{"line":46,"column":58}},"5":{"start":{"line":62,"column":26},"end":{"line":62,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":2},"end":{"line":10,"column":3}},"loc":{"start":{"line":10,"column":13},"end":{"line":21,"column":3}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":2},"end":{"line":23,"column":3}},"loc":{"start":{"line":23,"column":16},"end":{"line":29,"column":3}},"line":23}},"branchMap":{},"s":{"0":40,"1":30,"2":30,"3":30,"4":1,"5":1},"f":{"0":40,"1":30},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"89503c9282d229aad926c69f0584cd64a5324e2e"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha256.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha256.js","statementMap":{"0":{"start":{"line":9,"column":10},"end":{"line":9,"column":12}},"1":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"2":{"start":{"line":13,"column":16},"end":{"line":22,"column":1}},"3":{"start":{"line":14,"column":16},"end":{"line":14,"column":28}},"4":{"start":{"line":15,"column":2},"end":{"line":19,"column":3}},"5":{"start":{"line":15,"column":20},"end":{"line":15,"column":21}},"6":{"start":{"line":16,"column":4},"end":{"line":18,"column":5}},"7":{"start":{"line":17,"column":6},"end":{"line":17,"column":19}},"8":{"start":{"line":21,"column":2},"end":{"line":21,"column":14}},"9":{"start":{"line":24,"column":26},"end":{"line":24,"column":66}},"10":{"start":{"line":24,"column":33},"end":{"line":24,"column":66}},"11":{"start":{"line":26,"column":8},"end":{"line":26,"column":9}},"12":{"start":{"line":27,"column":13},"end":{"line":27,"column":14}},"13":{"start":{"line":28,"column":0},"end":{"line":39,"column":1}},"14":{"start":{"line":29,"column":2},"end":{"line":36,"column":3}},"15":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"16":{"start":{"line":31,"column":6},"end":{"line":31,"column":50}},"17":{"start":{"line":33,"column":4},"end":{"line":33,"column":48}},"18":{"start":{"line":35,"column":4},"end":{"line":35,"column":16}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":9}},"20":{"start":{"line":42,"column":10},"end":{"line":42,"column":12}},"21":{"start":{"line":49,"column":4},"end":{"line":49,"column":43}},"22":{"start":{"line":54,"column":15},"end":{"line":54,"column":31}},"23":{"start":{"line":57,"column":12},"end":{"line":57,"column":17}},"24":{"start":{"line":58,"column":12},"end":{"line":58,"column":17}},"25":{"start":{"line":59,"column":12},"end":{"line":59,"column":17}},"26":{"start":{"line":60,"column":12},"end":{"line":60,"column":17}},"27":{"start":{"line":61,"column":12},"end":{"line":61,"column":17}},"28":{"start":{"line":62,"column":12},"end":{"line":62,"column":17}},"29":{"start":{"line":63,"column":12},"end":{"line":63,"column":17}},"30":{"start":{"line":64,"column":12},"end":{"line":64,"column":17}},"31":{"start":{"line":67,"column":4},"end":{"line":101,"column":5}},"32":{"start":{"line":67,"column":17},"end":{"line":67,"column":18}},"33":{"start":{"line":68,"column":6},"end":{"line":82,"column":7}},"34":{"start":{"line":69,"column":8},"end":{"line":69,"column":33}},"35":{"start":{"line":71,"column":24},"end":{"line":71,"column":33}},"36":{"start":{"line":72,"column":23},"end":{"line":74,"column":27}},"37":{"start":{"line":76,"column":24},"end":{"line":76,"column":32}},"38":{"start":{"line":77,"column":23},"end":{"line":79,"column":28}},"39":{"start":{"line":81,"column":8},"end":{"line":81,"column":54}},"40":{"start":{"line":84,"column":17},"end":{"line":84,"column":35}},"41":{"start":{"line":85,"column":18},"end":{"line":85,"column":45}},"42":{"start":{"line":87,"column":21},"end":{"line":87,"column":98}},"43":{"start":{"line":88,"column":21},"end":{"line":88,"column":97}},"44":{"start":{"line":90,"column":17},"end":{"line":90,"column":46}},"45":{"start":{"line":91,"column":17},"end":{"line":91,"column":29}},"46":{"start":{"line":93,"column":6},"end":{"line":93,"column":12}},"47":{"start":{"line":94,"column":6},"end":{"line":94,"column":12}},"48":{"start":{"line":95,"column":6},"end":{"line":95,"column":12}},"49":{"start":{"line":96,"column":6},"end":{"line":96,"column":23}},"50":{"start":{"line":97,"column":6},"end":{"line":97,"column":12}},"51":{"start":{"line":98,"column":6},"end":{"line":98,"column":12}},"52":{"start":{"line":99,"column":6},"end":{"line":99,"column":12}},"53":{"start":{"line":100,"column":6},"end":{"line":100,"column":24}},"54":{"start":{"line":104,"column":4},"end":{"line":104,"column":28}},"55":{"start":{"line":105,"column":4},"end":{"line":105,"column":28}},"56":{"start":{"line":106,"column":4},"end":{"line":106,"column":28}},"57":{"start":{"line":107,"column":4},"end":{"line":107,"column":28}},"58":{"start":{"line":108,"column":4},"end":{"line":108,"column":28}},"59":{"start":{"line":109,"column":4},"end":{"line":109,"column":28}},"60":{"start":{"line":110,"column":4},"end":{"line":110,"column":28}},"61":{"start":{"line":111,"column":4},"end":{"line":111,"column":28}},"62":{"start":{"line":116,"column":17},"end":{"line":116,"column":27}},"63":{"start":{"line":117,"column":22},"end":{"line":117,"column":32}},"64":{"start":{"line":119,"column":23},"end":{"line":119,"column":43}},"65":{"start":{"line":120,"column":22},"end":{"line":120,"column":39}},"66":{"start":{"line":123,"column":4},"end":{"line":123,"column":66}},"67":{"start":{"line":124,"column":4},"end":{"line":124,"column":91}},"68":{"start":{"line":125,"column":4},"end":{"line":125,"column":65}},"69":{"start":{"line":126,"column":4},"end":{"line":126,"column":41}},"70":{"start":{"line":129,"column":4},"end":{"line":129,"column":20}},"71":{"start":{"line":132,"column":4},"end":{"line":132,"column":22}},"72":{"start":{"line":136,"column":18},"end":{"line":136,"column":40}},"73":{"start":{"line":137,"column":4},"end":{"line":137,"column":37}},"74":{"start":{"line":139,"column":4},"end":{"line":139,"column":17}},"75":{"start":{"line":157,"column":22},"end":{"line":157,"column":54}},"76":{"start":{"line":173,"column":26},"end":{"line":173,"column":62}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":13,"column":16},"end":{"line":13,"column":17}},"loc":{"start":{"line":13,"column":23},"end":{"line":22,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":24,"column":26},"end":{"line":24,"column":27}},"loc":{"start":{"line":24,"column":33},"end":{"line":24,"column":66}},"line":24},"2":{"name":"(anonymous_2)","decl":{"start":{"line":48,"column":2},"end":{"line":48,"column":3}},"loc":{"start":{"line":48,"column":13},"end":{"line":50,"column":3}},"line":48},"3":{"name":"(anonymous_3)","decl":{"start":{"line":52,"column":2},"end":{"line":52,"column":3}},"loc":{"start":{"line":52,"column":29},"end":{"line":112,"column":3}},"line":52},"4":{"name":"(anonymous_4)","decl":{"start":{"line":114,"column":2},"end":{"line":114,"column":3}},"loc":{"start":{"line":114,"column":16},"end":{"line":133,"column":3}},"line":114},"5":{"name":"(anonymous_5)","decl":{"start":{"line":135,"column":2},"end":{"line":135,"column":3}},"loc":{"start":{"line":135,"column":10},"end":{"line":140,"column":3}},"line":135}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":4},"end":{"line":18,"column":5}},"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":18,"column":5}},{"start":{},"end":{}}],"line":16},"1":{"loc":{"start":{"line":29,"column":2},"end":{"line":36,"column":3}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":36,"column":3}},{"start":{},"end":{}}],"line":29},"2":{"loc":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},{"start":{},"end":{}}],"line":30},"3":{"loc":{"start":{"line":68,"column":6},"end":{"line":82,"column":7}},"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":82,"column":7}},{"start":{"line":70,"column":13},"end":{"line":82,"column":7}}],"line":68}},"s":{"0":1,"1":1,"2":1,"3":310,"4":310,"5":310,"6":1118,"7":246,"8":64,"9":1,"10":72,"11":1,"12":1,"13":1,"14":310,"15":64,"16":8,"17":64,"18":64,"19":310,"20":1,"21":40,"22":100,"23":100,"24":100,"25":100,"26":100,"27":100,"28":100,"29":100,"30":100,"31":100,"32":100,"33":6400,"34":1600,"35":4800,"36":4800,"37":4800,"38":4800,"39":4800,"40":6400,"41":6400,"42":6400,"43":6400,"44":6400,"45":6400,"46":6400,"47":6400,"48":6400,"49":6400,"50":6400,"51":6400,"52":6400,"53":6400,"54":100,"55":100,"56":100,"57":100,"58":100,"59":100,"60":100,"61":100,"62":60,"63":60,"64":60,"65":60,"66":60,"67":60,"68":60,"69":60,"70":60,"71":60,"72":0,"73":0,"74":0,"75":1,"76":1},"f":{"0":310,"1":72,"2":40,"3":100,"4":60,"5":0},"b":{"0":[246,872],"1":[64,246],"2":[8,56],"3":[1600,4800]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c04cad7b221887bf943cb5b6afd7c8efcdb85e71"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha3.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha3.js","statementMap":{"0":{"start":{"line":10,"column":20},"end":{"line":10,"column":22}},"1":{"start":{"line":11,"column":19},"end":{"line":11,"column":21}},"2":{"start":{"line":12,"column":24},"end":{"line":12,"column":26}},"3":{"start":{"line":16,"column":9},"end":{"line":16,"column":10}},"4":{"start":{"line":17,"column":9},"end":{"line":17,"column":10}},"5":{"start":{"line":18,"column":0},"end":{"line":25,"column":1}},"6":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"7":{"start":{"line":19,"column":2},"end":{"line":19,"column":58}},"8":{"start":{"line":21,"column":15},"end":{"line":21,"column":21}},"9":{"start":{"line":22,"column":15},"end":{"line":22,"column":36}},"10":{"start":{"line":23,"column":2},"end":{"line":23,"column":12}},"11":{"start":{"line":24,"column":2},"end":{"line":24,"column":12}},"12":{"start":{"line":28,"column":0},"end":{"line":32,"column":1}},"13":{"start":{"line":28,"column":13},"end":{"line":28,"column":14}},"14":{"start":{"line":29,"column":2},"end":{"line":31,"column":3}},"15":{"start":{"line":29,"column":15},"end":{"line":29,"column":16}},"16":{"start":{"line":30,"column":4},"end":{"line":30,"column":58}},"17":{"start":{"line":35,"column":11},"end":{"line":35,"column":15}},"18":{"start":{"line":36,"column":0},"end":{"line":60,"column":1}},"19":{"start":{"line":36,"column":13},"end":{"line":36,"column":14}},"20":{"start":{"line":37,"column":25},"end":{"line":37,"column":26}},"21":{"start":{"line":38,"column":25},"end":{"line":38,"column":26}},"22":{"start":{"line":40,"column":2},"end":{"line":57,"column":3}},"23":{"start":{"line":40,"column":15},"end":{"line":40,"column":16}},"24":{"start":{"line":41,"column":4},"end":{"line":48,"column":5}},"25":{"start":{"line":42,"column":26},"end":{"line":42,"column":38}},"26":{"start":{"line":43,"column":6},"end":{"line":47,"column":7}},"27":{"start":{"line":44,"column":8},"end":{"line":44,"column":45}},"28":{"start":{"line":46,"column":8},"end":{"line":46,"column":52}},"29":{"start":{"line":51,"column":4},"end":{"line":56,"column":5}},"30":{"start":{"line":53,"column":6},"end":{"line":53,"column":32}},"31":{"start":{"line":55,"column":6},"end":{"line":55,"column":17}},"32":{"start":{"line":59,"column":2},"end":{"line":59,"column":74}},"33":{"start":{"line":63,"column":10},"end":{"line":63,"column":12}},"34":{"start":{"line":64,"column":0},"end":{"line":66,"column":1}},"35":{"start":{"line":64,"column":13},"end":{"line":64,"column":14}},"36":{"start":{"line":65,"column":2},"end":{"line":65,"column":26}},"37":{"start":{"line":81,"column":4},"end":{"line":84,"column":7}},"38":{"start":{"line":88,"column":4},"end":{"line":88,"column":21}},"39":{"start":{"line":89,"column":18},"end":{"line":89,"column":29}},"40":{"start":{"line":90,"column":4},"end":{"line":92,"column":5}},"41":{"start":{"line":90,"column":17},"end":{"line":90,"column":18}},"42":{"start":{"line":91,"column":6},"end":{"line":91,"column":31}},"43":{"start":{"line":94,"column":4},"end":{"line":94,"column":61}},"44":{"start":{"line":99,"column":18},"end":{"line":99,"column":29}},"45":{"start":{"line":100,"column":28},"end":{"line":100,"column":46}},"46":{"start":{"line":103,"column":4},"end":{"line":118,"column":5}},"47":{"start":{"line":103,"column":17},"end":{"line":103,"column":18}},"48":{"start":{"line":105,"column":16},"end":{"line":105,"column":33}},"49":{"start":{"line":106,"column":17},"end":{"line":106,"column":38}},"50":{"start":{"line":109,"column":6},"end":{"line":110,"column":53}},"51":{"start":{"line":111,"column":6},"end":{"line":112,"column":55}},"52":{"start":{"line":115,"column":19},"end":{"line":115,"column":27}},"53":{"start":{"line":116,"column":6},"end":{"line":116,"column":24}},"54":{"start":{"line":117,"column":6},"end":{"line":117,"column":22}},"55":{"start":{"line":121,"column":4},"end":{"line":208,"column":5}},"56":{"start":{"line":121,"column":21},"end":{"line":121,"column":22}},"57":{"start":{"line":123,"column":6},"end":{"line":137,"column":7}},"58":{"start":{"line":123,"column":19},"end":{"line":123,"column":20}},"59":{"start":{"line":125,"column":19},"end":{"line":125,"column":20}},"60":{"start":{"line":126,"column":19},"end":{"line":126,"column":20}},"61":{"start":{"line":127,"column":8},"end":{"line":131,"column":9}},"62":{"start":{"line":127,"column":21},"end":{"line":127,"column":22}},"63":{"start":{"line":128,"column":23},"end":{"line":128,"column":39}},"64":{"start":{"line":129,"column":10},"end":{"line":129,"column":28}},"65":{"start":{"line":130,"column":10},"end":{"line":130,"column":27}},"66":{"start":{"line":134,"column":19},"end":{"line":134,"column":23}},"67":{"start":{"line":135,"column":8},"end":{"line":135,"column":23}},"68":{"start":{"line":136,"column":8},"end":{"line":136,"column":22}},"69":{"start":{"line":138,"column":6},"end":{"line":153,"column":7}},"70":{"start":{"line":138,"column":19},"end":{"line":138,"column":20}},"71":{"start":{"line":140,"column":20},"end":{"line":140,"column":34}},"72":{"start":{"line":141,"column":20},"end":{"line":141,"column":34}},"73":{"start":{"line":142,"column":23},"end":{"line":142,"column":31}},"74":{"start":{"line":143,"column":23},"end":{"line":143,"column":30}},"75":{"start":{"line":146,"column":21},"end":{"line":146,"column":65}},"76":{"start":{"line":147,"column":21},"end":{"line":147,"column":64}},"77":{"start":{"line":148,"column":8},"end":{"line":152,"column":9}},"78":{"start":{"line":148,"column":21},"end":{"line":148,"column":22}},"79":{"start":{"line":149,"column":23},"end":{"line":149,"column":39}},"80":{"start":{"line":150,"column":10},"end":{"line":150,"column":28}},"81":{"start":{"line":151,"column":10},"end":{"line":151,"column":27}},"82":{"start":{"line":156,"column":6},"end":{"line":179,"column":7}},"83":{"start":{"line":156,"column":27},"end":{"line":156,"column":28}},"84":{"start":{"line":161,"column":21},"end":{"line":161,"column":37}},"85":{"start":{"line":162,"column":24},"end":{"line":162,"column":33}},"86":{"start":{"line":163,"column":24},"end":{"line":163,"column":32}},"87":{"start":{"line":164,"column":26},"end":{"line":164,"column":48}},"88":{"start":{"line":167,"column":8},"end":{"line":173,"column":9}},"89":{"start":{"line":168,"column":10},"end":{"line":168,"column":73}},"90":{"start":{"line":169,"column":10},"end":{"line":169,"column":73}},"91":{"start":{"line":171,"column":10},"end":{"line":171,"column":80}},"92":{"start":{"line":172,"column":10},"end":{"line":172,"column":80}},"93":{"start":{"line":176,"column":24},"end":{"line":176,"column":48}},"94":{"start":{"line":177,"column":8},"end":{"line":177,"column":28}},"95":{"start":{"line":178,"column":8},"end":{"line":178,"column":27}},"96":{"start":{"line":182,"column":17},"end":{"line":182,"column":21}},"97":{"start":{"line":183,"column":21},"end":{"line":183,"column":29}},"98":{"start":{"line":184,"column":6},"end":{"line":184,"column":28}},"99":{"start":{"line":185,"column":6},"end":{"line":185,"column":26}},"100":{"start":{"line":188,"column":6},"end":{"line":201,"column":7}},"101":{"start":{"line":188,"column":19},"end":{"line":188,"column":20}},"102":{"start":{"line":189,"column":8},"end":{"line":200,"column":9}},"103":{"start":{"line":189,"column":21},"end":{"line":189,"column":22}},"104":{"start":{"line":191,"column":28},"end":{"line":191,"column":37}},"105":{"start":{"line":192,"column":23},"end":{"line":192,"column":39}},"106":{"start":{"line":193,"column":24},"end":{"line":193,"column":36}},"107":{"start":{"line":194,"column":26},"end":{"line":194,"column":50}},"108":{"start":{"line":195,"column":26},"end":{"line":195,"column":50}},"109":{"start":{"line":198,"column":10},"end":{"line":198,"column":66}},"110":{"start":{"line":199,"column":10},"end":{"line":199,"column":62}},"111":{"start":{"line":204,"column":19},"end":{"line":204,"column":27}},"112":{"start":{"line":205,"column":28},"end":{"line":205,"column":50}},"113":{"start":{"line":206,"column":6},"end":{"line":206,"column":38}},"114":{"start":{"line":207,"column":6},"end":{"line":207,"column":36}},"115":{"start":{"line":213,"column":17},"end":{"line":213,"column":27}},"116":{"start":{"line":214,"column":22},"end":{"line":214,"column":32}},"117":{"start":{"line":215,"column":22},"end":{"line":215,"column":39}},"118":{"start":{"line":216,"column":26},"end":{"line":216,"column":45}},"119":{"start":{"line":219,"column":4},"end":{"line":219,"column":65}},"120":{"start":{"line":220,"column":4},"end":{"line":220,"column":96}},"121":{"start":{"line":221,"column":4},"end":{"line":221,"column":41}},"122":{"start":{"line":224,"column":4},"end":{"line":224,"column":20}},"123":{"start":{"line":227,"column":18},"end":{"line":227,"column":29}},"124":{"start":{"line":228,"column":30},"end":{"line":228,"column":55}},"125":{"start":{"line":229,"column":30},"end":{"line":229,"column":51}},"126":{"start":{"line":232,"column":22},"end":{"line":232,"column":24}},"127":{"start":{"line":233,"column":4},"end":{"line":248,"column":5}},"128":{"start":{"line":233,"column":17},"end":{"line":233,"column":18}},"129":{"start":{"line":235,"column":19},"end":{"line":235,"column":27}},"130":{"start":{"line":236,"column":20},"end":{"line":236,"column":29}},"131":{"start":{"line":237,"column":20},"end":{"line":237,"column":28}},"132":{"start":{"line":240,"column":6},"end":{"line":241,"column":61}},"133":{"start":{"line":242,"column":6},"end":{"line":243,"column":61}},"134":{"start":{"line":246,"column":6},"end":{"line":246,"column":30}},"135":{"start":{"line":247,"column":6},"end":{"line":247,"column":30}},"136":{"start":{"line":251,"column":4},"end":{"line":251,"column":55}},"137":{"start":{"line":255,"column":18},"end":{"line":255,"column":40}},"138":{"start":{"line":257,"column":4},"end":{"line":257,"column":40}},"139":{"start":{"line":258,"column":18},"end":{"line":258,"column":30}},"140":{"start":{"line":259,"column":4},"end":{"line":261,"column":5}},"141":{"start":{"line":259,"column":17},"end":{"line":259,"column":18}},"142":{"start":{"line":260,"column":6},"end":{"line":260,"column":34}},"143":{"start":{"line":263,"column":4},"end":{"line":263,"column":17}},"144":{"start":{"line":281,"column":20},"end":{"line":281,"column":50}},"145":{"start":{"line":297,"column":24},"end":{"line":297,"column":58}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":72,"column":2},"end":{"line":72,"column":3}},"loc":{"start":{"line":72,"column":19},"end":{"line":85,"column":3}},"line":72},"1":{"name":"(anonymous_1)","decl":{"start":{"line":87,"column":2},"end":{"line":87,"column":3}},"loc":{"start":{"line":87,"column":13},"end":{"line":95,"column":3}},"line":87},"2":{"name":"(anonymous_2)","decl":{"start":{"line":97,"column":2},"end":{"line":97,"column":3}},"loc":{"start":{"line":97,"column":29},"end":{"line":209,"column":3}},"line":97},"3":{"name":"(anonymous_3)","decl":{"start":{"line":211,"column":2},"end":{"line":211,"column":3}},"loc":{"start":{"line":211,"column":16},"end":{"line":252,"column":3}},"line":211},"4":{"name":"(anonymous_4)","decl":{"start":{"line":254,"column":2},"end":{"line":254,"column":3}},"loc":{"start":{"line":254,"column":10},"end":{"line":264,"column":3}},"line":254}},"branchMap":{"0":{"loc":{"start":{"line":41,"column":4},"end":{"line":48,"column":5}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":48,"column":5}},{"start":{},"end":{}}],"line":41},"1":{"loc":{"start":{"line":43,"column":6},"end":{"line":47,"column":7}},"type":"if","locations":[{"start":{"line":43,"column":6},"end":{"line":47,"column":7}},{"start":{"line":45,"column":42},"end":{"line":47,"column":7}}],"line":43},"2":{"loc":{"start":{"line":51,"column":4},"end":{"line":56,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":56,"column":5}},{"start":{"line":54,"column":11},"end":{"line":56,"column":5}}],"line":51},"3":{"loc":{"start":{"line":167,"column":8},"end":{"line":173,"column":9}},"type":"if","locations":[{"start":{"line":167,"column":8},"end":{"line":173,"column":9}},{"start":{"line":170,"column":42},"end":{"line":173,"column":9}}],"line":167}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":24,"8":24,"9":24,"10":24,"11":24,"12":1,"13":1,"14":5,"15":5,"16":25,"17":1,"18":1,"19":1,"20":24,"21":24,"22":24,"23":24,"24":168,"25":86,"26":86,"27":73,"28":13,"29":168,"30":85,"31":83,"32":24,"33":1,"34":1,"35":1,"36":25,"37":10,"38":10,"39":10,"40":10,"41":10,"42":250,"43":10,"44":10,"45":10,"46":10,"47":10,"48":90,"49":90,"50":90,"51":90,"52":90,"53":90,"54":90,"55":10,"56":10,"57":240,"58":240,"59":1200,"60":1200,"61":1200,"62":1200,"63":6000,"64":6000,"65":6000,"66":1200,"67":1200,"68":1200,"69":240,"70":240,"71":1200,"72":1200,"73":1200,"74":1200,"75":1200,"76":1200,"77":1200,"78":1200,"79":6000,"80":6000,"81":6000,"82":240,"83":240,"84":5760,"85":5760,"86":5760,"87":5760,"88":5760,"89":3360,"90":3360,"91":2400,"92":2400,"93":5760,"94":5760,"95":5760,"96":240,"97":240,"98":240,"99":240,"100":240,"101":240,"102":1200,"103":1200,"104":6000,"105":6000,"106":6000,"107":6000,"108":6000,"109":6000,"110":6000,"111":240,"112":240,"113":240,"114":240,"115":10,"116":10,"117":10,"118":10,"119":10,"120":10,"121":10,"122":10,"123":10,"124":10,"125":10,"126":10,"127":10,"128":10,"129":80,"130":80,"131":80,"132":80,"133":80,"134":80,"135":80,"136":10,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":1,"145":1},"f":{"0":10,"1":10,"2":10,"3":10,"4":0},"b":{"0":[86,82],"1":[73,13],"2":[85,83],"3":[3360,2400]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"16b2316a9e819ce94114a79d3dec1d3376d2024a"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha384.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha384.js","statementMap":{"0":{"start":{"line":14,"column":4},"end":{"line":23,"column":7}},"1":{"start":{"line":27,"column":17},"end":{"line":27,"column":45}},"2":{"start":{"line":29,"column":4},"end":{"line":29,"column":24}},"3":{"start":{"line":31,"column":4},"end":{"line":31,"column":16}},"4":{"start":{"line":49,"column":22},"end":{"line":49,"column":58}},"5":{"start":{"line":65,"column":26},"end":{"line":65,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":13,"column":2},"end":{"line":13,"column":3}},"loc":{"start":{"line":13,"column":13},"end":{"line":24,"column":3}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":26,"column":2},"end":{"line":26,"column":3}},"loc":{"start":{"line":26,"column":16},"end":{"line":32,"column":3}},"line":26}},"branchMap":{},"s":{"0":40,"1":30,"2":30,"3":30,"4":1,"5":1},"f":{"0":40,"1":30},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1ba79c8a9714348422eea19bf5f1711d665d125b"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha512.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\sha512.js","statementMap":{"0":{"start":{"line":9,"column":10},"end":{"line":90,"column":1}},"1":{"start":{"line":93,"column":10},"end":{"line":93,"column":12}},"2":{"start":{"line":94,"column":0},"end":{"line":96,"column":1}},"3":{"start":{"line":94,"column":13},"end":{"line":94,"column":14}},"4":{"start":{"line":95,"column":2},"end":{"line":95,"column":23}},"5":{"start":{"line":103,"column":4},"end":{"line":103,"column":12}},"6":{"start":{"line":105,"column":4},"end":{"line":105,"column":31}},"7":{"start":{"line":109,"column":4},"end":{"line":118,"column":7}},"8":{"start":{"line":123,"column":14},"end":{"line":123,"column":30}},"9":{"start":{"line":125,"column":15},"end":{"line":125,"column":19}},"10":{"start":{"line":126,"column":15},"end":{"line":126,"column":19}},"11":{"start":{"line":127,"column":15},"end":{"line":127,"column":19}},"12":{"start":{"line":128,"column":15},"end":{"line":128,"column":19}},"13":{"start":{"line":129,"column":15},"end":{"line":129,"column":19}},"14":{"start":{"line":130,"column":15},"end":{"line":130,"column":19}},"15":{"start":{"line":131,"column":15},"end":{"line":131,"column":19}},"16":{"start":{"line":132,"column":15},"end":{"line":132,"column":19}},"17":{"start":{"line":134,"column":16},"end":{"line":134,"column":23}},"18":{"start":{"line":135,"column":14},"end":{"line":135,"column":20}},"19":{"start":{"line":136,"column":16},"end":{"line":136,"column":23}},"20":{"start":{"line":137,"column":14},"end":{"line":137,"column":20}},"21":{"start":{"line":138,"column":16},"end":{"line":138,"column":23}},"22":{"start":{"line":139,"column":14},"end":{"line":139,"column":20}},"23":{"start":{"line":140,"column":16},"end":{"line":140,"column":23}},"24":{"start":{"line":141,"column":14},"end":{"line":141,"column":20}},"25":{"start":{"line":142,"column":16},"end":{"line":142,"column":23}},"26":{"start":{"line":143,"column":14},"end":{"line":143,"column":20}},"27":{"start":{"line":144,"column":16},"end":{"line":144,"column":23}},"28":{"start":{"line":145,"column":14},"end":{"line":145,"column":20}},"29":{"start":{"line":146,"column":16},"end":{"line":146,"column":23}},"30":{"start":{"line":147,"column":14},"end":{"line":147,"column":20}},"31":{"start":{"line":148,"column":16},"end":{"line":148,"column":23}},"32":{"start":{"line":149,"column":14},"end":{"line":149,"column":20}},"33":{"start":{"line":152,"column":13},"end":{"line":152,"column":16}},"34":{"start":{"line":153,"column":13},"end":{"line":153,"column":16}},"35":{"start":{"line":154,"column":13},"end":{"line":154,"column":16}},"36":{"start":{"line":155,"column":13},"end":{"line":155,"column":16}},"37":{"start":{"line":156,"column":13},"end":{"line":156,"column":16}},"38":{"start":{"line":157,"column":13},"end":{"line":157,"column":16}},"39":{"start":{"line":158,"column":13},"end":{"line":158,"column":16}},"40":{"start":{"line":159,"column":13},"end":{"line":159,"column":16}},"41":{"start":{"line":160,"column":13},"end":{"line":160,"column":16}},"42":{"start":{"line":161,"column":13},"end":{"line":161,"column":16}},"43":{"start":{"line":162,"column":13},"end":{"line":162,"column":16}},"44":{"start":{"line":163,"column":13},"end":{"line":163,"column":16}},"45":{"start":{"line":164,"column":13},"end":{"line":164,"column":16}},"46":{"start":{"line":165,"column":13},"end":{"line":165,"column":16}},"47":{"start":{"line":166,"column":13},"end":{"line":166,"column":16}},"48":{"start":{"line":167,"column":13},"end":{"line":167,"column":16}},"49":{"start":{"line":170,"column":4},"end":{"line":279,"column":5}},"50":{"start":{"line":170,"column":17},"end":{"line":170,"column":18}},"51":{"start":{"line":175,"column":17},"end":{"line":175,"column":21}},"52":{"start":{"line":178,"column":6},"end":{"line":224,"column":7}},"53":{"start":{"line":179,"column":8},"end":{"line":179,"column":40}},"54":{"start":{"line":180,"column":8},"end":{"line":180,"column":22}},"55":{"start":{"line":181,"column":8},"end":{"line":181,"column":43}},"56":{"start":{"line":182,"column":8},"end":{"line":182,"column":21}},"57":{"start":{"line":185,"column":24},"end":{"line":185,"column":33}},"58":{"start":{"line":186,"column":25},"end":{"line":186,"column":37}},"59":{"start":{"line":187,"column":25},"end":{"line":187,"column":36}},"60":{"start":{"line":188,"column":24},"end":{"line":190,"column":28}},"61":{"start":{"line":191,"column":24},"end":{"line":193,"column":49}},"62":{"start":{"line":196,"column":24},"end":{"line":196,"column":32}},"63":{"start":{"line":197,"column":25},"end":{"line":197,"column":37}},"64":{"start":{"line":198,"column":25},"end":{"line":198,"column":36}},"65":{"start":{"line":199,"column":24},"end":{"line":201,"column":28}},"66":{"start":{"line":202,"column":24},"end":{"line":204,"column":49}},"67":{"start":{"line":207,"column":20},"end":{"line":207,"column":28}},"68":{"start":{"line":208,"column":21},"end":{"line":208,"column":29}},"69":{"start":{"line":209,"column":21},"end":{"line":209,"column":28}},"70":{"start":{"line":211,"column":21},"end":{"line":211,"column":30}},"71":{"start":{"line":212,"column":22},"end":{"line":212,"column":31}},"72":{"start":{"line":213,"column":22},"end":{"line":213,"column":30}},"73":{"start":{"line":215,"column":8},"end":{"line":215,"column":29}},"74":{"start":{"line":216,"column":8},"end":{"line":216,"column":71}},"75":{"start":{"line":217,"column":8},"end":{"line":217,"column":23}},"76":{"start":{"line":218,"column":8},"end":{"line":218,"column":70}},"77":{"start":{"line":219,"column":8},"end":{"line":219,"column":21}},"78":{"start":{"line":220,"column":8},"end":{"line":220,"column":66}},"79":{"start":{"line":222,"column":8},"end":{"line":222,"column":22}},"80":{"start":{"line":223,"column":8},"end":{"line":223,"column":21}},"81":{"start":{"line":226,"column":18},"end":{"line":226,"column":40}},"82":{"start":{"line":227,"column":18},"end":{"line":227,"column":40}},"83":{"start":{"line":228,"column":19},"end":{"line":228,"column":52}},"84":{"start":{"line":229,"column":19},"end":{"line":229,"column":52}},"85":{"start":{"line":231,"column":22},"end":{"line":233,"column":35}},"86":{"start":{"line":234,"column":22},"end":{"line":236,"column":35}},"87":{"start":{"line":237,"column":22},"end":{"line":239,"column":35}},"88":{"start":{"line":240,"column":22},"end":{"line":242,"column":35}},"89":{"start":{"line":245,"column":17},"end":{"line":245,"column":21}},"90":{"start":{"line":246,"column":18},"end":{"line":246,"column":25}},"91":{"start":{"line":247,"column":18},"end":{"line":247,"column":24}},"92":{"start":{"line":249,"column":16},"end":{"line":249,"column":28}},"93":{"start":{"line":250,"column":16},"end":{"line":250,"column":65}},"94":{"start":{"line":251,"column":6},"end":{"line":251,"column":17}},"95":{"start":{"line":252,"column":6},"end":{"line":252,"column":60}},"96":{"start":{"line":253,"column":6},"end":{"line":253,"column":17}},"97":{"start":{"line":254,"column":6},"end":{"line":254,"column":60}},"98":{"start":{"line":255,"column":6},"end":{"line":255,"column":17}},"99":{"start":{"line":256,"column":6},"end":{"line":256,"column":60}},"100":{"start":{"line":259,"column":18},"end":{"line":259,"column":32}},"101":{"start":{"line":260,"column":18},"end":{"line":260,"column":74}},"102":{"start":{"line":263,"column":6},"end":{"line":263,"column":14}},"103":{"start":{"line":264,"column":6},"end":{"line":264,"column":14}},"104":{"start":{"line":265,"column":6},"end":{"line":265,"column":14}},"105":{"start":{"line":266,"column":6},"end":{"line":266,"column":14}},"106":{"start":{"line":267,"column":6},"end":{"line":267,"column":14}},"107":{"start":{"line":268,"column":6},"end":{"line":268,"column":14}},"108":{"start":{"line":269,"column":6},"end":{"line":269,"column":26}},"109":{"start":{"line":270,"column":6},"end":{"line":270,"column":62}},"110":{"start":{"line":271,"column":6},"end":{"line":271,"column":14}},"111":{"start":{"line":272,"column":6},"end":{"line":272,"column":14}},"112":{"start":{"line":273,"column":6},"end":{"line":273,"column":14}},"113":{"start":{"line":274,"column":6},"end":{"line":274,"column":14}},"114":{"start":{"line":275,"column":6},"end":{"line":275,"column":14}},"115":{"start":{"line":276,"column":6},"end":{"line":276,"column":14}},"116":{"start":{"line":277,"column":6},"end":{"line":277,"column":27}},"117":{"start":{"line":278,"column":6},"end":{"line":278,"column":64}},"118":{"start":{"line":282,"column":4},"end":{"line":282,"column":24}},"119":{"start":{"line":283,"column":4},"end":{"line":283,"column":17}},"120":{"start":{"line":284,"column":4},"end":{"line":284,"column":62}},"121":{"start":{"line":285,"column":4},"end":{"line":285,"column":24}},"122":{"start":{"line":286,"column":4},"end":{"line":286,"column":17}},"123":{"start":{"line":287,"column":4},"end":{"line":287,"column":62}},"124":{"start":{"line":288,"column":4},"end":{"line":288,"column":24}},"125":{"start":{"line":289,"column":4},"end":{"line":289,"column":17}},"126":{"start":{"line":290,"column":4},"end":{"line":290,"column":62}},"127":{"start":{"line":291,"column":4},"end":{"line":291,"column":24}},"128":{"start":{"line":292,"column":4},"end":{"line":292,"column":17}},"129":{"start":{"line":293,"column":4},"end":{"line":293,"column":62}},"130":{"start":{"line":294,"column":4},"end":{"line":294,"column":24}},"131":{"start":{"line":295,"column":4},"end":{"line":295,"column":17}},"132":{"start":{"line":296,"column":4},"end":{"line":296,"column":62}},"133":{"start":{"line":297,"column":4},"end":{"line":297,"column":24}},"134":{"start":{"line":298,"column":4},"end":{"line":298,"column":17}},"135":{"start":{"line":299,"column":4},"end":{"line":299,"column":62}},"136":{"start":{"line":300,"column":4},"end":{"line":300,"column":24}},"137":{"start":{"line":301,"column":4},"end":{"line":301,"column":17}},"138":{"start":{"line":302,"column":4},"end":{"line":302,"column":62}},"139":{"start":{"line":303,"column":4},"end":{"line":303,"column":24}},"140":{"start":{"line":304,"column":4},"end":{"line":304,"column":17}},"141":{"start":{"line":305,"column":4},"end":{"line":305,"column":62}},"142":{"start":{"line":310,"column":17},"end":{"line":310,"column":27}},"143":{"start":{"line":311,"column":22},"end":{"line":311,"column":32}},"144":{"start":{"line":313,"column":23},"end":{"line":313,"column":43}},"145":{"start":{"line":314,"column":22},"end":{"line":314,"column":39}},"146":{"start":{"line":317,"column":4},"end":{"line":317,"column":66}},"147":{"start":{"line":318,"column":4},"end":{"line":318,"column":93}},"148":{"start":{"line":319,"column":4},"end":{"line":319,"column":67}},"149":{"start":{"line":320,"column":4},"end":{"line":320,"column":41}},"150":{"start":{"line":323,"column":4},"end":{"line":323,"column":20}},"151":{"start":{"line":326,"column":17},"end":{"line":326,"column":35}},"152":{"start":{"line":329,"column":4},"end":{"line":329,"column":16}},"153":{"start":{"line":333,"column":18},"end":{"line":333,"column":40}},"154":{"start":{"line":334,"column":4},"end":{"line":334,"column":37}},"155":{"start":{"line":336,"column":4},"end":{"line":336,"column":17}},"156":{"start":{"line":354,"column":22},"end":{"line":354,"column":54}},"157":{"start":{"line":370,"column":26},"end":{"line":370,"column":62}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":102,"column":2},"end":{"line":102,"column":3}},"loc":{"start":{"line":102,"column":16},"end":{"line":106,"column":3}},"line":102},"1":{"name":"(anonymous_1)","decl":{"start":{"line":108,"column":2},"end":{"line":108,"column":3}},"loc":{"start":{"line":108,"column":13},"end":{"line":119,"column":3}},"line":108},"2":{"name":"(anonymous_2)","decl":{"start":{"line":121,"column":2},"end":{"line":121,"column":3}},"loc":{"start":{"line":121,"column":29},"end":{"line":306,"column":3}},"line":121},"3":{"name":"(anonymous_3)","decl":{"start":{"line":308,"column":2},"end":{"line":308,"column":3}},"loc":{"start":{"line":308,"column":16},"end":{"line":330,"column":3}},"line":308},"4":{"name":"(anonymous_4)","decl":{"start":{"line":332,"column":2},"end":{"line":332,"column":3}},"loc":{"start":{"line":332,"column":10},"end":{"line":337,"column":3}},"line":332}},"branchMap":{"0":{"loc":{"start":{"line":178,"column":6},"end":{"line":224,"column":7}},"type":"if","locations":[{"start":{"line":178,"column":6},"end":{"line":224,"column":7}},{"start":{"line":183,"column":13},"end":{"line":224,"column":7}}],"line":178},"1":{"loc":{"start":{"line":216,"column":32},"end":{"line":216,"column":69}},"type":"cond-expr","locations":[{"start":{"line":216,"column":64},"end":{"line":216,"column":65}},{"start":{"line":216,"column":68},"end":{"line":216,"column":69}}],"line":216},"2":{"loc":{"start":{"line":218,"column":31},"end":{"line":218,"column":68}},"type":"cond-expr","locations":[{"start":{"line":218,"column":63},"end":{"line":218,"column":64}},{"start":{"line":218,"column":67},"end":{"line":218,"column":68}}],"line":218},"3":{"loc":{"start":{"line":220,"column":29},"end":{"line":220,"column":64}},"type":"cond-expr","locations":[{"start":{"line":220,"column":59},"end":{"line":220,"column":60}},{"start":{"line":220,"column":63},"end":{"line":220,"column":64}}],"line":220},"4":{"loc":{"start":{"line":250,"column":32},"end":{"line":250,"column":64}},"type":"cond-expr","locations":[{"start":{"line":250,"column":59},"end":{"line":250,"column":60}},{"start":{"line":250,"column":63},"end":{"line":250,"column":64}}],"line":250},"5":{"loc":{"start":{"line":252,"column":25},"end":{"line":252,"column":58}},"type":"cond-expr","locations":[{"start":{"line":252,"column":53},"end":{"line":252,"column":54}},{"start":{"line":252,"column":57},"end":{"line":252,"column":58}}],"line":252},"6":{"loc":{"start":{"line":254,"column":25},"end":{"line":254,"column":58}},"type":"cond-expr","locations":[{"start":{"line":254,"column":53},"end":{"line":254,"column":54}},{"start":{"line":254,"column":57},"end":{"line":254,"column":58}}],"line":254},"7":{"loc":{"start":{"line":256,"column":25},"end":{"line":256,"column":58}},"type":"cond-expr","locations":[{"start":{"line":256,"column":53},"end":{"line":256,"column":54}},{"start":{"line":256,"column":57},"end":{"line":256,"column":58}}],"line":256},"8":{"loc":{"start":{"line":260,"column":36},"end":{"line":260,"column":73}},"type":"cond-expr","locations":[{"start":{"line":260,"column":68},"end":{"line":260,"column":69}},{"start":{"line":260,"column":72},"end":{"line":260,"column":73}}],"line":260},"9":{"loc":{"start":{"line":270,"column":24},"end":{"line":270,"column":55}},"type":"cond-expr","locations":[{"start":{"line":270,"column":50},"end":{"line":270,"column":51}},{"start":{"line":270,"column":54},"end":{"line":270,"column":55}}],"line":270},"10":{"loc":{"start":{"line":278,"column":25},"end":{"line":278,"column":57}},"type":"cond-expr","locations":[{"start":{"line":278,"column":52},"end":{"line":278,"column":53}},{"start":{"line":278,"column":56},"end":{"line":278,"column":57}}],"line":278},"11":{"loc":{"start":{"line":284,"column":27},"end":{"line":284,"column":59}},"type":"cond-expr","locations":[{"start":{"line":284,"column":54},"end":{"line":284,"column":55}},{"start":{"line":284,"column":58},"end":{"line":284,"column":59}}],"line":284},"12":{"loc":{"start":{"line":287,"column":27},"end":{"line":287,"column":59}},"type":"cond-expr","locations":[{"start":{"line":287,"column":54},"end":{"line":287,"column":55}},{"start":{"line":287,"column":58},"end":{"line":287,"column":59}}],"line":287},"13":{"loc":{"start":{"line":290,"column":27},"end":{"line":290,"column":59}},"type":"cond-expr","locations":[{"start":{"line":290,"column":54},"end":{"line":290,"column":55}},{"start":{"line":290,"column":58},"end":{"line":290,"column":59}}],"line":290},"14":{"loc":{"start":{"line":293,"column":27},"end":{"line":293,"column":59}},"type":"cond-expr","locations":[{"start":{"line":293,"column":54},"end":{"line":293,"column":55}},{"start":{"line":293,"column":58},"end":{"line":293,"column":59}}],"line":293},"15":{"loc":{"start":{"line":296,"column":27},"end":{"line":296,"column":59}},"type":"cond-expr","locations":[{"start":{"line":296,"column":54},"end":{"line":296,"column":55}},{"start":{"line":296,"column":58},"end":{"line":296,"column":59}}],"line":296},"16":{"loc":{"start":{"line":299,"column":27},"end":{"line":299,"column":59}},"type":"cond-expr","locations":[{"start":{"line":299,"column":54},"end":{"line":299,"column":55}},{"start":{"line":299,"column":58},"end":{"line":299,"column":59}}],"line":299},"17":{"loc":{"start":{"line":302,"column":27},"end":{"line":302,"column":59}},"type":"cond-expr","locations":[{"start":{"line":302,"column":54},"end":{"line":302,"column":55}},{"start":{"line":302,"column":58},"end":{"line":302,"column":59}}],"line":302},"18":{"loc":{"start":{"line":305,"column":27},"end":{"line":305,"column":59}},"type":"cond-expr","locations":[{"start":{"line":305,"column":54},"end":{"line":305,"column":55}},{"start":{"line":305,"column":58},"end":{"line":305,"column":59}}],"line":305}},"s":{"0":1,"1":1,"2":1,"3":1,"4":80,"5":40,"6":40,"7":40,"8":100,"9":100,"10":100,"11":100,"12":100,"13":100,"14":100,"15":100,"16":100,"17":100,"18":100,"19":100,"20":100,"21":100,"22":100,"23":100,"24":100,"25":100,"26":100,"27":100,"28":100,"29":100,"30":100,"31":100,"32":100,"33":100,"34":100,"35":100,"36":100,"37":100,"38":100,"39":100,"40":100,"41":100,"42":100,"43":100,"44":100,"45":100,"46":100,"47":100,"48":100,"49":100,"50":100,"51":8000,"52":8000,"53":1600,"54":1600,"55":1600,"56":1600,"57":6400,"58":6400,"59":6400,"60":6400,"61":6400,"62":6400,"63":6400,"64":6400,"65":6400,"66":6400,"67":6400,"68":6400,"69":6400,"70":6400,"71":6400,"72":6400,"73":6400,"74":6400,"75":6400,"76":6400,"77":6400,"78":6400,"79":6400,"80":6400,"81":8000,"82":8000,"83":8000,"84":8000,"85":8000,"86":8000,"87":8000,"88":8000,"89":8000,"90":8000,"91":8000,"92":8000,"93":8000,"94":8000,"95":8000,"96":8000,"97":8000,"98":8000,"99":8000,"100":8000,"101":8000,"102":8000,"103":8000,"104":8000,"105":8000,"106":8000,"107":8000,"108":8000,"109":8000,"110":8000,"111":8000,"112":8000,"113":8000,"114":8000,"115":8000,"116":8000,"117":8000,"118":100,"119":100,"120":100,"121":100,"122":100,"123":100,"124":100,"125":100,"126":100,"127":100,"128":100,"129":100,"130":100,"131":100,"132":100,"133":100,"134":100,"135":100,"136":100,"137":100,"138":100,"139":100,"140":100,"141":100,"142":60,"143":60,"144":60,"145":60,"146":60,"147":60,"148":60,"149":60,"150":60,"151":60,"152":60,"153":0,"154":0,"155":0,"156":1,"157":1},"f":{"0":40,"1":40,"2":100,"3":60,"4":0},"b":{"0":[1600,6400],"1":[2815,3585],"2":[3070,3330],"3":[2586,3814],"4":[3960,4040],"5":[3993,4007],"6":[4205,3795],"7":[3596,4404],"8":[4008,3992],"9":[4007,3993],"10":[3951,4049],"11":[79,21],"12":[43,57],"13":[52,48],"14":[58,42],"15":[64,36],"16":[44,56],"17":[74,26],"18":[46,54]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"83acbe7c72e5f62e39beddbc0ae66b6640b7990e"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Base.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Base.js","statementMap":{"0":{"start":{"line":17,"column":4},"end":{"line":17,"column":29}},"1":{"start":{"line":32,"column":4},"end":{"line":32,"column":43}},"2":{"start":{"line":45,"column":18},"end":{"line":45,"column":40}},"3":{"start":{"line":46,"column":4},"end":{"line":46,"column":31}},"4":{"start":{"line":47,"column":4},"end":{"line":47,"column":17}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":2},"end":{"line":16,"column":3}},"loc":{"start":{"line":16,"column":25},"end":{"line":18,"column":3}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":3}},"loc":{"start":{"line":31,"column":20},"end":{"line":33,"column":3}},"line":31},"2":{"name":"(anonymous_2)","decl":{"start":{"line":44,"column":2},"end":{"line":44,"column":3}},"loc":{"start":{"line":44,"column":10},"end":{"line":48,"column":3}},"line":44}},"branchMap":{},"s":{"0":109,"1":0,"2":180,"3":180,"4":180},"f":{"0":109,"1":0,"2":180},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"7ee5b694cdba6fb3d3ab3d8b675d8350d1d4172e"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\BufferedBlockAlgorithm.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\BufferedBlockAlgorithm.js","statementMap":{"0":{"start":{"line":20,"column":4},"end":{"line":20,"column":12}},"1":{"start":{"line":21,"column":4},"end":{"line":21,"column":28}},"2":{"start":{"line":33,"column":4},"end":{"line":33,"column":33}},"3":{"start":{"line":34,"column":4},"end":{"line":34,"column":25}},"4":{"start":{"line":50,"column":17},"end":{"line":50,"column":21}},"5":{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},"6":{"start":{"line":54,"column":6},"end":{"line":54,"column":34}},"7":{"start":{"line":58,"column":4},"end":{"line":58,"column":30}},"8":{"start":{"line":59,"column":4},"end":{"line":59,"column":40}},"9":{"start":{"line":80,"column":39},"end":{"line":80,"column":43}},"10":{"start":{"line":81,"column":22},"end":{"line":81,"column":32}},"11":{"start":{"line":82,"column":25},"end":{"line":82,"column":38}},"12":{"start":{"line":83,"column":27},"end":{"line":83,"column":40}},"13":{"start":{"line":86,"column":23},"end":{"line":86,"column":52}},"14":{"start":{"line":87,"column":4},"end":{"line":94,"column":5}},"15":{"start":{"line":89,"column":6},"end":{"line":89,"column":45}},"16":{"start":{"line":93,"column":6},"end":{"line":93,"column":75}},"17":{"start":{"line":97,"column":24},"end":{"line":97,"column":48}},"18":{"start":{"line":100,"column":24},"end":{"line":100,"column":63}},"19":{"start":{"line":103,"column":4},"end":{"line":112,"column":5}},"20":{"start":{"line":104,"column":6},"end":{"line":107,"column":7}},"21":{"start":{"line":104,"column":24},"end":{"line":104,"column":25}},"22":{"start":{"line":106,"column":8},"end":{"line":106,"column":48}},"23":{"start":{"line":110,"column":6},"end":{"line":110,"column":56}},"24":{"start":{"line":111,"column":6},"end":{"line":111,"column":35}},"25":{"start":{"line":115,"column":4},"end":{"line":115,"column":54}},"26":{"start":{"line":128,"column":18},"end":{"line":128,"column":40}},"27":{"start":{"line":129,"column":4},"end":{"line":129,"column":37}},"28":{"start":{"line":131,"column":4},"end":{"line":131,"column":17}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":19,"column":2},"end":{"line":19,"column":3}},"loc":{"start":{"line":19,"column":16},"end":{"line":22,"column":3}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":3}},"loc":{"start":{"line":31,"column":10},"end":{"line":35,"column":3}},"line":31},"2":{"name":"(anonymous_2)","decl":{"start":{"line":49,"column":2},"end":{"line":49,"column":3}},"loc":{"start":{"line":49,"column":16},"end":{"line":60,"column":3}},"line":49},"3":{"name":"(anonymous_3)","decl":{"start":{"line":76,"column":2},"end":{"line":76,"column":3}},"loc":{"start":{"line":76,"column":20},"end":{"line":116,"column":3}},"line":76},"4":{"name":"(anonymous_4)","decl":{"start":{"line":127,"column":2},"end":{"line":127,"column":3}},"loc":{"start":{"line":127,"column":10},"end":{"line":132,"column":3}},"line":127}},"branchMap":{"0":{"loc":{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},{"start":{},"end":{}}],"line":53},"1":{"loc":{"start":{"line":87,"column":4},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":87,"column":4},"end":{"line":94,"column":5}},{"start":{"line":90,"column":11},"end":{"line":94,"column":5}}],"line":87},"2":{"loc":{"start":{"line":103,"column":4},"end":{"line":112,"column":5}},"type":"if","locations":[{"start":{"line":103,"column":4},"end":{"line":112,"column":5}},{"start":{},"end":{}}],"line":103}},"s":{"0":130,"1":130,"2":250,"3":250,"4":250,"5":250,"6":130,"7":250,"8":250,"9":250,"10":250,"11":250,"12":250,"13":250,"14":250,"15":0,"16":250,"17":250,"18":250,"19":250,"20":250,"21":250,"22":310,"23":250,"24":250,"25":250,"26":0,"27":0,"28":0},"f":{"0":130,"1":250,"2":250,"3":250,"4":0},"b":{"0":[130,120],"1":[0,250],"2":[250,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0951b8ea31e9eb92fc45503c297f9f962c7ab617"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\CipherParams.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\CipherParams.js","statementMap":{"0":{"start":{"line":41,"column":4},"end":{"line":41,"column":12}},"1":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"2":{"start":{"line":62,"column":4},"end":{"line":62,"column":57}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":3}},"loc":{"start":{"line":40,"column":28},"end":{"line":44,"column":3}},"line":40},"1":{"name":"(anonymous_1)","decl":{"start":{"line":61,"column":2},"end":{"line":61,"column":3}},"loc":{"start":{"line":61,"column":22},"end":{"line":63,"column":3}},"line":61}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":12},"end":{"line":62,"column":39}},"type":"binary-expr","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":21}},{"start":{"line":62,"column":25},"end":{"line":62,"column":39}}],"line":62}},"s":{"0":0,"1":0,"2":0},"f":{"0":0,"1":0},"b":{"0":[0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a37c3a9dae1ece036e21ab767c2deaa54f436534"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\HMAC.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\HMAC.js","statementMap":{"0":{"start":{"line":22,"column":4},"end":{"line":22,"column":12}},"1":{"start":{"line":24,"column":19},"end":{"line":24,"column":34}},"2":{"start":{"line":25,"column":4},"end":{"line":25,"column":26}},"3":{"start":{"line":28,"column":15},"end":{"line":28,"column":18}},"4":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"5":{"start":{"line":30,"column":6},"end":{"line":30,"column":30}},"6":{"start":{"line":34,"column":28},"end":{"line":34,"column":44}},"7":{"start":{"line":35,"column":33},"end":{"line":35,"column":52}},"8":{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},"9":{"start":{"line":39,"column":6},"end":{"line":39,"column":34}},"10":{"start":{"line":43,"column":4},"end":{"line":43,"column":17}},"11":{"start":{"line":46,"column":17},"end":{"line":46,"column":29}},"12":{"start":{"line":47,"column":4},"end":{"line":47,"column":22}},"13":{"start":{"line":48,"column":17},"end":{"line":48,"column":29}},"14":{"start":{"line":49,"column":4},"end":{"line":49,"column":22}},"15":{"start":{"line":52,"column":22},"end":{"line":52,"column":32}},"16":{"start":{"line":53,"column":22},"end":{"line":53,"column":32}},"17":{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},"18":{"start":{"line":56,"column":17},"end":{"line":56,"column":18}},"19":{"start":{"line":57,"column":6},"end":{"line":57,"column":33}},"20":{"start":{"line":58,"column":6},"end":{"line":58,"column":33}},"21":{"start":{"line":60,"column":4},"end":{"line":60,"column":41}},"22":{"start":{"line":61,"column":4},"end":{"line":61,"column":41}},"23":{"start":{"line":64,"column":4},"end":{"line":64,"column":17}},"24":{"start":{"line":76,"column":19},"end":{"line":76,"column":31}},"25":{"start":{"line":79,"column":4},"end":{"line":79,"column":19}},"26":{"start":{"line":80,"column":4},"end":{"line":80,"column":30}},"27":{"start":{"line":96,"column":4},"end":{"line":96,"column":39}},"28":{"start":{"line":99,"column":4},"end":{"line":99,"column":16}},"29":{"start":{"line":118,"column":19},"end":{"line":118,"column":31}},"30":{"start":{"line":121,"column":22},"end":{"line":121,"column":52}},"31":{"start":{"line":122,"column":4},"end":{"line":122,"column":19}},"32":{"start":{"line":123,"column":17},"end":{"line":123,"column":70}},"33":{"start":{"line":125,"column":4},"end":{"line":125,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":3}},"loc":{"start":{"line":21,"column":30},"end":{"line":65,"column":3}},"line":21},"1":{"name":"(anonymous_1)","decl":{"start":{"line":74,"column":2},"end":{"line":74,"column":3}},"loc":{"start":{"line":74,"column":10},"end":{"line":81,"column":3}},"line":74},"2":{"name":"(anonymous_2)","decl":{"start":{"line":95,"column":2},"end":{"line":95,"column":3}},"loc":{"start":{"line":95,"column":24},"end":{"line":100,"column":3}},"line":95},"3":{"name":"(anonymous_3)","decl":{"start":{"line":116,"column":2},"end":{"line":116,"column":3}},"loc":{"start":{"line":116,"column":26},"end":{"line":126,"column":3}},"line":116}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},{"start":{},"end":{}}],"line":29},"1":{"loc":{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},{"start":{},"end":{}}],"line":38}},"s":{"0":60,"1":60,"2":60,"3":60,"4":60,"5":60,"6":60,"7":60,"8":60,"9":0,"10":60,"11":60,"12":60,"13":60,"14":60,"15":60,"16":60,"17":60,"18":60,"19":1280,"20":1280,"21":60,"22":60,"23":60,"24":60,"25":60,"26":60,"27":0,"28":0,"29":60,"30":60,"31":60,"32":60,"33":60},"f":{"0":60,"1":60,"2":0,"3":60},"b":{"0":[60,0],"1":[0,60]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bde9529a6eb69d5a0e75cf00e4e00e3924f4b11b"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Hasher.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Hasher.js","statementMap":{"0":{"start":{"line":17,"column":4},"end":{"line":17,"column":12}},"1":{"start":{"line":19,"column":4},"end":{"line":19,"column":30}},"2":{"start":{"line":24,"column":4},"end":{"line":24,"column":46}},"3":{"start":{"line":27,"column":4},"end":{"line":27,"column":17}},"4":{"start":{"line":44,"column":4},"end":{"line":44,"column":66}},"5":{"start":{"line":44,"column":29},"end":{"line":44,"column":65}},"6":{"start":{"line":61,"column":4},"end":{"line":61,"column":72}},"7":{"start":{"line":61,"column":29},"end":{"line":61,"column":71}},"8":{"start":{"line":73,"column":4},"end":{"line":73,"column":27}},"9":{"start":{"line":76,"column":4},"end":{"line":76,"column":20}},"10":{"start":{"line":93,"column":4},"end":{"line":93,"column":32}},"11":{"start":{"line":96,"column":4},"end":{"line":96,"column":20}},"12":{"start":{"line":99,"column":4},"end":{"line":99,"column":16}},"13":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"14":{"start":{"line":119,"column":6},"end":{"line":119,"column":34}},"15":{"start":{"line":123,"column":17},"end":{"line":123,"column":35}},"16":{"start":{"line":125,"column":4},"end":{"line":125,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":2},"end":{"line":16,"column":3}},"loc":{"start":{"line":16,"column":19},"end":{"line":28,"column":3}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":2},"end":{"line":43,"column":3}},"loc":{"start":{"line":43,"column":34},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":44,"column":11},"end":{"line":44,"column":12}},"loc":{"start":{"line":44,"column":29},"end":{"line":44,"column":65}},"line":44},"3":{"name":"(anonymous_3)","decl":{"start":{"line":60,"column":2},"end":{"line":60,"column":3}},"loc":{"start":{"line":60,"column":38},"end":{"line":62,"column":3}},"line":60},"4":{"name":"(anonymous_4)","decl":{"start":{"line":61,"column":11},"end":{"line":61,"column":12}},"loc":{"start":{"line":61,"column":29},"end":{"line":61,"column":71}},"line":61},"5":{"name":"(anonymous_5)","decl":{"start":{"line":71,"column":2},"end":{"line":71,"column":3}},"loc":{"start":{"line":71,"column":10},"end":{"line":77,"column":3}},"line":71},"6":{"name":"(anonymous_6)","decl":{"start":{"line":91,"column":2},"end":{"line":91,"column":3}},"loc":{"start":{"line":91,"column":24},"end":{"line":100,"column":3}},"line":91},"7":{"name":"(anonymous_7)","decl":{"start":{"line":116,"column":2},"end":{"line":116,"column":3}},"loc":{"start":{"line":116,"column":26},"end":{"line":126,"column":3}},"line":116}},"branchMap":{"0":{"loc":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},{"start":{},"end":{}}],"line":118}},"s":{"0":130,"1":130,"2":130,"3":130,"4":7,"5":70,"6":7,"7":60,"8":250,"9":250,"10":60,"11":60,"12":60,"13":190,"14":190,"15":190,"16":190},"f":{"0":130,"1":7,"2":70,"3":7,"4":60,"5":250,"6":60,"7":190},"b":{"0":[190,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5f47c4b34235fddcf9242a154a79cda7b3f3b458"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Hex.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Hex.js","statementMap":{"0":{"start":{"line":11,"column":12},"end":{"line":65,"column":1}},"1":{"start":{"line":27,"column":32},"end":{"line":27,"column":41}},"2":{"start":{"line":30,"column":21},"end":{"line":30,"column":23}},"3":{"start":{"line":31,"column":4},"end":{"line":35,"column":5}},"4":{"start":{"line":31,"column":17},"end":{"line":31,"column":18}},"5":{"start":{"line":32,"column":19},"end":{"line":32,"column":65}},"6":{"start":{"line":33,"column":6},"end":{"line":33,"column":47}},"7":{"start":{"line":34,"column":6},"end":{"line":34,"column":48}},"8":{"start":{"line":37,"column":4},"end":{"line":37,"column":29}},"9":{"start":{"line":55,"column":25},"end":{"line":55,"column":38}},"10":{"start":{"line":58,"column":18},"end":{"line":58,"column":20}},"11":{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},"12":{"start":{"line":59,"column":17},"end":{"line":59,"column":18}},"13":{"start":{"line":60,"column":6},"end":{"line":60,"column":80}},"14":{"start":{"line":63,"column":4},"end":{"line":63,"column":50}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":25,"column":2},"end":{"line":25,"column":3}},"loc":{"start":{"line":25,"column":23},"end":{"line":38,"column":3}},"line":25},"1":{"name":"(anonymous_1)","decl":{"start":{"line":53,"column":2},"end":{"line":53,"column":3}},"loc":{"start":{"line":53,"column":16},"end":{"line":64,"column":3}},"line":53}},"branchMap":{},"s":{"0":1,"1":130,"2":130,"3":130,"4":130,"5":4800,"6":4800,"7":4800,"8":130,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"f":{"0":130,"1":0},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bdd6da6abd33555eb71b66bc3f1efb8ecb0b72be"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Latin1.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Latin1.js","statementMap":{"0":{"start":{"line":10,"column":15},"end":{"line":63,"column":1}},"1":{"start":{"line":26,"column":32},"end":{"line":26,"column":41}},"2":{"start":{"line":29,"column":24},"end":{"line":29,"column":26}},"3":{"start":{"line":30,"column":4},"end":{"line":33,"column":5}},"4":{"start":{"line":30,"column":17},"end":{"line":30,"column":18}},"5":{"start":{"line":31,"column":19},"end":{"line":31,"column":65}},"6":{"start":{"line":32,"column":6},"end":{"line":32,"column":50}},"7":{"start":{"line":35,"column":4},"end":{"line":35,"column":32}},"8":{"start":{"line":53,"column":28},"end":{"line":53,"column":44}},"9":{"start":{"line":56,"column":18},"end":{"line":56,"column":20}},"10":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"11":{"start":{"line":57,"column":17},"end":{"line":57,"column":18}},"12":{"start":{"line":58,"column":6},"end":{"line":58,"column":79}},"13":{"start":{"line":61,"column":4},"end":{"line":61,"column":49}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":24,"column":2},"end":{"line":24,"column":3}},"loc":{"start":{"line":24,"column":23},"end":{"line":36,"column":3}},"line":24},"1":{"name":"(anonymous_1)","decl":{"start":{"line":51,"column":2},"end":{"line":51,"column":3}},"loc":{"start":{"line":51,"column":19},"end":{"line":62,"column":3}},"line":51}},"branchMap":{},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":190,"9":190,"10":190,"11":190,"12":3140,"13":190},"f":{"0":0,"1":190},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1b277aa806b618bf3ca2b8379d60b89ab4831724"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Utf8.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\Utf8.js","statementMap":{"0":{"start":{"line":10,"column":13},"end":{"line":48,"column":1}},"1":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"2":{"start":{"line":26,"column":6},"end":{"line":26,"column":69}},"3":{"start":{"line":28,"column":6},"end":{"line":28,"column":46}},"4":{"start":{"line":46,"column":4},"end":{"line":46,"column":63}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":24,"column":2},"end":{"line":24,"column":3}},"loc":{"start":{"line":24,"column":23},"end":{"line":30,"column":3}},"line":24},"1":{"name":"(anonymous_1)","decl":{"start":{"line":45,"column":2},"end":{"line":45,"column":3}},"loc":{"start":{"line":45,"column":17},"end":{"line":47,"column":3}},"line":45}},"branchMap":{},"s":{"0":1,"1":0,"2":0,"3":0,"4":190},"f":{"0":0,"1":190},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a59d42c12041d88dbaad4e405f5eb29d4c4e0253"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\WordArray.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\WordArray.js","statementMap":{"0":{"start":{"line":26,"column":4},"end":{"line":26,"column":12}},"1":{"start":{"line":28,"column":21},"end":{"line":28,"column":26}},"2":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"3":{"start":{"line":31,"column":6},"end":{"line":31,"column":46}},"4":{"start":{"line":35,"column":4},"end":{"line":50,"column":5}},"5":{"start":{"line":45,"column":6},"end":{"line":49,"column":8}},"6":{"start":{"line":53,"column":4},"end":{"line":70,"column":5}},"7":{"start":{"line":55,"column":35},"end":{"line":55,"column":56}},"8":{"start":{"line":58,"column":21},"end":{"line":58,"column":23}},"9":{"start":{"line":59,"column":6},"end":{"line":61,"column":7}},"10":{"start":{"line":59,"column":19},"end":{"line":59,"column":20}},"11":{"start":{"line":60,"column":8},"end":{"line":60,"column":63}},"12":{"start":{"line":64,"column":6},"end":{"line":64,"column":26}},"13":{"start":{"line":65,"column":6},"end":{"line":65,"column":43}},"14":{"start":{"line":68,"column":6},"end":{"line":68,"column":25}},"15":{"start":{"line":69,"column":6},"end":{"line":69,"column":31}},"16":{"start":{"line":87,"column":18},"end":{"line":87,"column":20}},"17":{"start":{"line":89,"column":14},"end":{"line":102,"column":5}},"18":{"start":{"line":90,"column":17},"end":{"line":90,"column":20}},"19":{"start":{"line":91,"column":17},"end":{"line":91,"column":27}},"20":{"start":{"line":92,"column":19},"end":{"line":92,"column":29}},"21":{"start":{"line":94,"column":6},"end":{"line":101,"column":8}},"22":{"start":{"line":95,"column":8},"end":{"line":95,"column":66}},"23":{"start":{"line":96,"column":8},"end":{"line":96,"column":66}},"24":{"start":{"line":97,"column":21},"end":{"line":97,"column":51}},"25":{"start":{"line":98,"column":8},"end":{"line":98,"column":30}},"26":{"start":{"line":99,"column":8},"end":{"line":99,"column":22}},"27":{"start":{"line":100,"column":8},"end":{"line":100,"column":55}},"28":{"start":{"line":104,"column":4},"end":{"line":109,"column":5}},"29":{"start":{"line":104,"column":17},"end":{"line":104,"column":18}},"30":{"start":{"line":105,"column":17},"end":{"line":105,"column":59}},"31":{"start":{"line":107,"column":6},"end":{"line":107,"column":33}},"32":{"start":{"line":108,"column":6},"end":{"line":108,"column":43}},"33":{"start":{"line":111,"column":4},"end":{"line":111,"column":40}},"34":{"start":{"line":129,"column":4},"end":{"line":129,"column":60}},"35":{"start":{"line":129,"column":27},"end":{"line":129,"column":58}},"36":{"start":{"line":132,"column":32},"end":{"line":132,"column":36}},"37":{"start":{"line":135,"column":21},"end":{"line":135,"column":23}},"38":{"start":{"line":136,"column":4},"end":{"line":140,"column":5}},"39":{"start":{"line":136,"column":17},"end":{"line":136,"column":18}},"40":{"start":{"line":137,"column":19},"end":{"line":137,"column":65}},"41":{"start":{"line":138,"column":6},"end":{"line":138,"column":47}},"42":{"start":{"line":139,"column":6},"end":{"line":139,"column":48}},"43":{"start":{"line":142,"column":4},"end":{"line":142,"column":29}},"44":{"start":{"line":158,"column":22},"end":{"line":158,"column":32}},"45":{"start":{"line":159,"column":22},"end":{"line":159,"column":37}},"46":{"start":{"line":160,"column":25},"end":{"line":160,"column":38}},"47":{"start":{"line":161,"column":25},"end":{"line":161,"column":43}},"48":{"start":{"line":164,"column":4},"end":{"line":164,"column":17}},"49":{"start":{"line":167,"column":4},"end":{"line":179,"column":5}},"50":{"start":{"line":169,"column":6},"end":{"line":173,"column":7}},"51":{"start":{"line":169,"column":19},"end":{"line":169,"column":20}},"52":{"start":{"line":170,"column":25},"end":{"line":170,"column":75}},"53":{"start":{"line":171,"column":8},"end":{"line":172,"column":61}},"54":{"start":{"line":176,"column":6},"end":{"line":178,"column":7}},"55":{"start":{"line":176,"column":19},"end":{"line":176,"column":20}},"56":{"start":{"line":177,"column":8},"end":{"line":177,"column":65}},"57":{"start":{"line":180,"column":4},"end":{"line":180,"column":34}},"58":{"start":{"line":183,"column":4},"end":{"line":183,"column":16}},"59":{"start":{"line":195,"column":32},"end":{"line":195,"column":36}},"60":{"start":{"line":198,"column":4},"end":{"line":198,"column":69}},"61":{"start":{"line":199,"column":4},"end":{"line":199,"column":43}},"62":{"start":{"line":212,"column":18},"end":{"line":212,"column":40}},"63":{"start":{"line":213,"column":4},"end":{"line":213,"column":38}},"64":{"start":{"line":215,"column":4},"end":{"line":215,"column":17}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":25,"column":2},"end":{"line":25,"column":3}},"loc":{"start":{"line":25,"column":55},"end":{"line":71,"column":3}},"line":25},"1":{"name":"(anonymous_1)","decl":{"start":{"line":86,"column":2},"end":{"line":86,"column":3}},"loc":{"start":{"line":86,"column":24},"end":{"line":112,"column":3}},"line":86},"2":{"name":"(anonymous_2)","decl":{"start":{"line":89,"column":14},"end":{"line":89,"column":15}},"loc":{"start":{"line":89,"column":23},"end":{"line":102,"column":5}},"line":89},"3":{"name":"(anonymous_3)","decl":{"start":{"line":94,"column":13},"end":{"line":94,"column":14}},"loc":{"start":{"line":94,"column":19},"end":{"line":101,"column":7}},"line":94},"4":{"name":"(anonymous_4)","decl":{"start":{"line":127,"column":2},"end":{"line":127,"column":3}},"loc":{"start":{"line":127,"column":27},"end":{"line":143,"column":3}},"line":127},"5":{"name":"(anonymous_5)","decl":{"start":{"line":156,"column":2},"end":{"line":156,"column":3}},"loc":{"start":{"line":156,"column":20},"end":{"line":184,"column":3}},"line":156},"6":{"name":"(anonymous_6)","decl":{"start":{"line":193,"column":2},"end":{"line":193,"column":3}},"loc":{"start":{"line":193,"column":10},"end":{"line":200,"column":3}},"line":193},"7":{"name":"(anonymous_7)","decl":{"start":{"line":211,"column":2},"end":{"line":211,"column":3}},"loc":{"start":{"line":211,"column":10},"end":{"line":216,"column":3}},"line":211}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":14},"end":{"line":25,"column":24}},"type":"default-arg","locations":[{"start":{"line":25,"column":22},"end":{"line":25,"column":24}}],"line":25},"1":{"loc":{"start":{"line":25,"column":26},"end":{"line":25,"column":53}},"type":"default-arg","locations":[{"start":{"line":25,"column":37},"end":{"line":25,"column":53}}],"line":25},"2":{"loc":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},{"start":{},"end":{}}],"line":30},"3":{"loc":{"start":{"line":35,"column":4},"end":{"line":50,"column":5}},"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":50,"column":5}},{"start":{},"end":{}}],"line":35},"4":{"loc":{"start":{"line":36,"column":6},"end":{"line":43,"column":43}},"type":"binary-expr","locations":[{"start":{"line":36,"column":6},"end":{"line":36,"column":37}},{"start":{"line":37,"column":9},"end":{"line":37,"column":48}},{"start":{"line":38,"column":9},"end":{"line":38,"column":41}},{"start":{"line":39,"column":9},"end":{"line":39,"column":42}},{"start":{"line":40,"column":9},"end":{"line":40,"column":41}},{"start":{"line":41,"column":9},"end":{"line":41,"column":42}},{"start":{"line":42,"column":9},"end":{"line":42,"column":43}},{"start":{"line":43,"column":9},"end":{"line":43,"column":43}}],"line":36},"5":{"loc":{"start":{"line":53,"column":4},"end":{"line":70,"column":5}},"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":70,"column":5}},{"start":{"line":66,"column":11},"end":{"line":70,"column":5}}],"line":53},"6":{"loc":{"start":{"line":100,"column":25},"end":{"line":100,"column":53}},"type":"cond-expr","locations":[{"start":{"line":100,"column":47},"end":{"line":100,"column":48}},{"start":{"line":100,"column":51},"end":{"line":100,"column":53}}],"line":100},"7":{"loc":{"start":{"line":105,"column":20},"end":{"line":105,"column":43}},"type":"binary-expr","locations":[{"start":{"line":105,"column":20},"end":{"line":105,"column":26}},{"start":{"line":105,"column":30},"end":{"line":105,"column":43}}],"line":105},"8":{"loc":{"start":{"line":127,"column":11},"end":{"line":127,"column":25}},"type":"default-arg","locations":[{"start":{"line":127,"column":21},"end":{"line":127,"column":25}}],"line":127},"9":{"loc":{"start":{"line":129,"column":4},"end":{"line":129,"column":60}},"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":129,"column":60}},{"start":{},"end":{}}],"line":129},"10":{"loc":{"start":{"line":167,"column":4},"end":{"line":179,"column":5}},"type":"if","locations":[{"start":{"line":167,"column":4},"end":{"line":179,"column":5}},{"start":{"line":174,"column":11},"end":{"line":179,"column":5}}],"line":167}},"s":{"0":1100,"1":1100,"2":1100,"3":0,"4":1100,"5":0,"6":1100,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":1100,"15":1100,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":130,"35":130,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":310,"45":310,"46":310,"47":310,"48":310,"49":310,"50":0,"51":0,"52":0,"53":0,"54":310,"55":310,"56":4250,"57":310,"58":310,"59":370,"60":370,"61":370,"62":180,"63":180,"64":180},"f":{"0":1100,"1":0,"2":0,"3":0,"4":130,"5":310,"6":370,"7":180},"b":{"0":[430],"1":[590],"2":[0,1100],"3":[0,1100],"4":[1100,1100,1100,1100,1100,1100,1100,1100],"5":[0,1100],"6":[0,0],"7":[0,0],"8":[0],"9":[130,0],"10":[0,310]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b739c5fd1e7c71dfec647f9936f0d34f1670d1db"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\core.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\core.js","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2269745886d50c071ac195bbbe26295a1ffe3911"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\x64-core\\X64Word.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\x64-core\\X64Word.js","statementMap":{"0":{"start":{"line":21,"column":4},"end":{"line":21,"column":12}},"1":{"start":{"line":23,"column":4},"end":{"line":23,"column":21}},"2":{"start":{"line":24,"column":4},"end":{"line":24,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":2},"end":{"line":20,"column":3}},"loc":{"start":{"line":20,"column":25},"end":{"line":25,"column":3}},"line":20}},"branchMap":{},"s":{"0":1099,"1":1099,"2":1099},"f":{"0":1099},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4794c58572f578c59317e5a07b55c6c671fe6484"} -,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\x64-core\\X64WordArray.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\lib\\core\\x64-core\\X64WordArray.js","statementMap":{"0":{"start":{"line":6,"column":21},"end":{"line":6,"column":30}},"1":{"start":{"line":36,"column":4},"end":{"line":36,"column":12}},"2":{"start":{"line":38,"column":4},"end":{"line":38,"column":23}},"3":{"start":{"line":39,"column":4},"end":{"line":39,"column":29}},"4":{"start":{"line":53,"column":21},"end":{"line":53,"column":31}},"5":{"start":{"line":54,"column":27},"end":{"line":54,"column":42}},"6":{"start":{"line":57,"column":21},"end":{"line":57,"column":23}},"7":{"start":{"line":58,"column":4},"end":{"line":62,"column":5}},"8":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"9":{"start":{"line":59,"column":22},"end":{"line":59,"column":33}},"10":{"start":{"line":60,"column":6},"end":{"line":60,"column":34}},"11":{"start":{"line":61,"column":6},"end":{"line":61,"column":33}},"12":{"start":{"line":64,"column":4},"end":{"line":64,"column":56}},"13":{"start":{"line":77,"column":18},"end":{"line":77,"column":40}},"14":{"start":{"line":80,"column":4},"end":{"line":80,"column":38}},"15":{"start":{"line":81,"column":22},"end":{"line":81,"column":27}},"16":{"start":{"line":84,"column":24},"end":{"line":84,"column":36}},"17":{"start":{"line":85,"column":4},"end":{"line":87,"column":5}},"18":{"start":{"line":85,"column":17},"end":{"line":85,"column":18}},"19":{"start":{"line":86,"column":6},"end":{"line":86,"column":34}},"20":{"start":{"line":89,"column":4},"end":{"line":89,"column":17}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":35,"column":2},"end":{"line":35,"column":3}},"loc":{"start":{"line":35,"column":55},"end":{"line":40,"column":3}},"line":35},"1":{"name":"(anonymous_1)","decl":{"start":{"line":51,"column":2},"end":{"line":51,"column":3}},"loc":{"start":{"line":51,"column":10},"end":{"line":65,"column":3}},"line":51},"2":{"name":"(anonymous_2)","decl":{"start":{"line":76,"column":2},"end":{"line":76,"column":3}},"loc":{"start":{"line":76,"column":10},"end":{"line":90,"column":3}},"line":76}},"branchMap":{"0":{"loc":{"start":{"line":35,"column":14},"end":{"line":35,"column":24}},"type":"default-arg","locations":[{"start":{"line":35,"column":22},"end":{"line":35,"column":24}}],"line":35},"1":{"loc":{"start":{"line":35,"column":26},"end":{"line":35,"column":53}},"type":"default-arg","locations":[{"start":{"line":35,"column":37},"end":{"line":35,"column":53}}],"line":35}},"s":{"0":1,"1":80,"2":80,"3":80,"4":60,"5":60,"6":60,"7":60,"8":60,"9":480,"10":480,"11":480,"12":60,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"f":{"0":80,"1":60,"2":0},"b":{"0":[0],"1":[80]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"18622e739f972c7415e9a13d1c0569f43c577092"} -,"G:\\projects\\react-native-hash\\react-native-hash\\__tests__\\C.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\__tests__\\C.js","statementMap":{"0":{"start":{"line":3,"column":27},"end":{"line":14,"column":1}},"1":{"start":{"line":16,"column":25},"end":{"line":27,"column":1}},"2":{"start":{"line":29,"column":26},"end":{"line":40,"column":1}},"3":{"start":{"line":42,"column":28},"end":{"line":53,"column":1}},"4":{"start":{"line":55,"column":28},"end":{"line":66,"column":1}},"5":{"start":{"line":68,"column":28},"end":{"line":79,"column":1}},"6":{"start":{"line":81,"column":28},"end":{"line":92,"column":1}},"7":{"start":{"line":94,"column":28},"end":{"line":105,"column":1}},"8":{"start":{"line":107,"column":24},"end":{"line":118,"column":1}},"9":{"start":{"line":120,"column":25},"end":{"line":131,"column":1}},"10":{"start":{"line":132,"column":27},"end":{"line":143,"column":1}},"11":{"start":{"line":144,"column":27},"end":{"line":155,"column":1}},"12":{"start":{"line":156,"column":27},"end":{"line":167,"column":1}},"13":{"start":{"line":168,"column":27},"end":{"line":179,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"32b3a5db0ddde0dfc2fe7fa5fa5d3f82de69b1f6"} +{"G:\\projects\\react-native-hash\\react-native-hash\\Constants.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\Constants.js","statementMap":{"0":{"start":{"line":3,"column":18},"end":{"line":34,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":4},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"57e31fe0a3f4d7f71b747ee62c86e494e170282f"} +,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHash.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHash.js","statementMap":{"0":{"start":{"line":15,"column":4},"end":{"line":15,"column":8}},"1":{"start":{"line":22,"column":19},"end":{"line":55,"column":1}},"2":{"start":{"line":23,"column":2},"end":{"line":54,"column":3}},"3":{"start":{"line":25,"column":19},"end":{"line":25,"column":36}},"4":{"start":{"line":26,"column":6},"end":{"line":26,"column":33}},"5":{"start":{"line":29,"column":19},"end":{"line":29,"column":37}},"6":{"start":{"line":30,"column":6},"end":{"line":30,"column":33}},"7":{"start":{"line":33,"column":19},"end":{"line":33,"column":39}},"8":{"start":{"line":34,"column":6},"end":{"line":34,"column":33}},"9":{"start":{"line":37,"column":19},"end":{"line":37,"column":39}},"10":{"start":{"line":38,"column":6},"end":{"line":38,"column":33}},"11":{"start":{"line":41,"column":19},"end":{"line":41,"column":39}},"12":{"start":{"line":42,"column":6},"end":{"line":42,"column":33}},"13":{"start":{"line":45,"column":19},"end":{"line":45,"column":39}},"14":{"start":{"line":46,"column":6},"end":{"line":46,"column":33}},"15":{"start":{"line":49,"column":19},"end":{"line":49,"column":37}},"16":{"start":{"line":50,"column":6},"end":{"line":50,"column":33}},"17":{"start":{"line":53,"column":6},"end":{"line":53,"column":64}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":22,"column":19},"end":{"line":22,"column":20}},"loc":{"start":{"line":22,"column":48},"end":{"line":55,"column":1}},"line":22}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":2},"end":{"line":54,"column":3}},"type":"switch","locations":[{"start":{"line":24,"column":4},"end":{"line":27,"column":5}},{"start":{"line":28,"column":4},"end":{"line":31,"column":5}},{"start":{"line":32,"column":4},"end":{"line":35,"column":5}},{"start":{"line":36,"column":4},"end":{"line":39,"column":5}},{"start":{"line":40,"column":4},"end":{"line":43,"column":5}},{"start":{"line":44,"column":4},"end":{"line":47,"column":5}},{"start":{"line":48,"column":4},"end":{"line":51,"column":5}},{"start":{"line":52,"column":4},"end":{"line":53,"column":64}}],"line":23}},"s":{"0":2,"1":2,"2":161,"3":33,"4":33,"5":22,"6":22,"7":21,"8":21,"9":21,"10":21,"11":21,"12":21,"13":21,"14":21,"15":21,"16":21,"17":1},"f":{"0":161},"b":{"0":[33,22,21,21,21,21,21,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"df46c2e28222237f5ab1d718bd4be76c865db363"} +,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHmac.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\JSHmac.js","statementMap":{"0":{"start":{"line":14,"column":4},"end":{"line":14,"column":8}},"1":{"start":{"line":21,"column":19},"end":{"line":53,"column":1}},"2":{"start":{"line":22,"column":2},"end":{"line":52,"column":3}},"3":{"start":{"line":24,"column":19},"end":{"line":24,"column":45}},"4":{"start":{"line":25,"column":6},"end":{"line":25,"column":33}},"5":{"start":{"line":29,"column":19},"end":{"line":29,"column":46}},"6":{"start":{"line":30,"column":6},"end":{"line":30,"column":33}},"7":{"start":{"line":34,"column":19},"end":{"line":34,"column":48}},"8":{"start":{"line":35,"column":6},"end":{"line":35,"column":33}},"9":{"start":{"line":39,"column":19},"end":{"line":39,"column":48}},"10":{"start":{"line":40,"column":6},"end":{"line":40,"column":33}},"11":{"start":{"line":43,"column":19},"end":{"line":43,"column":48}},"12":{"start":{"line":44,"column":6},"end":{"line":44,"column":33}},"13":{"start":{"line":47,"column":19},"end":{"line":47,"column":48}},"14":{"start":{"line":48,"column":6},"end":{"line":48,"column":33}},"15":{"start":{"line":51,"column":6},"end":{"line":51,"column":64}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":21,"column":19},"end":{"line":21,"column":20}},"loc":{"start":{"line":21,"column":53},"end":{"line":53,"column":1}},"line":21}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":2},"end":{"line":52,"column":3}},"type":"switch","locations":[{"start":{"line":23,"column":4},"end":{"line":26,"column":5}},{"start":{"line":28,"column":4},"end":{"line":31,"column":5}},{"start":{"line":33,"column":4},"end":{"line":36,"column":5}},{"start":{"line":38,"column":4},"end":{"line":41,"column":5}},{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":50,"column":4},"end":{"line":51,"column":64}}],"line":22}},"s":{"0":2,"1":2,"2":143,"3":36,"4":36,"5":22,"6":22,"7":21,"8":21,"9":21,"10":21,"11":21,"12":21,"13":21,"14":21,"15":1},"f":{"0":143},"b":{"0":[36,22,21,21,21,21,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0e665495fb69f06ace197d0773d5230fcbbbaecc"} +,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\Hooks\\useHash.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\Hooks\\useHash.js","statementMap":{"0":{"start":{"line":8,"column":16},"end":{"line":25,"column":1}},"1":{"start":{"line":12,"column":26},"end":{"line":12,"column":44}},"2":{"start":{"line":13,"column":32},"end":{"line":13,"column":56}},"3":{"start":{"line":14,"column":30},"end":{"line":14,"column":40}},"4":{"start":{"line":15,"column":2},"end":{"line":22,"column":22}},"5":{"start":{"line":16,"column":17},"end":{"line":20,"column":8}},"6":{"start":{"line":16,"column":23},"end":{"line":20,"column":8}},"7":{"start":{"line":17,"column":19},"end":{"line":17,"column":31}},"8":{"start":{"line":19,"column":8},"end":{"line":19,"column":26}},"9":{"start":{"line":21,"column":4},"end":{"line":21,"column":11}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":39}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":17}},"loc":{"start":{"line":11,"column":5},"end":{"line":25,"column":1}},"line":11},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":12},"end":{"line":15,"column":13}},"loc":{"start":{"line":15,"column":18},"end":{"line":22,"column":3}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":17},"end":{"line":16,"column":18}},"loc":{"start":{"line":16,"column":23},"end":{"line":20,"column":8}},"line":16},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":12},"end":{"line":17,"column":13}},"loc":{"start":{"line":17,"column":19},"end":{"line":17,"column":31}},"line":17},"4":{"name":"(anonymous_4)","decl":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"loc":{"start":{"line":18,"column":21},"end":{"line":20,"column":7}},"line":18}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":9,"column":41}},"type":"default-arg","locations":[{"start":{"line":9,"column":13},"end":{"line":9,"column":41}}],"line":9},"1":{"loc":{"start":{"line":10,"column":2},"end":{"line":10,"column":32}},"type":"default-arg","locations":[{"start":{"line":10,"column":19},"end":{"line":10,"column":32}}],"line":10}},"s":{"0":1,"1":180,"2":180,"3":180,"4":180,"5":90,"6":90,"7":90,"8":0,"9":90,"10":180},"f":{"0":180,"1":90,"2":90,"3":90,"4":0},"b":{"0":[2],"1":[8]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8c9a0d1715f702d721eb3e1e29eda920f4104404"} +,"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\Hooks\\useHmac.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\JSHash\\Hooks\\useHmac.js","statementMap":{"0":{"start":{"line":8,"column":16},"end":{"line":27,"column":1}},"1":{"start":{"line":13,"column":26},"end":{"line":13,"column":44}},"2":{"start":{"line":14,"column":32},"end":{"line":14,"column":56}},"3":{"start":{"line":15,"column":30},"end":{"line":15,"column":53}},"4":{"start":{"line":16,"column":30},"end":{"line":16,"column":40}},"5":{"start":{"line":17,"column":2},"end":{"line":24,"column":30}},"6":{"start":{"line":18,"column":17},"end":{"line":22,"column":8}},"7":{"start":{"line":18,"column":23},"end":{"line":22,"column":8}},"8":{"start":{"line":19,"column":19},"end":{"line":19,"column":31}},"9":{"start":{"line":21,"column":8},"end":{"line":21,"column":26}},"10":{"start":{"line":23,"column":4},"end":{"line":23,"column":11}},"11":{"start":{"line":26,"column":2},"end":{"line":26,"column":50}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":17}},"loc":{"start":{"line":12,"column":5},"end":{"line":27,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":17,"column":12},"end":{"line":17,"column":13}},"loc":{"start":{"line":17,"column":18},"end":{"line":24,"column":3}},"line":17},"2":{"name":"(anonymous_2)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":23},"end":{"line":22,"column":8}},"line":18},"3":{"name":"(anonymous_3)","decl":{"start":{"line":19,"column":12},"end":{"line":19,"column":13}},"loc":{"start":{"line":19,"column":19},"end":{"line":19,"column":31}},"line":19},"4":{"name":"(anonymous_4)","decl":{"start":{"line":20,"column":13},"end":{"line":20,"column":14}},"loc":{"start":{"line":20,"column":21},"end":{"line":22,"column":7}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":9,"column":45}},"type":"default-arg","locations":[{"start":{"line":9,"column":13},"end":{"line":9,"column":45}}],"line":9},"1":{"loc":{"start":{"line":10,"column":2},"end":{"line":10,"column":32}},"type":"default-arg","locations":[{"start":{"line":10,"column":19},"end":{"line":10,"column":32}}],"line":10},"2":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":29}},"type":"default-arg","locations":[{"start":{"line":11,"column":18},"end":{"line":11,"column":29}}],"line":11}},"s":{"0":1,"1":164,"2":164,"3":164,"4":164,"5":164,"6":82,"7":82,"8":82,"9":0,"10":82,"11":164},"f":{"0":164,"1":82,"2":82,"3":82,"4":0},"b":{"0":[2],"1":[14],"2":[162]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0ac8d7c6a5ee8752b9dcc28be556fd1b132490ba"} +,"G:\\projects\\react-native-hash\\react-native-hash\\__tests__\\C.js": {"path":"G:\\projects\\react-native-hash\\react-native-hash\\__tests__\\C.js","statementMap":{"0":{"start":{"line":3,"column":27},"end":{"line":14,"column":1}},"1":{"start":{"line":16,"column":25},"end":{"line":27,"column":1}},"2":{"start":{"line":29,"column":26},"end":{"line":40,"column":1}},"3":{"start":{"line":42,"column":28},"end":{"line":53,"column":1}},"4":{"start":{"line":55,"column":28},"end":{"line":66,"column":1}},"5":{"start":{"line":68,"column":28},"end":{"line":79,"column":1}},"6":{"start":{"line":81,"column":28},"end":{"line":92,"column":1}},"7":{"start":{"line":94,"column":28},"end":{"line":105,"column":1}},"8":{"start":{"line":107,"column":24},"end":{"line":118,"column":1}},"9":{"start":{"line":120,"column":25},"end":{"line":131,"column":1}},"10":{"start":{"line":132,"column":27},"end":{"line":143,"column":1}},"11":{"start":{"line":144,"column":27},"end":{"line":155,"column":1}},"12":{"start":{"line":156,"column":27},"end":{"line":167,"column":1}},"13":{"start":{"line":168,"column":27},"end":{"line":179,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":4,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":4,"10":4,"11":4,"12":4,"13":4},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"32b3a5db0ddde0dfc2fe7fa5fa5d3f82de69b1f6"} } diff --git a/coverage/favicon.png b/coverage/favicon.png index 6691817834a957c938e7f09640a37a645fb31457..c1525b811a167671e9de1fa78aab9f5c0b61cef7 100644 GIT binary patch delta 430 zcmV;f0a5;(1ib^08Gix*005AYXf^-<0fb3JK~#7Fwa){L7(o;U;D2ytRNFR!+IGX* zaq2i#+~|VZMqJyrZCmTz_d1zFT=&aF^DO)adH5X?!2d5GV*E@=nhZidb1}g$IC?q; zAaCDGE?oPif}IEB_a8|w8>kfF7M zKiG(hB%+3dfP|ReXY=m$yZ7}4GluxVdpx-3oO{l>_pw^iR)1(?cpF?peI5ZRTTkJ0 zxbvX!=g@6ANqoQVML557aqzcwfuFHD?(z~mb)%5YDYOzpDTV8_L^?|X^bK8sZ|P|k zmliTP*%Yr*RX9qx&^*gx;K^$jDSCF}b>s^kSi9NWdBD_M8J`x)SdZ3FbG)L@DDugf z#CcK@PeRx|9DjC5qEuFJ{)3jkRuSF$*Vy?e;b4z8__5VxaN30(V&)M(s&KDRC<5QN zs~8%vu(oQUyPIs%P01G&!USIWQpNOp0gd&iArJ_Vngzsu)s3}GuK8p;JAhX&89u%f z&{%)C&gSQPJ5$E~p)}>_8SH0x6Y(xfBJq#t{^4p9=;=&_qWl0C|x{qUi_60as#_s120wcrR ztm(;92UoXr4>IIna$KM{-26`kgW948*6-f1g}^W{F-9fPXfxVvghU?!A)4HCkbQVC Q00000Ne4wvM6N<$g5H$)jQ{`u diff --git a/coverage/index.html b/coverage/index.html index 89d9626..c0e8c91 100644 --- a/coverage/index.html +++ b/coverage/index.html @@ -23,30 +23,30 @@

All files

- 88.67% + 97.22% Statements - 744/839 + 70/72
- 84.74% + 100% Branches - 100/118 + 20/20
- 76.31% + 83.33% Functions - 58/76 + 10/12
- 89.07% + 97.14% Lines - 709/796 + 68/70
@@ -109,48 +109,18 @@

All files

- react-native-hash/JSHash/lib - -
+ react-native-hash/JSHash/Hooks + +
- 96.37% - 558/579 + 91.3% + 21/23 100% - 62/62 - 82.35% - 28/34 - 96.37% - 532/552 - - - - react-native-hash/JSHash/lib/core - -
- - 64.7% - 121/187 - 56.41% - 22/39 - 69.44% - 25/36 - 65.31% - 113/173 - - - - react-native-hash/JSHash/lib/core/x64-core - -
- - 66.66% - 16/24 - 50% - 1/2 - 75% - 3/4 - 68.18% - 15/22 + 5/5 + 80% + 8/10 + 90.47% + 19/21 @@ -176,7 +146,7 @@

All files

+ + + + + + \ No newline at end of file diff --git a/coverage/react-native-hash/JSHash/Hooks/useHash.js.html b/coverage/react-native-hash/JSHash/Hooks/useHash.js.html new file mode 100644 index 0000000..b969477 --- /dev/null +++ b/coverage/react-native-hash/JSHash/Hooks/useHash.js.html @@ -0,0 +1,166 @@ + + + + + + Code coverage report for react-native-hash/JSHash/Hooks/useHash.js + + + + + + + + + +
+
+

All files / react-native-hash/JSHash/Hooks useHash.js

+
+ +
+ 90.9% + Statements + 10/11 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 80% + Functions + 4/5 +
+ + +
+ 90% + Lines + 9/10 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28  +  +  +  +  +  +  +1x +  +  +  +180x +180x +180x +180x +90x +90x +  +  +  +90x +  +  +180x +  +  +  + 
/* eslint linebreak-style: ["error", "windows"] */
+/* eslint-disable no-use-before-define */
+ 
+import React, { useState, useEffect } from 'react';
+import hashString from '../JSHash.js';
+import CONSTANTS from '../../Constants.js';
+ 
+const useHash = (
+  hashAlgo = CONSTANTS.HashAlgorithms.md5,
+  initialMessage = 'hello World',
+) => {
+  const [Algo, setAlgo] = useState(hashAlgo);
+  const [message, setMessage] = useState(initialMessage);
+  const [hashed, setHashed] = useState();
+  useEffect(() => {
+    const hash = () => hashString(message, Algo)
+      .then((a) => setHashed(a))
+      .catch((er) => {
+        console.error(er);
+      });
+    hash();
+  }, [message, Algo]);
+ 
+  return [hashed, setAlgo, setMessage];
+};
+ 
+export default useHash;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/react-native-hash/JSHash/Hooks/useHmac.js.html b/coverage/react-native-hash/JSHash/Hooks/useHmac.js.html new file mode 100644 index 0000000..639ad01 --- /dev/null +++ b/coverage/react-native-hash/JSHash/Hooks/useHmac.js.html @@ -0,0 +1,172 @@ + + + + + + Code coverage report for react-native-hash/JSHash/Hooks/useHmac.js + + + + + + + + + +
+
+

All files / react-native-hash/JSHash/Hooks useHmac.js

+
+ +
+ 91.66% + Statements + 11/12 +
+ + +
+ 100% + Branches + 3/3 +
+ + +
+ 80% + Functions + 4/5 +
+ + +
+ 90.9% + Lines + 10/11 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30  +  +  +  +  +  +  +1x +  +  +  +  +164x +164x +164x +164x +164x +82x +82x +  +  +  +82x +  +  +164x +  +  +  + 
/* eslint linebreak-style: ["error", "windows"] */
+/* eslint-disable no-use-before-define */
+ 
+import React, { useState, useEffect } from 'react';
+import hmacString from '../JSHmac.js';
+import CONSTANTS from '../../Constants.js';
+ 
+const useHmac = (
+  hmacAlgo = CONSTANTS.HmacAlgorithms.HmacMD5,
+  initialMessage = 'hello World',
+  initialSecret = 'SecretKey',
+) => {
+  const [Algo, setAlgo] = useState(hmacAlgo);
+  const [message, setMessage] = useState(initialMessage);
+  const [secret, setSecret] = useState(initialSecret);
+  const [hmaced, setHmaced] = useState();
+  useEffect(() => {
+    const hmac = () => hmacString(message, secret, Algo)
+      .then((a) => setHmaced(a))
+      .catch((er) => {
+        console.error(er);
+      });
+    hmac();
+  }, [message, secret, Algo]);
+ 
+  return [hmaced, setAlgo, setMessage, setSecret];
+};
+ 
+export default useHmac;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/react-native-hash/JSHash/JSHash.js.html b/coverage/react-native-hash/JSHash/JSHash.js.html index 180387e..4a0c2d3 100644 --- a/coverage/react-native-hash/JSHash/JSHash.js.html +++ b/coverage/react-native-hash/JSHash/JSHash.js.html @@ -134,42 +134,42 @@

All files / react-native       -1x +2x             -1x -71x +2x +161x   -10x -10x +33x +33x     -10x -10x +22x +22x     -10x -10x +21x +21x     -10x -10x +21x +21x     -10x -10x +21x +21x     -10x -10x +21x +21x     -10x -10x +21x +21x     1x @@ -241,7 +241,7 @@

All files / react-native