UNPKG

@iotize/tap

Version:

IoTize Device client for Javascript

11 lines (10 loc) 577 B
import { HashType } from '@iotize/common/crypto'; import { LibWordArray, WordArray } from 'crypto-js'; export declare class CryptoHelper { static sanitizeInput(input: Uint8Array | string | LibWordArray): string | LibWordArray; static byteArrayToWordArray(ba: Uint8Array): LibWordArray; static getAlgoImpl(type: HashType): any; static wordToByteArray(word: number, length: number): Uint8Array; static libWordArrayToByteArray(libWordArray: LibWordArray, length?: number): Uint8Array; static wordArrayToByteArray(input: WordArray): Uint8Array; }