Contents

decapsulate(_:)

Decapsulated a shared secret.

Declaration

func decapsulate<D>(_ encapsulated: D) throws -> SymmetricKey where D : DataProtocol

Parameters

  • encapsulated:

    An encapsulated shared secret, that you get by calling Encapsulate() on the corresponding public key.

Return Value

The shared secret.