Skip to content

Commit f24e91c

Browse files
author
Baha
committed
nonexistent WordArray type is removed
1 parent cf5fcba commit f24e91c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/crypto/Utilities.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
import * as CryptoJS from 'crypto-js';
18-
import { WordArray } from 'crypto-js';
1918
import * as hkdf from 'futoin-hkdf';
2019
import { sha512 } from 'js-sha512';
2120
import { RawArray as array } from '../format';
@@ -34,7 +33,7 @@ export const Half_Hash_Size = Hash_Size / 2;
3433
*
3534
* @return {WordArray}
3635
*/
37-
export const ua2words = (ua, uaLength): WordArray => {
36+
export const ua2words = (ua, uaLength): any => {
3837
const temp: number[] = [];
3938
for (let i = 0; i < uaLength; i += 4) {
4039
const x = ua[i] * 0x1000000 + (ua[i + 1] || 0) * 0x10000 + (ua[i + 2] || 0) * 0x100 + (ua[i + 3] || 0);

0 commit comments

Comments
 (0)