@types/triplesec
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

Installation

npm install --save @types/triplesec

Summary

This package contains type definitions for triplesec (https://github.com/keybase/triplesec).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/triplesec.

index.d.ts

/// <reference types="node" />

export interface WordArray {
    sigBytes: number;
    words: number[];
    to_hex: () => string;
}

export interface Arguments {
    data: Buffer;
    key: Buffer;
    progress_hook?: ((progress: Progress) => void) | undefined;
}

export interface Progress {
    what: string;
    i: number;
    total: number;
}

export function encrypt(arg: Arguments, cb: (err: Error | null, buff: Buffer | null) => void): void;
export function decrypt(arg: Arguments, cb: (err: Error | null, buff: Buffer | null) => void): void;

export namespace prng {
    function generate(n: number, cb: (words: WordArray) => void): void;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Ben Speakman.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/triplesec

Weekly Downloads

69

Version

3.0.3

License

MIT

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • types