Preparing search index...
The search index is not available
StableLib
StableLib
@stablelib/x25519-session
serverSessionKeysFromSharedKey
Function serverSessionKeysFromSharedKey
server
Session
Keys
From
Shared
Key
(
sharedKey
,
myPublicKey
,
theirPublicKey
,
hash
?
)
:
SessionKeys
Generates server-side session encryption keys from the shared key obtained during agreement phase.
Parameters
sharedKey
:
Uint8Array
myPublicKey
:
Uint8Array
theirPublicKey
:
Uint8Array
hash
:
(
new
(
)
=>
Hash
)
= BLAKE2b
new
(
)
:
Hash
Returns
Hash
Returns
SessionKeys
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
StableLib
@stablelib
aead
AEAD
aes
AES
aes-kw
AESKW
base64
Coder
URLSafeCoder
decode
decodeURLSafe
decodedLength
encode
encodeURLSafe
encodedLength
maxDecodedLength
benchmark
Results
benchmark
benchmarkAsync
benchmarkPromise
byteSeq
report
binary
readFloat32BE
readFloat32LE
readFloat64BE
readFloat64LE
readInt16BE
readInt16LE
readInt32BE
readInt32LE
readInt64BE
readInt64LE
readUint16BE
readUint16LE
readUint32BE
readUint32LE
readUint64BE
readUint64LE
readUintBE
readUintLE
writeFloat32BE
writeFloat32LE
writeFloat64BE
writeFloat64LE
writeInt16BE
writeInt16LE
writeInt32BE
writeInt32LE
writeInt64BE
writeInt64LE
writeUint16BE
writeUint16LE
writeUint32BE
writeUint32LE
writeUint64BE
writeUint64LE
writeUintBE
writeUintLE
blake2b
BLAKE2b
Config
SavedState
Tree
BLOCK_SIZE
DIGEST_LENGTH
KEY_LENGTH
MAX_FANOUT
MAX_LEAF_SIZE
MAX_MAX_DEPTH
PERSONALIZATION_LENGTH
SALT_LENGTH
hash
blake2s
BLAKE2s
Config
SavedState
Tree
BLOCK_SIZE
DIGEST_LENGTH
KEY_LENGTH
MAX_FANOUT
MAX_LEAF_SIZE
MAX_MAX_DEPTH
MAX_NODE_OFFSET
PERSONALIZATION_LENGTH
SALT_LENGTH
hash
blake2xs
BLAKE2Xs
BLOCK_SIZE
MAX_DIGEST_LENGTH
xof
blockcipher
BlockCipher
BlockCipherContructor
bytereader
ByteReader
bytes
concat
bytewriter
ByteWriter
cbor
Tags
Decoder
Encoder
Simple
Tagged
DecoderOptions
EncoderOptions
TaggedDecoder
TaggedEncoder
DEFAULT_DECODER_OPTIONS
DEFAULT_ENCODER_OPTIONS
DEFAULT_TAGGED_DECODERS
DEFAULT_TAGGED_ENCODERS
DateNumberDecoder
DateNumberEncoder
DateStringDecoder
DateStringEncoder
RegExpDecoder
RegExpEncoder
decode
encode
chacha
stream
streamXOR
chacha-drbg
ChaChaDRBG
chacha20poly1305
ChaCha20Poly1305
KEY_LENGTH
NONCE_LENGTH
TAG_LENGTH
cmac
CMAC
dbl
constant-time
compare
equal
lessOrEqual
select
ctr
CTR
ed25519
KeyPair
PUBLIC_KEY_LENGTH
SECRET_KEY_LENGTH
SEED_LENGTH
SIGNATURE_LENGTH
convertPublicKeyToX25519
convertSecretKeyToX25519
extractPublicKeyFromSecretKey
generateKeyPair
generateKeyPairFromSeed
sign
verify
float
fround
isNegativeZero
log2
gcm
GCM
NONCE_LENGTH
TAG_LENGTH
gf256
add
div
exp
inv
log
mul
sub
halfsiphash
DIGEST_LENGTH
KEY_LENGTH
halfSipHash
halfSipHashNum
hash
Hash
SerializableHash
isSerializableHash
hex
decode
encode
hkdf
HKDF
hmac
HMAC
equal
hmac
hmac-drbg
HMACDRBG
int
MAX_SAFE_INTEGER
add
isInteger
isSafeInteger
mul
rotl
rotr
sub
keyagreement
KeyAgreement
nacl
box
generateKey
generateKeyPair
openBox
openSecretBox
precomputeSharedKey
secretBox
newhope
NewHope
ACCEPT_MESSAGE_LENGTH
OFFER_MESSAGE_LENGTH
PUBLIC_SEED_LENGTH
SAVED_STATE_LENGTH
SECRET_SEED_LENGTH
SHARED_KEY_LENGTH
pbkdf2
deriveKey
poly1305
Poly1305
DIGEST_LENGTH
equal
oneTimeAuth
random
RandomSource
defaultRandomSource
randomBytes
randomString
randomStringForEntropy
randomUint32
salsa20
stream
streamXOR
scrypt
Scrypt
deriveKey
deriveKeyNonBlocking
sha224
SHA224
BLOCK_SIZE
DIGEST_LENGTH
hash
sha256
SHA256
SavedState
BLOCK_SIZE
DIGEST_LENGTH
hash
sha3
Keccak
SHA3
SHA3224
SHA3256
SHA3384
SHA3512
SHAKE
SHAKE128
SHAKE256
SavedState
hash
hash224
hash256
hash384
hash512
sha384
SHA384
BLOCK_SIZE
DIGEST_LENGTH
hash
sha512
SHA512
SavedState
BLOCK_SIZE
DIGEST_LENGTH
hash
sha512_256
SHA512_256
BLOCK_SIZE
DIGEST_LENGTH
hash
siv
SIV
MAX_ASSOCIATED_DATA
snappy
compress
decompress
decompressedLength
maxCompressedLength
tss
HASH_ID_NULL
HASH_ID_SHA1
HASH_ID_SHA256
HASH_ID_VENDOR_MIN
IDENTIFIER_LENGTH
MAX_SECRET_LENGTH
MAX_SHARES
combine
combineRaw
readIdentifier
readThreshold
split
splitRaw
utf8
decode
encode
encodedLength
uuid
uuid
wipe
NumericArray
wipe
x25519
KeyPair
PUBLIC_KEY_LENGTH
SECRET_KEY_LENGTH
SHARED_KEY_LENGTH
generateKeyPair
generateKeyPairFromSeed
scalarMult
scalarMultBase
sharedKey
x25519-session
X25519Session
SessionKeys
clientSessionKeys
clientSessionKeysFromSharedKey
serverSessionKeys
serverSessionKeysFromSharedKey
xchacha20
hchacha
stream
streamXOR
xchacha20poly1305
XChaCha20Poly1305
KEY_LENGTH
NONCE_LENGTH
TAG_LENGTH
xsalsa20
hsalsa
stream
streamXOR
"
"
Generates server-side session encryption keys from the shared key obtained during agreement phase.