Skip to content

libsodium.PKI.SharedSecret.Import

Andrew Lambert edited this page Nov 26, 2022 · 3 revisions

Method Signatures

  Shared Function Import(ExportedKey As MemoryBlock, Optional Passwd As libsodium.Password) As libsodium.PKI.SharedSecret
  Shared Function Import(ExportedKey As FolderItem, Optional Passwd As libsodium.Password) As libsodium.PKI.SharedSecret

Parameters

Name Type Comment
ExportedKey MemoryBlock or FolderItem An exported SharedKey
Passwd Password Optional. The password used to encrypt the exported key

Return value

An instance of SharedSecret containing the imported shared key, or Nil on error.

Remarks

Import a precomputed SharedSecret that was exported using SharedSecret.Export. Pass the Password if the imported key was encrypted.

Clone this wiki locally