finished todo

This commit is contained in:
Ulf Gebhardt 2021-11-03 04:44:42 +01:00
parent 2381c3dd7a
commit 8ed4ade3fe
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -118,7 +118,7 @@ const KeyPairEd25519Create = (passphrase: string[]): Buffer[] => {
value.writeBigInt64LE(BigInt(wordIndicies[i])) value.writeBigInt64LE(BigInt(wordIndicies[i]))
sodium.crypto_hash_sha512_update(state, value) sodium.crypto_hash_sha512_update(state, value)
} }
// TODO trailing space in login_server // trailing space is part of the login_server implementation
const clearPassphrase = passphrase.join(' ') + ' ' const clearPassphrase = passphrase.join(' ') + ' '
sodium.crypto_hash_sha512_update(state, Buffer.from(clearPassphrase)) sodium.crypto_hash_sha512_update(state, Buffer.from(clearPassphrase))
const outputHashBuffer = Buffer.alloc(sodium.crypto_hash_sha512_BYTES) const outputHashBuffer = Buffer.alloc(sodium.crypto_hash_sha512_BYTES)