Skip to content

Commit

Permalink
feat(constants.js): Add constants module
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed May 22, 2018
1 parent ae82bd8 commit 2eeb243
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'use strict'

// blake2b()
const kDefaultBlake2bSize = 32

// encryption/decryption
const kDefaultCipher = 'aes-128-ctr'
const kDefaultDigest = 'sha1'

// discoveryKey
const kDefaultDiscoveryKeySize = 32

// uint64
const kMinUInt64Size = 8
const kDefaultUInt64Size = kMinUInt64Size

module.exports = {
kDefaultDiscoveryKeySize,
kDefaultBlake2bSize,
kDefaultUInt64Size,
kDefaultCipher,
kDefaultDigest,

kMinUInt64Size,
}

0 comments on commit 2eeb243

Please sign in to comment.