Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Functions

Object literals

Variables

Const g

g: BN = new BN(2)

The generator to use.

Const p

p: BN = new BN('FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF',16)

Const riSize

riSize: 64 = 64

The size in bytes of the generated ri.

Functions

BNToIntArray

  • BNToIntArray(bn: BN): Uint8Array

intArrayToBN

  • intArrayToBN(array: Uint8Array): BN

Object literals

Const KDFDeriveKeyParams

KDFDeriveKeyParams: object

Default parameters for computing the key using the KDF.

extractable

extractable: boolean = true

Extractable by default.

info

info: any = {/*** Default algorithm to derive the key.*/name: 'PBKDF2',/*** No salt by default, there is enough entropy in the Shared Secret computed with the Burmester-Desmedt protocol.*/salt: new Uint8Array(),/*** Only one iteration, linked with {@link salt}*/iterations: 1,/*** Default hashing algorithm to use.*/hash: 'SHA-256',} as any

keyUsages

keyUsages: string[] = ['encrypt', 'decrypt']

Can be used to encrypt and decrypt.

symmKeyParams

symmKeyParams: object

length

length: number = keySize

Default symmetric key size to use.

name

name: string = encryptionAlgo

Default symmetric key algorithm to use.

Const KDFKeyParams

KDFKeyParams: object

Default parameters for generating the Key Derivative Function object.

algorithm

algorithm: string = "PBKDF2"

Default algorithm to use.

extractable

extractable: boolean = false

Not Extractable by default.

format

format: string = "raw"

Default format to use.

keyUsages

keyUsages: string[] = ['deriveKey']

Used only to derive a key by default.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc