From da22228aebee3a3ace8b71b3e3fb321876dcbf65 Mon Sep 17 00:00:00 2001 From: "kodiakhq[bot]" Date: Sat, 25 Nov 2023 23:29:16 +0000 Subject: [PATCH] deploy: af8f1d5a8742cd05a0c29e3286e9f36b60bf6d42 --- classes/CMSError.html | 4 ++-- classes/Cargo.html | 12 ++++++------ classes/CargoCollectionAuthorization.html | 12 ++++++------ classes/CargoCollectionRequest.html | 4 ++-- classes/CargoMessageSet.html | 8 ++++---- classes/Certificate.html | 16 ++++++++-------- classes/CertificateError.html | 4 ++-- classes/CertificateRotation.html | 4 ++-- classes/CertificateStore.html | 6 +++--- classes/CertificationPath.html | 4 ++-- classes/Channel.html | 6 +++--- classes/Endpoint.html | 12 ++++++------ classes/EndpointManager.html | 8 ++++---- classes/EnvelopedData.html | 10 +++++----- classes/Gateway.html | 10 +++++----- classes/GatewayChannel.html | 6 +++--- classes/GatewayManager.html | 8 ++++---- classes/HandshakeChallenge.html | 4 ++-- classes/HandshakeResponse.html | 4 ++-- classes/InternetAddressingError.html | 4 ++-- classes/InvalidMessageError.html | 4 ++-- classes/InvalidNodeConnectionParams.html | 4 ++-- classes/KeyStoreError.html | 4 ++-- classes/MockCertificateStore.html | 6 +++--- classes/MockKeyStoreSet.html | 4 ++-- classes/MockPrivateKeyStore.html | 10 +++++----- classes/MockPublicKeyStore.html | 4 ++-- classes/NodeConnectionParams.html | 4 ++-- classes/NodeError.html | 4 ++-- classes/Parcel.html | 12 ++++++------ classes/ParcelCollection.html | 4 ++-- classes/ParcelCollectionAck.html | 4 ++-- classes/ParcelCollectionHandshakeSigner.html | 6 +++--- classes/ParcelCollectionHandshakeVerifier.html | 6 +++--- classes/ParcelDelivery.html | 4 ++-- classes/ParcelDeliverySigner.html | 6 +++--- classes/ParcelDeliveryVerifier.html | 6 +++--- classes/PrivateEndpointConnParams.html | 4 ++-- classes/PrivateGateway.html | 14 +++++++------- classes/PrivateGatewayManager.html | 8 ++++---- classes/PrivateInternetGatewayChannel.html | 14 +++++++------- classes/PrivateKey.html | 4 ++-- classes/PrivateKeyStore.html | 10 +++++----- classes/PrivateNodeRegistration.html | 4 ++-- .../PrivateNodeRegistrationAuthorization.html | 4 ++-- classes/PrivateNodeRegistrationRequest.html | 4 ++-- classes/PublicKeyStore.html | 4 ++-- classes/RAMFError.html | 4 ++-- classes/RAMFMessage.html | 12 ++++++------ classes/RAMFSyntaxError.html | 4 ++-- classes/RAMFValidationError.html | 4 ++-- classes/RelaynetError.html | 4 ++-- classes/RsaPssPrivateKey.html | 4 ++-- classes/ServiceMessage.html | 8 ++++---- classes/SessionEnvelopedData.html | 14 +++++++------- classes/SessionKeyPair.html | 6 +++--- classes/SessionlessEnvelopedData.html | 12 ++++++------ classes/UnknownKeyError.html | 4 ++-- classes/UnreachableResolverError.html | 4 ++-- enums/BindingType.html | 4 ++-- enums/StreamingMode.html | 4 ++-- functions/derDeserializeECDHPrivateKey.html | 2 +- functions/derDeserializeECDHPublicKey.html | 2 +- functions/derDeserializeRSAPrivateKey.html | 2 +- functions/derDeserializeRSAPublicKey.html | 2 +- functions/derSerializePrivateKey.html | 2 +- functions/derSerializePublicKey.html | 2 +- functions/generateECDHKeyPair.html | 2 +- functions/generateRSAKeyPair.html | 2 +- functions/getIdFromIdentityKey.html | 2 +- functions/getPublicKeyDigest.html | 2 +- functions/getPublicKeyDigestHex.html | 2 +- functions/getRSAPublicKeyFromPrivate.html | 2 +- functions/issueDeliveryAuthorization.html | 2 +- functions/issueEndpointCertificate.html | 2 +- functions/issueGatewayCertificate.html | 2 +- functions/resolveInternetAddress.html | 2 +- interfaces/CargoDeliveryRequest.html | 4 ++-- interfaces/CargoRelayClient.html | 8 ++++---- .../DeliveryAuthorizationIssuanceOptions.html | 4 ++-- interfaces/EncryptionOptions.html | 4 ++-- .../EndpointCertificateIssuanceOptions.html | 4 ++-- interfaces/GSCClient.html | 4 ++-- .../GatewayCertificateIssuanceOptions.html | 4 ++-- interfaces/IdentityKeyPair.html | 4 ++-- interfaces/KeyStoreSet.html | 4 ++-- interfaces/NodeCryptoOptions.html | 4 ++-- interfaces/Payload.html | 4 ++-- interfaces/PublicNodeAddress.html | 4 ++-- interfaces/RSAKeyGenOptions.html | 4 ++-- interfaces/Recipient.html | 4 ++-- interfaces/SessionEncryptionResult.html | 8 ++++---- interfaces/SessionKey.html | 4 ++-- interfaces/SessionPrivateKeyData.html | 4 ++-- interfaces/SessionPublicKeyData.html | 4 ++-- interfaces/SignatureOptions.html | 4 ++-- types/CargoMessageSetItem.html | 2 +- types/CargoMessageStream.html | 2 +- types/ECDHCurveName.html | 2 +- types/LocalCargoId.html | 2 +- variables/MAX_RAMF_MESSAGE_LENGTH.html | 2 +- variables/MAX_SDU_PLAINTEXT_LENGTH.html | 2 +- 102 files changed, 262 insertions(+), 262 deletions(-) diff --git a/classes/CMSError.html b/classes/CMSError.html index 6b3c02a47..273b7a431 100644 --- a/classes/CMSError.html +++ b/classes/CMSError.html @@ -1,5 +1,5 @@ CMSError | @relaycorp/relaynet-core

Error while processing CMS value.

-

Hierarchy

Constructors

Hierarchy

Constructors

Properties

cause message stack? @@ -17,5 +17,5 @@ info

Constructors

  • Parameters

    • options: Error | Options
    • message: string
    • Rest ...params: any[]

    Returns CMSError

  • Parameters

    • Optional message: string
    • Rest ...params: any[]

    Returns CMSError

Properties

cause: (() => undefined | Error)

Type declaration

    • (): undefined | Error
    • Returns undefined | Error

message: string
stack?: string
VError: typeof VError
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    +
stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    • err: Error

    Returns null | Error

  • Parameters

    • err: Error
    • func: ((err) => void)
        • (err): void
        • Parameters

          • err: Error

          Returns void

    Returns void

  • Type Parameters

    • T extends Error

    Parameters

    • errors: T[]

    Returns null | T | MultiError

  • Parameters

    • err: Error
    • name: string

    Returns null | Error

  • Parameters

    • err: Error

    Returns string

  • Parameters

    • err: Error
    • name: string

    Returns boolean

  • Parameters

    • err: Error

    Returns Info

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/Cargo.html b/classes/Cargo.html index 8030e9e46..67b2a7072 100644 --- a/classes/Cargo.html +++ b/classes/Cargo.html @@ -1,5 +1,5 @@ Cargo | @relaycorp/relaynet-core

Relaynet Abstract Message Format, version 1.

-

Hierarchy

Constructors

Hierarchy

Constructors

Properties

Constructors

Properties

creationDate: Date
id: string
payloadSerialized: Buffer
recipient: Recipient
senderCaCertificateChain: readonly Certificate[]
senderCertificate: Certificate
ttl: number

Accessors

Methods

  • Return certification path between sender's certificate and one certificate in +

Constructors

Properties

creationDate: Date
id: string
payloadSerialized: Buffer
recipient: Recipient
senderCaCertificateChain: readonly Certificate[]
senderCertificate: Certificate
ttl: number

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/CargoCollectionAuthorization.html b/classes/CargoCollectionAuthorization.html index ce4438857..46621fdde 100644 --- a/classes/CargoCollectionAuthorization.html +++ b/classes/CargoCollectionAuthorization.html @@ -1,5 +1,5 @@ CargoCollectionAuthorization | @relaycorp/relaynet-core

Relaynet Abstract Message Format, version 1.

-

Hierarchy

Constructors

Hierarchy

Constructors

Properties

Constructors

Properties

creationDate: Date
id: string
payloadSerialized: Buffer
recipient: Recipient
senderCaCertificateChain: readonly Certificate[]
senderCertificate: Certificate
ttl: number

Accessors

Methods

  • Return certification path between sender's certificate and one certificate in +

Constructors

Properties

creationDate: Date
id: string
payloadSerialized: Buffer
recipient: Recipient
senderCaCertificateChain: readonly Certificate[]
senderCertificate: Certificate
ttl: number

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/CargoCollectionRequest.html b/classes/CargoCollectionRequest.html index a58459532..1440ac20c 100644 --- a/classes/CargoCollectionRequest.html +++ b/classes/CargoCollectionRequest.html @@ -1,8 +1,8 @@ CargoCollectionRequest | @relaycorp/relaynet-core

Plaintext representation of a RAMF payload.

Not to be confused with the final RAMF payload; e.g., a CMS EnvelopedData value containing the ciphertext representation of the plaintext.

-

Hierarchy

  • CargoCollectionRequest

Implements

Constructors

Hierarchy

  • CargoCollectionRequest

Implements

Constructors

Properties

cargoDeliveryAuthorization: Certificate

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

cargoDeliveryAuthorization: Certificate

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/CargoMessageSet.html b/classes/CargoMessageSet.html index 89fd3d126..9f14b0baf 100644 --- a/classes/CargoMessageSet.html +++ b/classes/CargoMessageSet.html @@ -1,16 +1,16 @@ CargoMessageSet | @relaycorp/relaynet-core

Plaintext representation of the payload in a cargo message.

That is, the set of RAMF messages the cargo contains.

-

Hierarchy

  • CargoMessageSet

Implements

Constructors

Hierarchy

  • CargoMessageSet

Implements

Constructors

Properties

messages: readonly ArrayBuffer[]
MAX_MESSAGE_LENGTH: number = ...

Maximum number of octets for any serialized message to be included in a cargo.

+

Constructors

Properties

messages: readonly ArrayBuffer[]
MAX_MESSAGE_LENGTH: number = ...

Maximum number of octets for any serialized message to be included in a cargo.

This is the result of subtracting the TLVs for the SET and OCTET STRING values from the maximum size of an SDU to be encrypted.

-

Methods

  • Parameters

    • messagesWithExpiryDate: AsyncIterable<MessageWithExpiryDate>

    Returns AsyncIterable<MessageWithExpiryDate>

Methods

  • Parameters

    • messagesWithExpiryDate: AsyncIterable<MessageWithExpiryDate>

    Returns AsyncIterable<MessageWithExpiryDate>

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/Certificate.html b/classes/Certificate.html index fb7ca964c..eb498da11 100644 --- a/classes/Certificate.html +++ b/classes/Certificate.html @@ -1,7 +1,7 @@ Certificate | @relaycorp/relaynet-core

X.509 Certificate.

This is a high-level class on top of PKI.js Certificate, to make the use of Relaynet certificates easy and safe.

-

Hierarchy

  • Certificate

Accessors

Hierarchy

  • Certificate

Accessors

Methods

  • Return the certification path (aka "certificate chain") if this certificate can be trusted.

    +

Accessors

Methods

  • Return the certification path (aka "certificate chain") if this certificate can be trusted.

    Parameters

    • intermediateCaCertificates: readonly Certificate[]

      The alleged chain for the certificate

    • trustedCertificates: readonly Certificate[]

      The collection of certificates that are actually trusted

    Returns Promise<readonly Certificate[]>

    Throws

    CertificateError when this certificate is not on a certificate path from a CA in trustedCertificates

    -
  • Return serial number.

    This doesn't return a number or BigInt because the serial number could require more than 8 octets (which is the maximum number of octets required to represent a 64-bit unsigned integer).

    -

    Returns Buffer

Generated using TypeDoc

\ No newline at end of file +

Returns Certificate

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/CertificateError.html b/classes/CertificateError.html index 01bc82018..7d541b539 100644 --- a/classes/CertificateError.html +++ b/classes/CertificateError.html @@ -1,4 +1,4 @@ -CertificateError | @relaycorp/relaynet-core

Hierarchy

Constructors

constructor +CertificateError | @relaycorp/relaynet-core

Hierarchy

Constructors

Properties

cause message stack? @@ -16,5 +16,5 @@ info

Constructors

Properties

cause: (() => undefined | Error)

Type declaration

    • (): undefined | Error
    • Returns undefined | Error

message: string
stack?: string
VError: typeof VError
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    +
stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    • err: Error

    Returns null | Error

  • Parameters

    • err: Error
    • func: ((err) => void)
        • (err): void
        • Parameters

          • err: Error

          Returns void

    Returns void

  • Type Parameters

    • T extends Error

    Parameters

    • errors: T[]

    Returns null | T | MultiError

  • Parameters

    • err: Error
    • name: string

    Returns null | Error

  • Parameters

    • err: Error

    Returns string

  • Parameters

    • err: Error
    • name: string

    Returns boolean

  • Parameters

    • err: Error

    Returns Info

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/CertificateRotation.html b/classes/CertificateRotation.html index 9411847d2..990e51e12 100644 --- a/classes/CertificateRotation.html +++ b/classes/CertificateRotation.html @@ -1,5 +1,5 @@ -CertificateRotation | @relaycorp/relaynet-core

Hierarchy

  • CertificateRotation

Constructors

constructor +CertificateRotation | @relaycorp/relaynet-core

Hierarchy

  • CertificateRotation

Constructors

Properties

Methods

Constructors

Properties

certificationPath: CertificationPath

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

certificationPath: CertificationPath

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/CertificateStore.html b/classes/CertificateStore.html index 01af2deb9..7f8566496 100644 --- a/classes/CertificateStore.html +++ b/classes/CertificateStore.html @@ -1,12 +1,12 @@ CertificateStore | @relaycorp/relaynet-core

Class CertificateStoreAbstract

Store of certificates.

-

Hierarchy

Constructors

Hierarchy

Constructors

Methods

  • Store subjectCertificate as long as it's still valid.

    +

Constructors

Methods

  • Store subjectCertificate as long as it's still valid.

    Parameters

    • path: CertificationPath
    • issuerId: string

      Whilst we could take the {issuerId} from the leaf certificate in the {path}, we must not rely on it because we don't have enough information/context here to be certain that the value is legitimate. Additionally, the value has to be present in an X.509 extension, which could be absent if produced by a non-compliant implementation.

      -

    Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/CertificationPath.html b/classes/CertificationPath.html index 1a6d4c2c2..6483eaf0c 100644 --- a/classes/CertificationPath.html +++ b/classes/CertificationPath.html @@ -1,6 +1,6 @@ -CertificationPath | @relaycorp/relaynet-core

Hierarchy

  • CertificationPath

Constructors

constructor +CertificationPath | @relaycorp/relaynet-core

Hierarchy

  • CertificationPath

Constructors

Properties

certificateAuthorities: readonly Certificate[]
leafCertificate: Certificate

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

certificateAuthorities: readonly Certificate[]
leafCertificate: Certificate

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/Channel.html b/classes/Channel.html index 5ef5365c0..2e0cd4953 100644 --- a/classes/Channel.html +++ b/classes/Channel.html @@ -1,4 +1,4 @@ -Channel | @relaycorp/relaynet-core

Class Channel<Payload, PeerAddress>Abstract

Type Parameters

  • Payload extends Payload

  • PeerAddress extends PeerInternetAddress

Hierarchy

Constructors

constructor +Channel | @relaycorp/relaynet-core

Class Channel<Payload, PeerAddress>Abstract

Type Parameters

  • Payload extends Payload

  • PeerAddress extends PeerInternetAddress

Hierarchy

Constructors

Properties

cryptoOptions: Partial<NodeCryptoOptions> = {}
deliveryAuthPath: CertificationPath
keyStores: KeyStoreSet
node: Node<Payload, PeerAddress>
peer: Peer<PeerAddress>

Methods

  • Generate and serialise a message with the given payload.

    +

Constructors

Properties

cryptoOptions: Partial<NodeCryptoOptions> = {}
deliveryAuthPath: CertificationPath
keyStores: KeyStoreSet
node: Node<Payload, PeerAddress>
peer: Peer<PeerAddress>

Methods

  • Generate and serialise a message with the given payload.

    Parameters

    • payload: ArrayBuffer | Payload

      The payload to encrypt and encapsulate

    • messageConstructor: RAMFMessageConstructor<Payload>

      The message class constructor

      -
    • options: Partial<Omit<MessageOptions, "senderCaCertificateChain">> = {}

    Returns Promise<ArrayBuffer>

Generated using TypeDoc

\ No newline at end of file +
  • options: Partial<Omit<MessageOptions, "senderCaCertificateChain">> = {}
  • Returns Promise<ArrayBuffer>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/Endpoint.html b/classes/Endpoint.html index da5e2d4bc..7f5c6b84a 100644 --- a/classes/Endpoint.html +++ b/classes/Endpoint.html @@ -1,4 +1,4 @@ -Endpoint | @relaycorp/relaynet-core

    Class EndpointAbstract

    Hierarchy

    Constructors

    constructor +Endpoint | @relaycorp/relaynet-core

    Class EndpointAbstract

    Hierarchy

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions>
    id: string
    identityKeyPair: CryptoKeyPair
    keyStores: KeyStoreSet

    Methods

    • Generate and store a new session key.

      +

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions>
    id: string
    identityKeyPair: CryptoKeyPair
    keyStores: KeyStoreSet

    Methods

    • Generate and store a new session key.

      Parameters

      • Optional peerId: string

        The peer to bind the key to, unless it's an initial key

        -

      Returns Promise<SessionKey>

    • Type Parameters

      • S extends Signer<S>

      Parameters

      • peerId: string
      • signerClass: (new (certificate, privateKey) => S)
          • new (certificate, privateKey): S
          • Parameters

            Returns S

      Returns Promise<null | S>

    • Decrypt and return the payload in the message.

      +

    Returns Promise<SessionKey>

    • Type Parameters

      • S extends Signer<S>

      Parameters

      • peerId: string
      • signerClass: (new (certificate, privateKey) => S)
          • new (certificate, privateKey): S
          • Parameters

            Returns S

      Returns Promise<null | S>

    • Decrypt and return the payload in the message.

      Also store the session key from the sender.

      -

      Type Parameters

      Parameters

      Returns Promise<P>

    • Validate the message and report whether it's correctly bound for this node.

      +

      Type Parameters

      Parameters

      Returns Promise<P>

    • Validate the message and report whether it's correctly bound for this node.

      Parameters

      Returns Promise<void>

      Throws

      If the message is invalid

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/EndpointManager.html b/classes/EndpointManager.html index 1952e0888..8540e52ef 100644 --- a/classes/EndpointManager.html +++ b/classes/EndpointManager.html @@ -1,6 +1,6 @@ -EndpointManager | @relaycorp/relaynet-core

    Class EndpointManagerAbstract

    Hierarchy

    Constructors

    constructor +EndpointManager | @relaycorp/relaynet-core

    Class EndpointManagerAbstract

    Hierarchy

    Constructors

    Properties

    Methods

    get -

    Constructors

    Properties

    keyStores: KeyStoreSet

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    keyStores: KeyStoreSet

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/EnvelopedData.html b/classes/EnvelopedData.html index 66d0f1fb3..00be74f88 100644 --- a/classes/EnvelopedData.html +++ b/classes/EnvelopedData.html @@ -1,18 +1,18 @@ -EnvelopedData | @relaycorp/relaynet-core

    Class EnvelopedDataAbstract

    Hierarchy

    Methods

    decrypt +EnvelopedData | @relaycorp/relaynet-core

    Class EnvelopedDataAbstract

    Hierarchy

    Methods

    • Return the plaintext for the ciphertext contained in the current EnvelopedData value.

      Parameters

      • privateKey: CryptoKey

        The private key to decrypt the ciphertext.

        -

      Returns Promise<ArrayBuffer>

    • Return the id of the recipient's key used to encrypt the content.

      +

    Returns Promise<ArrayBuffer>

    • Return the id of the recipient's key used to encrypt the content.

      This id will often be the recipient's certificate's serial number, in which case the issuer will be ignored: This method is meant to be used by the recipient so it can look up the corresponding private key to decrypt the content. We could certainly extract the issuer to verify it matches the expected one, but if the id doesn't match any key decryption won't even be attempted, so there's really no risk from ignoring the issuer.

      -

      Returns Buffer

    • Return the DER serialization of the current EnvelopedData value.

      It'll be wrapped around a ContentInfo value.

      -

      Returns ArrayBuffer

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns EnvelopedData

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/Gateway.html b/classes/Gateway.html index 760ffd76a..3e765caab 100644 --- a/classes/Gateway.html +++ b/classes/Gateway.html @@ -1,4 +1,4 @@ -Gateway | @relaycorp/relaynet-core

    Class Gateway<PeerAddress>Abstract

    Type Parameters

    • PeerAddress extends PeerInternetAddress

    Hierarchy

    Constructors

    constructor +Gateway | @relaycorp/relaynet-core

    Class Gateway<PeerAddress>Abstract

    Type Parameters

    • PeerAddress extends PeerInternetAddress

    Hierarchy

    Constructors

    Properties

    cryptoOptions id identityKeyPair @@ -12,12 +12,12 @@

    Constructors

    • Type Parameters

      • PeerAddress extends PeerInternetAddress

      Parameters

      Returns Gateway<PeerAddress>

    Properties

    cryptoOptions: Partial<NodeCryptoOptions>
    id: string
    identityKeyPair: CryptoKeyPair
    keyStores: KeyStoreSet

    Methods

    Properties

    cryptoOptions: Partial<NodeCryptoOptions>
    id: string
    identityKeyPair: CryptoKeyPair
    keyStores: KeyStoreSet

    Methods

    • Generate and store a new session key.

      Parameters

      • Optional peerId: string

        The peer to bind the key to, unless it's an initial key

        -

      Returns Promise<SessionKey>

    • Parameters

      • peerId: string
      • peerInternetAddress: PeerAddress

      Returns Promise<null | Channel<GatewayPayload, PeerAddress>>

    • Type Parameters

      • S extends Signer<S>

      Parameters

      • peerId: string
      • signerClass: (new (certificate, privateKey) => S)
          • new (certificate, privateKey): S
          • Parameters

            Returns S

      Returns Promise<null | S>

    • Type Parameters

      • V extends Verifier<V>

      Parameters

      • peerId: string
      • verifierClass: (new (trustedCertificates) => V)
          • new (trustedCertificates): V
          • Parameters

            Returns V

      Returns Promise<V>

    • Decrypt and return the payload in the message.

      +

    Returns Promise<SessionKey>

    • Parameters

      • peerId: string
      • peerInternetAddress: PeerAddress

      Returns Promise<null | Channel<GatewayPayload, PeerAddress>>

    • Type Parameters

      • S extends Signer<S>

      Parameters

      • peerId: string
      • signerClass: (new (certificate, privateKey) => S)
          • new (certificate, privateKey): S
          • Parameters

            Returns S

      Returns Promise<null | S>

    • Type Parameters

      • V extends Verifier<V>

      Parameters

      • peerId: string
      • verifierClass: (new (trustedCertificates) => V)
          • new (trustedCertificates): V
          • Parameters

            Returns V

      Returns Promise<V>

    • Decrypt and return the payload in the message.

      Also store the session key from the sender.

      -

      Type Parameters

      • P extends GatewayPayload

      Parameters

      Returns Promise<P>

    • Validate the message and report whether it's correctly bound for this node.

      +

      Type Parameters

      • P extends GatewayPayload

      Parameters

      Returns Promise<P>

    • Validate the message and report whether it's correctly bound for this node.

      Parameters

      • message: RAMFMessage<GatewayPayload>

        The message to validate

      • Optional trustedCertificates: readonly Certificate[]

        If authorisation should be verified

      Returns Promise<void>

      Throws

      If the message is invalid

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/GatewayChannel.html b/classes/GatewayChannel.html index d5a501ce4..3f48054c7 100644 --- a/classes/GatewayChannel.html +++ b/classes/GatewayChannel.html @@ -1,5 +1,5 @@ GatewayChannel | @relaycorp/relaynet-core

    Class GatewayChannel<PeerAddress>Abstract

    Channel whose node is a gateway.

    -

    Type Parameters

    • PeerAddress extends PeerInternetAddress

    Hierarchy

    • Channel<GatewayPayload, PeerAddress>
      • GatewayChannel

    Constructors

    Type Parameters

    • PeerAddress extends PeerInternetAddress

    Hierarchy

    • Channel<GatewayPayload, PeerAddress>
      • GatewayChannel

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions> = {}
    deliveryAuthPath: CertificationPath
    keyStores: KeyStoreSet
    node: Node<GatewayPayload, PeerAddress>
    peer: Peer<PeerAddress>

    Methods

    • Generate and serialise a message with the given payload.

      +

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions> = {}
    deliveryAuthPath: CertificationPath
    keyStores: KeyStoreSet
    node: Node<GatewayPayload, PeerAddress>
    peer: Peer<PeerAddress>

    Methods

    • Generate and serialise a message with the given payload.

      Parameters

      • payload: ArrayBuffer | GatewayPayload

        The payload to encrypt and encapsulate

      • messageConstructor: RAMFMessageConstructor<GatewayPayload>

        The message class constructor

        -
      • options: Partial<Omit<MessageOptions, "senderCaCertificateChain">> = {}

      Returns Promise<ArrayBuffer>

    Generated using TypeDoc

    \ No newline at end of file +
  • options: Partial<Omit<MessageOptions, "senderCaCertificateChain">> = {}
  • Returns Promise<ArrayBuffer>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/GatewayManager.html b/classes/GatewayManager.html index 8103619a7..cf2f4ee3e 100644 --- a/classes/GatewayManager.html +++ b/classes/GatewayManager.html @@ -1,9 +1,9 @@ -GatewayManager | @relaycorp/relaynet-core

    Class GatewayManager<PeerAddress>Abstract

    Type Parameters

    • PeerAddress extends PeerInternetAddress

    Hierarchy

    Constructors

    constructor +GatewayManager | @relaycorp/relaynet-core

    Class GatewayManager<PeerAddress>Abstract

    Type Parameters

    • PeerAddress extends PeerInternetAddress

    Hierarchy

    Constructors

    Properties

    Methods

    Constructors

    Properties

    keyStores: KeyStoreSet

    Methods

    • Get node by id.

      -

      Parameters

      • id: string

      Returns Promise<null | Node<GatewayPayload, PeerAddress>>

    • Get node by id but return instance of custom customNodeClass.

      -

      Type Parameters

      • N extends Node<GatewayPayload, PeerAddress, N>

      Parameters

      • id: string
      • customNodeClass: NodeConstructor<GatewayPayload, PeerAddress>

      Returns Promise<null | N>

    Generated using TypeDoc

    \ No newline at end of file +>.constructor

    Properties

    keyStores: KeyStoreSet

    Methods

    • Get node by id.

      +

      Parameters

      • id: string

      Returns Promise<null | Node<GatewayPayload, PeerAddress>>

    • Get node by id but return instance of custom customNodeClass.

      +

      Type Parameters

      • N extends Node<GatewayPayload, PeerAddress, N>

      Parameters

      • id: string
      • customNodeClass: NodeConstructor<GatewayPayload, PeerAddress>

      Returns Promise<null | N>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/HandshakeChallenge.html b/classes/HandshakeChallenge.html index a828fea4f..98e6f03c0 100644 --- a/classes/HandshakeChallenge.html +++ b/classes/HandshakeChallenge.html @@ -1,5 +1,5 @@ -HandshakeChallenge | @relaycorp/relaynet-core

    Hierarchy

    • HandshakeChallenge

    Constructors

    constructor +HandshakeChallenge | @relaycorp/relaynet-core

    Hierarchy

    • HandshakeChallenge

    Constructors

    Properties

    Methods

    Constructors

    Properties

    nonce: ArrayBuffer

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    nonce: ArrayBuffer

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/HandshakeResponse.html b/classes/HandshakeResponse.html index b6a549756..f9ba2539e 100644 --- a/classes/HandshakeResponse.html +++ b/classes/HandshakeResponse.html @@ -1,5 +1,5 @@ -HandshakeResponse | @relaycorp/relaynet-core

    Hierarchy

    • HandshakeResponse

    Constructors

    constructor +HandshakeResponse | @relaycorp/relaynet-core

    Hierarchy

    • HandshakeResponse

    Constructors

    Properties

    Methods

    Constructors

    Properties

    nonceSignatures: readonly ArrayBuffer[]

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    nonceSignatures: readonly ArrayBuffer[]

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/InternetAddressingError.html b/classes/InternetAddressingError.html index 212856df5..5580a9e91 100644 --- a/classes/InternetAddressingError.html +++ b/classes/InternetAddressingError.html @@ -1,4 +1,4 @@ -InternetAddressingError | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +InternetAddressingError | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -16,5 +16,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/InvalidMessageError.html b/classes/InvalidMessageError.html index 38f92a1c0..5f624fe67 100644 --- a/classes/InvalidMessageError.html +++ b/classes/InvalidMessageError.html @@ -1,5 +1,5 @@ InvalidMessageError | @relaycorp/relaynet-core

    Error while processing message.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -17,5 +17,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/InvalidNodeConnectionParams.html b/classes/InvalidNodeConnectionParams.html index f1d56ee84..8460760d9 100644 --- a/classes/InvalidNodeConnectionParams.html +++ b/classes/InvalidNodeConnectionParams.html @@ -1,4 +1,4 @@ -InvalidNodeConnectionParams | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +InvalidNodeConnectionParams | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -16,5 +16,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/KeyStoreError.html b/classes/KeyStoreError.html index 9c2c81f30..2da421f15 100644 --- a/classes/KeyStoreError.html +++ b/classes/KeyStoreError.html @@ -1,5 +1,5 @@ KeyStoreError | @relaycorp/relaynet-core

    Error thrown when there was a failure in the communication with the backing service.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -17,5 +17,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/MockCertificateStore.html b/classes/MockCertificateStore.html index 49bcd0c47..0aa0bc19c 100644 --- a/classes/MockCertificateStore.html +++ b/classes/MockCertificateStore.html @@ -1,5 +1,5 @@ MockCertificateStore | @relaycorp/relaynet-core

    Store of certificates.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    Methods

    Constructors

    Properties

    dataBySubjectId: {
        [nodeId: string]: MockStoredCertificateData[];
    } = {}

    Type declaration

    • [nodeId: string]: MockStoredCertificateData[]

    Methods

    • Store subjectCertificate as long as it's still valid.

      +

    Constructors

    Properties

    dataBySubjectId: {
        [nodeId: string]: MockStoredCertificateData[];
    } = {}

    Type declaration

    • [nodeId: string]: MockStoredCertificateData[]

    Methods

    • Store subjectCertificate as long as it's still valid.

      Parameters

      • path: CertificationPath
      • issuerId: string

        Whilst we could take the {issuerId} from the leaf certificate in the {path}, we must not rely on it because we don't have enough information/context here to be certain that the value is legitimate. Additionally, the value has to be present in an X.509 extension, which could be absent if produced by a non-compliant implementation.

        -

      Returns Promise<void>

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Promise<void>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/MockKeyStoreSet.html b/classes/MockKeyStoreSet.html index 781261556..1c8edf71f 100644 --- a/classes/MockKeyStoreSet.html +++ b/classes/MockKeyStoreSet.html @@ -1,6 +1,6 @@ -MockKeyStoreSet | @relaycorp/relaynet-core

    Hierarchy

    • MockKeyStoreSet

    Implements

    Constructors

    constructor +MockKeyStoreSet | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    certificateStore: MockCertificateStore = ...
    privateKeyStore: MockPrivateKeyStore = ...
    publicKeyStore: MockPublicKeyStore = ...

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/MockPrivateKeyStore.html b/classes/MockPrivateKeyStore.html index c6bde18e1..8cf650f55 100644 --- a/classes/MockPrivateKeyStore.html +++ b/classes/MockPrivateKeyStore.html @@ -1,4 +1,4 @@ -MockPrivateKeyStore | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +MockPrivateKeyStore | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    identityKeys: {
        [nodeId: string]: CryptoKey;
    } = {}

    Type declaration

    • [nodeId: string]: CryptoKey
    sessionKeys: {
        [keyId: string]: SessionPrivateKeyData;
    } = {}

    Type declaration

    Methods

    • Return the private component of a node key pair if it exists.

      +

    Constructors

    Properties

    identityKeys: {
        [nodeId: string]: CryptoKey;
    } = {}

    Type declaration

    • [nodeId: string]: CryptoKey
    sessionKeys: {
        [keyId: string]: SessionPrivateKeyData;
    } = {}

    Type declaration

    Methods

    • Retrieve private session key, regardless of whether it's an initial key or not.

      Parameters

      • keyId: Buffer

        The key pair id (typically the serial number)

      • nodeId: string

        The id of the node that owns the key

      • peerId: string

        The id of the recipient, in case the key is bound to a recipient

      Returns Promise<CryptoKey>

      Throws

      UnknownKeyError when the key does not exist

      Throws

      PrivateKeyStoreError when the look-up could not be done

      -
    • Return the private component of an initial session key pair.

      Parameters

      • keyId: Buffer

        The key pair id (typically the serial number)

      • nodeId: string

        The id of the node that owns the key

      Returns Promise<CryptoKey>

      Throws

      UnknownKeyError when the key does not exist

      Throws

      PrivateKeyStoreError when the look-up could not be done

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/MockPublicKeyStore.html b/classes/MockPublicKeyStore.html index 7b33e857e..e94a22462 100644 --- a/classes/MockPublicKeyStore.html +++ b/classes/MockPublicKeyStore.html @@ -1,4 +1,4 @@ -MockPublicKeyStore | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +MockPublicKeyStore | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    identityKeys: {
        [peerId: string]: Buffer;
    } = {}

    Type declaration

    • [peerId: string]: Buffer
    sessionKeys: {
        [peerId: string]: SessionPublicKeyData;
    } = {}

    Type declaration

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    identityKeys: {
        [peerId: string]: Buffer;
    } = {}

    Type declaration

    • [peerId: string]: Buffer
    sessionKeys: {
        [peerId: string]: SessionPublicKeyData;
    } = {}

    Type declaration

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/NodeConnectionParams.html b/classes/NodeConnectionParams.html index 2f0d09af9..8699ff473 100644 --- a/classes/NodeConnectionParams.html +++ b/classes/NodeConnectionParams.html @@ -1,7 +1,7 @@ -NodeConnectionParams | @relaycorp/relaynet-core

    Hierarchy

    • NodeConnectionParams

    Constructors

    constructor +NodeConnectionParams | @relaycorp/relaynet-core

    Hierarchy

    • NodeConnectionParams

    Constructors

    Properties

    identityKey: CryptoKey
    internetAddress: string
    sessionKey: SessionKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    identityKey: CryptoKey
    internetAddress: string
    sessionKey: SessionKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/NodeError.html b/classes/NodeError.html index b0987e760..e8b65eb77 100644 --- a/classes/NodeError.html +++ b/classes/NodeError.html @@ -1,4 +1,4 @@ -NodeError | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +NodeError | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -16,5 +16,5 @@ info

    Constructors

    • Parameters

      • options: Error | Options
      • message: string
      • Rest ...params: any[]

      Returns NodeError

    • Parameters

      • Optional message: string
      • Rest ...params: any[]

      Returns NodeError

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/Parcel.html b/classes/Parcel.html index b7de160d0..068e4d3b1 100644 --- a/classes/Parcel.html +++ b/classes/Parcel.html @@ -1,5 +1,5 @@ Parcel | @relaycorp/relaynet-core

    Relaynet Abstract Message Format, version 1.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    Constructors

    Properties

    creationDate: Date
    id: string
    payloadSerialized: Buffer
    recipient: Recipient
    senderCaCertificateChain: readonly Certificate[]
    senderCertificate: Certificate
    ttl: number

    Accessors

    Methods

    • Return certification path between sender's certificate and one certificate in +

    Constructors

    Properties

    creationDate: Date
    id: string
    payloadSerialized: Buffer
    recipient: Recipient
    senderCaCertificateChain: readonly Certificate[]
    senderCertificate: Certificate
    ttl: number

    Accessors

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ParcelCollection.html b/classes/ParcelCollection.html index 86b0c2202..f021a9c0a 100644 --- a/classes/ParcelCollection.html +++ b/classes/ParcelCollection.html @@ -1,6 +1,6 @@ -ParcelCollection | @relaycorp/relaynet-core

    Hierarchy

    • ParcelCollection

    Constructors

    constructor +ParcelCollection | @relaycorp/relaynet-core

    Hierarchy

    • ParcelCollection

    Constructors

    Properties

    parcelSerialized: ArrayBuffer
    trustedCertificates: readonly Certificate[]

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    parcelSerialized: ArrayBuffer
    trustedCertificates: readonly Certificate[]

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ParcelCollectionAck.html b/classes/ParcelCollectionAck.html index 9752e75ae..b99adfcd3 100644 --- a/classes/ParcelCollectionAck.html +++ b/classes/ParcelCollectionAck.html @@ -1,8 +1,8 @@ -ParcelCollectionAck | @relaycorp/relaynet-core

    Hierarchy

    • ParcelCollectionAck

    Constructors

    constructor +ParcelCollectionAck | @relaycorp/relaynet-core

    Hierarchy

    • ParcelCollectionAck

    Constructors

    Properties

    parcelId: string
    recipientEndpointId: string
    senderEndpointId: string
    FORMAT_SIGNATURE: Uint8Array = ...

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    parcelId: string
    recipientEndpointId: string
    senderEndpointId: string
    FORMAT_SIGNATURE: Uint8Array = ...

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ParcelCollectionHandshakeSigner.html b/classes/ParcelCollectionHandshakeSigner.html index b41bbe712..4b7130cbe 100644 --- a/classes/ParcelCollectionHandshakeSigner.html +++ b/classes/ParcelCollectionHandshakeSigner.html @@ -1,8 +1,8 @@ -ParcelCollectionHandshakeSigner | @relaycorp/relaynet-core

    Class ParcelCollectionHandshakeSigner

    Hierarchy

    • Signer
      • ParcelCollectionHandshakeSigner

    Constructors

    constructor +ParcelCollectionHandshakeSigner | @relaycorp/relaynet-core

    Class ParcelCollectionHandshakeSigner

    Hierarchy

    • Signer
      • ParcelCollectionHandshakeSigner

    Constructors

    Properties

    Methods

    Constructors

    Properties

    certificate: Certificate

    The certificate of the node

    -
    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_COLLECTION_HANDSHAKE

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Returns ParcelCollectionHandshakeSigner

    Properties

    certificate: Certificate

    The certificate of the node

    +
    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_COLLECTION_HANDSHAKE

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ParcelCollectionHandshakeVerifier.html b/classes/ParcelCollectionHandshakeVerifier.html index 7f8fa84d0..51edcbbd3 100644 --- a/classes/ParcelCollectionHandshakeVerifier.html +++ b/classes/ParcelCollectionHandshakeVerifier.html @@ -1,7 +1,7 @@ -ParcelCollectionHandshakeVerifier | @relaycorp/relaynet-core

    Class ParcelCollectionHandshakeVerifier

    Hierarchy

    • Verifier
      • ParcelCollectionHandshakeVerifier

    Constructors

    constructor +ParcelCollectionHandshakeVerifier | @relaycorp/relaynet-core

    Class ParcelCollectionHandshakeVerifier

    Hierarchy

    • Verifier
      • ParcelCollectionHandshakeVerifier

    Constructors

    Properties

    Methods

    Constructors

    Properties

    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_COLLECTION_HANDSHAKE

    Methods

    • Verify signatureSerialized and return the signer's certificate if valid.

      +

    Constructors

    Properties

    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_COLLECTION_HANDSHAKE

    Methods

    • Verify signatureSerialized and return the signer's certificate if valid.

      Parameters

      • signatureSerialized: ArrayBuffer
      • expectedPlaintext: ArrayBuffer

      Returns Promise<Certificate>

      Throws

      CMSError if the signatureSerialized is invalid

      Throws

      CertificateError if the signer isn't trusted

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ParcelDelivery.html b/classes/ParcelDelivery.html index a16cbd16c..05e71d7c5 100644 --- a/classes/ParcelDelivery.html +++ b/classes/ParcelDelivery.html @@ -1,6 +1,6 @@ -ParcelDelivery | @relaycorp/relaynet-core

    Hierarchy

    • ParcelDelivery

    Constructors

    constructor +ParcelDelivery | @relaycorp/relaynet-core

    Hierarchy

    • ParcelDelivery

    Constructors

    Properties

    deliveryId: string
    parcelSerialized: ArrayBuffer

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    deliveryId: string
    parcelSerialized: ArrayBuffer

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ParcelDeliverySigner.html b/classes/ParcelDeliverySigner.html index e08a3b544..d6f6c9fa8 100644 --- a/classes/ParcelDeliverySigner.html +++ b/classes/ParcelDeliverySigner.html @@ -1,8 +1,8 @@ -ParcelDeliverySigner | @relaycorp/relaynet-core

    Hierarchy

    • Signer
      • ParcelDeliverySigner

    Constructors

    constructor +ParcelDeliverySigner | @relaycorp/relaynet-core

    Hierarchy

    • Signer
      • ParcelDeliverySigner

    Constructors

    Properties

    Methods

    Constructors

    Properties

    certificate: Certificate

    The certificate of the node

    -
    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_DELIVERY

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Returns ParcelDeliverySigner

    Properties

    certificate: Certificate

    The certificate of the node

    +
    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_DELIVERY

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ParcelDeliveryVerifier.html b/classes/ParcelDeliveryVerifier.html index b0ceaf354..19644bd73 100644 --- a/classes/ParcelDeliveryVerifier.html +++ b/classes/ParcelDeliveryVerifier.html @@ -1,7 +1,7 @@ -ParcelDeliveryVerifier | @relaycorp/relaynet-core

    Hierarchy

    • Verifier
      • ParcelDeliveryVerifier

    Constructors

    constructor +ParcelDeliveryVerifier | @relaycorp/relaynet-core

    Hierarchy

    • Verifier
      • ParcelDeliveryVerifier

    Constructors

    Properties

    Methods

    Constructors

    Properties

    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_DELIVERY

    Methods

    • Verify signatureSerialized and return the signer's certificate if valid.

      +

    Constructors

    Properties

    oid: string = RELAYNET_OIDS.SIGNATURE.PARCEL_DELIVERY

    Methods

    • Verify signatureSerialized and return the signer's certificate if valid.

      Parameters

      • signatureSerialized: ArrayBuffer
      • expectedPlaintext: ArrayBuffer

      Returns Promise<Certificate>

      Throws

      CMSError if the signatureSerialized is invalid

      Throws

      CertificateError if the signer isn't trusted

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateEndpointConnParams.html b/classes/PrivateEndpointConnParams.html index df2ef798e..59ba5c28b 100644 --- a/classes/PrivateEndpointConnParams.html +++ b/classes/PrivateEndpointConnParams.html @@ -1,8 +1,8 @@ -PrivateEndpointConnParams | @relaycorp/relaynet-core

    Hierarchy

    • PrivateEndpointConnParams

    Constructors

    constructor +PrivateEndpointConnParams | @relaycorp/relaynet-core

    Hierarchy

    • PrivateEndpointConnParams

    Constructors

    Properties

    deliveryAuth: CertificationPath
    identityKey: CryptoKey
    internetGatewayAddress: string
    sessionKey?: SessionKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    deliveryAuth: CertificationPath
    identityKey: CryptoKey
    internetGatewayAddress: string
    sessionKey?: SessionKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateGateway.html b/classes/PrivateGateway.html index 2530e94f6..c11fdfffa 100644 --- a/classes/PrivateGateway.html +++ b/classes/PrivateGateway.html @@ -1,4 +1,4 @@ -PrivateGateway | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +PrivateGateway | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions>
    id: string
    identityKeyPair: CryptoKeyPair
    keyStores: KeyStoreSet

    Methods

    • Generate and store a new session key.

      +

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions>
    id: string
    identityKeyPair: CryptoKeyPair
    keyStores: KeyStoreSet

    Methods

    • Type Parameters

      • S extends Signer<S>

      Parameters

      • peerId: string
      • signerClass: (new (certificate, privateKey) => S)
          • new (certificate, privateKey): S
          • Parameters

            Returns S

      Returns Promise<null | S>

    • Type Parameters

      • V extends Verifier<V>

      Parameters

      • peerId: string
      • verifierClass: (new (trustedCertificates) => V)
          • new (trustedCertificates): V
          • Parameters

            Returns V

      Returns Promise<V>

    • Produce a PrivateNodeRegistrationRequest to register with a Internet gateway.

      -

      Parameters

      • authorizationSerialized: ArrayBuffer

      Returns Promise<ArrayBuffer>

    • Create channel with Internet gateway using registration details.

      +

    Returns Promise<SessionKey>

    • Type Parameters

      • S extends Signer<S>

      Parameters

      • peerId: string
      • signerClass: (new (certificate, privateKey) => S)
          • new (certificate, privateKey): S
          • Parameters

            Returns S

      Returns Promise<null | S>

    • Type Parameters

      • V extends Verifier<V>

      Parameters

      • peerId: string
      • verifierClass: (new (trustedCertificates) => V)
          • new (trustedCertificates): V
          • Parameters

            Returns V

      Returns Promise<V>

    • Produce a PrivateNodeRegistrationRequest to register with a Internet gateway.

      +

      Parameters

      • authorizationSerialized: ArrayBuffer

      Returns Promise<ArrayBuffer>

    • Create channel with Internet gateway using registration details.

      Parameters

      Returns Promise<void>

      Throws

      NodeError if the internetGatewayIdentityCertificate didn't issue deliveryAuthorization

      -
    • Validate the message and report whether it's correctly bound for this node.

      Parameters

      • message: RAMFMessage<GatewayPayload>

        The message to validate

      • Optional trustedCertificates: readonly Certificate[]

        If authorisation should be verified

      Returns Promise<void>

      Throws

      If the message is invalid

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateGatewayManager.html b/classes/PrivateGatewayManager.html index e595c58af..6c9d600c0 100644 --- a/classes/PrivateGatewayManager.html +++ b/classes/PrivateGatewayManager.html @@ -1,6 +1,6 @@ -PrivateGatewayManager | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +PrivateGatewayManager | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    Methods

    get -

    Constructors

    Properties

    keyStores: KeyStoreSet

    Methods

    • Get node by id.

      -

      Parameters

      • id: string

      Returns Promise<null | Node<GatewayPayload, string>>

    • Get node by id but return instance of custom customNodeClass.

      -

      Type Parameters

      • N extends Node<GatewayPayload, string, N>

      Parameters

      • id: string
      • customNodeClass: NodeConstructor<GatewayPayload, string>

      Returns Promise<null | N>

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    keyStores: KeyStoreSet

    Methods

    • Get node by id.

      +

      Parameters

      • id: string

      Returns Promise<null | Node<GatewayPayload, string>>

    • Get node by id but return instance of custom customNodeClass.

      +

      Type Parameters

      • N extends Node<GatewayPayload, string, N>

      Parameters

      • id: string
      • customNodeClass: NodeConstructor<GatewayPayload, string>

      Returns Promise<null | N>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateInternetGatewayChannel.html b/classes/PrivateInternetGatewayChannel.html index c2411405b..8abab1d79 100644 --- a/classes/PrivateInternetGatewayChannel.html +++ b/classes/PrivateInternetGatewayChannel.html @@ -1,5 +1,5 @@ PrivateInternetGatewayChannel | @relaycorp/relaynet-core

    Channel between a private gateway (the node) and its Internet gateway (the peer).

    -

    Hierarchy

    • PrivateGatewayChannel<string>
      • PrivateInternetGatewayChannel

    Constructors

    Hierarchy

    • PrivateGatewayChannel<string>
      • PrivateInternetGatewayChannel

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions> = {}
    deliveryAuthPath: CertificationPath
    keyStores: KeyStoreSet
    node: Node<GatewayPayload, string>
    peer: Peer<string>

    Methods

    • Generate a PrivateNodeRegistrationAuthorization with the gatewayData and expiryDate.

      -

      Parameters

      • gatewayData: ArrayBuffer
      • expiryDate: Date

      Returns Promise<ArrayBuffer>

    • Generate and serialise a message with the given payload.

      +

    Constructors

    Properties

    cryptoOptions: Partial<NodeCryptoOptions> = {}
    deliveryAuthPath: CertificationPath
    keyStores: KeyStoreSet
    node: Node<GatewayPayload, string>
    peer: Peer<string>

    Methods

    • Generate a PrivateNodeRegistrationAuthorization with the gatewayData and expiryDate.

      +

      Parameters

      • gatewayData: ArrayBuffer
      • expiryDate: Date

      Returns Promise<ArrayBuffer>

    • Generate and serialise a message with the given payload.

      Parameters

      • payload: ArrayBuffer | GatewayPayload

        The payload to encrypt and encapsulate

      • messageConstructor: RAMFMessageConstructor<GatewayPayload>

        The message class constructor

        -
      • options: Partial<Omit<MessageOptions, "senderCaCertificateChain">> = {}

      Returns Promise<ArrayBuffer>

    • Return a PrivateNodeRegistration including a new certificate for endpointPublicKey.

      +
    • options: Partial<Omit<MessageOptions, "senderCaCertificateChain">> = {}

    Returns Promise<ArrayBuffer>

    • Return a PrivateNodeRegistration including a new certificate for endpointPublicKey.

      Parameters

      • endpointPublicKey: CryptoKey

      Returns Promise<ArrayBuffer>

      The serialization of the registration

      -
    • Parse PrivateNodeRegistrationAuthorization and return its gatewayData if valid.

      Parameters

      • authorizationSerialized: ArrayBuffer

      Returns Promise<ArrayBuffer>

      Throws

      InvalidMessageError if the authorization is malformed, invalid or expired

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateKey.html b/classes/PrivateKey.html index 432ca0a7f..ef0fb2633 100644 --- a/classes/PrivateKey.html +++ b/classes/PrivateKey.html @@ -1,4 +1,4 @@ -PrivateKey | @relaycorp/relaynet-core

    Hierarchy

    Implements

    • CryptoKeyWithProvider

    Constructors

    constructor +PrivateKey | @relaycorp/relaynet-core

    Hierarchy

    Implements

    • CryptoKeyWithProvider

    Constructors

    Properties

    Methods

    Constructors

    Properties

    algorithm: KeyAlgorithm
    extractable: true = true
    provider: ProviderCrypto
    type: KeyType = ...
    usages: KeyUsages

    Methods

    • Type Parameters

      • T extends CryptoKey$1<T>

      Parameters

      • this: (new () => T)
          • new (): T
          • Returns T

      • algorithm: KeyAlgorithm
      • type: KeyType
      • extractable: boolean
      • usages: KeyUsages

      Returns T

    • Parameters

      • data: any

      Returns data is KeyType

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    algorithm: KeyAlgorithm
    extractable: true = true
    provider: ProviderCrypto
    type: KeyType = ...
    usages: KeyUsages

    Methods

    • Type Parameters

      • T extends CryptoKey$1<T>

      Parameters

      • this: (new () => T)
          • new (): T
          • Returns T

      • algorithm: KeyAlgorithm
      • type: KeyType
      • extractable: boolean
      • usages: KeyUsages

      Returns T

    • Parameters

      • data: any

      Returns data is KeyType

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateKeyStore.html b/classes/PrivateKeyStore.html index 03b530480..e7a1b8b49 100644 --- a/classes/PrivateKeyStore.html +++ b/classes/PrivateKeyStore.html @@ -1,22 +1,22 @@ -PrivateKeyStore | @relaycorp/relaynet-core

    Class PrivateKeyStoreAbstract

    Hierarchy

    Constructors

    constructor +PrivateKeyStore | @relaycorp/relaynet-core

    Class PrivateKeyStoreAbstract

    Hierarchy

    Constructors

    Methods

    • Return the private component of a node key pair if it exists.

      +

    Constructors

    Methods

    • Return the private component of a node key pair if it exists.

      Parameters

      • nodeId: string

      Returns Promise<null | CryptoKey>

      Throws

      if the backend failed to retrieve the key due to an error

      -
    • Retrieve private session key, regardless of whether it's an initial key or not.

      Parameters

      • keyId: Buffer

        The key pair id (typically the serial number)

      • nodeId: string

        The id of the node that owns the key

      • peerId: string

        The id of the recipient, in case the key is bound to a recipient

      Returns Promise<CryptoKey>

      Throws

      UnknownKeyError when the key does not exist

      Throws

      PrivateKeyStoreError when the look-up could not be done

      -
    • Return the private component of an initial session key pair.

      Parameters

      • keyId: Buffer

        The key pair id (typically the serial number)

      • nodeId: string

        The id of the node that owns the key

      Returns Promise<CryptoKey>

      Throws

      UnknownKeyError when the key does not exist

      Throws

      PrivateKeyStoreError when the look-up could not be done

      -
    • Parameters

      • privateKey: CryptoKey
      • keyId: Buffer
      • nodeId: string
      • Optional peerId: string

      Returns Promise<void>

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateNodeRegistration.html b/classes/PrivateNodeRegistration.html index 44a0cb537..f6c309243 100644 --- a/classes/PrivateNodeRegistration.html +++ b/classes/PrivateNodeRegistration.html @@ -1,8 +1,8 @@ -PrivateNodeRegistration | @relaycorp/relaynet-core

    Hierarchy

    • PrivateNodeRegistration

    Constructors

    constructor +PrivateNodeRegistration | @relaycorp/relaynet-core

    Hierarchy

    • PrivateNodeRegistration

    Constructors

    Properties

    gatewayCertificate: Certificate
    internetGatewayInternetAddress: string
    privateNodeCertificate: Certificate
    sessionKey: null | SessionKey = null

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    gatewayCertificate: Certificate
    internetGatewayInternetAddress: string
    privateNodeCertificate: Certificate
    sessionKey: null | SessionKey = null

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateNodeRegistrationAuthorization.html b/classes/PrivateNodeRegistrationAuthorization.html index ff2a02893..74a27dbf7 100644 --- a/classes/PrivateNodeRegistrationAuthorization.html +++ b/classes/PrivateNodeRegistrationAuthorization.html @@ -1,6 +1,6 @@ -PrivateNodeRegistrationAuthorization | @relaycorp/relaynet-core

    Class PrivateNodeRegistrationAuthorization

    Hierarchy

    • PrivateNodeRegistrationAuthorization

    Constructors

    constructor +PrivateNodeRegistrationAuthorization | @relaycorp/relaynet-core

    Class PrivateNodeRegistrationAuthorization

    Hierarchy

    • PrivateNodeRegistrationAuthorization

    Constructors

    Properties

    Methods

    Constructors

    Properties

    expiryDate: Date
    gatewayData: ArrayBuffer

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    expiryDate: Date
    gatewayData: ArrayBuffer

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PrivateNodeRegistrationRequest.html b/classes/PrivateNodeRegistrationRequest.html index 69f48ad4a..163703713 100644 --- a/classes/PrivateNodeRegistrationRequest.html +++ b/classes/PrivateNodeRegistrationRequest.html @@ -1,6 +1,6 @@ -PrivateNodeRegistrationRequest | @relaycorp/relaynet-core

    Class PrivateNodeRegistrationRequest

    Hierarchy

    • PrivateNodeRegistrationRequest

    Constructors

    constructor +PrivateNodeRegistrationRequest | @relaycorp/relaynet-core

    Class PrivateNodeRegistrationRequest

    Hierarchy

    • PrivateNodeRegistrationRequest

    Constructors

    Properties

    pnraSerialized: ArrayBuffer
    privateNodePublicKey: CryptoKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    pnraSerialized: ArrayBuffer
    privateNodePublicKey: CryptoKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/PublicKeyStore.html b/classes/PublicKeyStore.html index a96ea7d3b..34c19360d 100644 --- a/classes/PublicKeyStore.html +++ b/classes/PublicKeyStore.html @@ -1,6 +1,6 @@ -PublicKeyStore | @relaycorp/relaynet-core

    Class PublicKeyStoreAbstract

    Hierarchy

    Constructors

    constructor +PublicKeyStore | @relaycorp/relaynet-core

    Class PublicKeyStoreAbstract

    Hierarchy

    Constructors

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/RAMFError.html b/classes/RAMFError.html index acbd9e33c..34abf98e2 100644 --- a/classes/RAMFError.html +++ b/classes/RAMFError.html @@ -1,5 +1,5 @@ RAMFError | @relaycorp/relaynet-core

    Error while processing RAMF message.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -17,5 +17,5 @@ info

    Constructors

    • Parameters

      • options: Error | Options
      • message: string
      • Rest ...params: any[]

      Returns RAMFError

    • Parameters

      • Optional message: string
      • Rest ...params: any[]

      Returns RAMFError

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/RAMFMessage.html b/classes/RAMFMessage.html index 45a403b77..3eba1adeb 100644 --- a/classes/RAMFMessage.html +++ b/classes/RAMFMessage.html @@ -1,5 +1,5 @@ RAMFMessage | @relaycorp/relaynet-core

    Class RAMFMessage<Payload>Abstract

    Relaynet Abstract Message Format, version 1.

    -

    Type Parameters

    Hierarchy

    Constructors

    Type Parameters

    Hierarchy

    Constructors

    Properties

    Constructors

    Properties

    creationDate: Date
    id: string
    payloadSerialized: Buffer
    recipient: Recipient
    senderCaCertificateChain: readonly Certificate[]
    senderCertificate: Certificate
    ttl: number

    Accessors

    Methods

    • Return certification path between sender's certificate and one certificate in +

    Constructors

    Properties

    creationDate: Date
    id: string
    payloadSerialized: Buffer
    recipient: Recipient
    senderCaCertificateChain: readonly Certificate[]
    senderCertificate: Certificate
    ttl: number

    Accessors

    Methods

    • Return RAMF serialization of message.

      -

      Parameters

      Returns Promise<ArrayBuffer>

    • Return RAMF serialization of message.

      +

      Parameters

      Returns Promise<ArrayBuffer>

    • Report whether the message is valid.

      This doesn't check whether the sender is authorised.

      -

      Returns Promise<null>

    • Report whether the message is valid and the sender was authorised by one of the +

      Returns Promise<null>

    • Report whether the message is valid and the sender was authorised by one of the trustedCertificates.

      Parameters

      Returns Promise<readonly Certificate[]>

      The certification path from the sender to one of the trustedCertificates

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/RAMFSyntaxError.html b/classes/RAMFSyntaxError.html index 5b42c3eae..45a7deacd 100644 --- a/classes/RAMFSyntaxError.html +++ b/classes/RAMFSyntaxError.html @@ -1,5 +1,5 @@ RAMFSyntaxError | @relaycorp/relaynet-core

    Syntax error detected in value meant to comply with RAMF spec.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -17,5 +17,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/RAMFValidationError.html b/classes/RAMFValidationError.html index 7aa9d612b..d0570657e 100644 --- a/classes/RAMFValidationError.html +++ b/classes/RAMFValidationError.html @@ -1,5 +1,5 @@ RAMFValidationError | @relaycorp/relaynet-core

    Error while validating RAMF message.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -17,5 +17,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/RelaynetError.html b/classes/RelaynetError.html index 8686a0634..b7b61ad5d 100644 --- a/classes/RelaynetError.html +++ b/classes/RelaynetError.html @@ -1,4 +1,4 @@ -RelaynetError | @relaycorp/relaynet-core

    Class RelaynetErrorAbstract

    Hierarchy

    Constructors

    constructor +RelaynetError | @relaycorp/relaynet-core

    Class RelaynetErrorAbstract

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -16,5 +16,5 @@ info

    Constructors

    • Parameters

      • options: Error | Options
      • message: string
      • Rest ...params: any[]

      Returns RelaynetError

    • Parameters

      • Optional message: string
      • Rest ...params: any[]

      Returns RelaynetError

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/RsaPssPrivateKey.html b/classes/RsaPssPrivateKey.html index 575a9ad7d..c6c88a67a 100644 --- a/classes/RsaPssPrivateKey.html +++ b/classes/RsaPssPrivateKey.html @@ -1,4 +1,4 @@ -RsaPssPrivateKey | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +RsaPssPrivateKey | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    Methods

    Constructors

    Properties

    algorithm: KeyAlgorithm
    extractable: true = true
    provider: ProviderCrypto
    type: KeyType = ...
    usages: KeyUsages = ...

    Methods

    • Type Parameters

      • T extends CryptoKey$1<T>

      Parameters

      • this: (new () => T)
          • new (): T
          • Returns T

      • algorithm: KeyAlgorithm
      • type: KeyType
      • extractable: boolean
      • usages: KeyUsages

      Returns T

    • Parameters

      • data: any

      Returns data is KeyType

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    algorithm: KeyAlgorithm
    extractable: true = true
    provider: ProviderCrypto
    type: KeyType = ...
    usages: KeyUsages = ...

    Methods

    • Type Parameters

      • T extends CryptoKey$1<T>

      Parameters

      • this: (new () => T)
          • new (): T
          • Returns T

      • algorithm: KeyAlgorithm
      • type: KeyType
      • extractable: boolean
      • usages: KeyUsages

      Returns T

    • Parameters

      • data: any

      Returns data is KeyType

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/ServiceMessage.html b/classes/ServiceMessage.html index 5979df0a1..efd588039 100644 --- a/classes/ServiceMessage.html +++ b/classes/ServiceMessage.html @@ -1,9 +1,9 @@ ServiceMessage | @relaycorp/relaynet-core

    Service message as encapsulated in a parcel.

    -

    Hierarchy

    • ServiceMessage

    Implements

    Constructors

    Hierarchy

    • ServiceMessage

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    content: Buffer
    type: string

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    content: Buffer
    type: string

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/SessionEnvelopedData.html b/classes/SessionEnvelopedData.html index 1ee66a6e8..3effc2a5f 100644 --- a/classes/SessionEnvelopedData.html +++ b/classes/SessionEnvelopedData.html @@ -1,6 +1,6 @@ SessionEnvelopedData | @relaycorp/relaynet-core

    CMS EnvelopedData representation using the Channel Session Protocol.

    Consequently, it uses the key agreement (KeyAgreeRecipientInfo) from CMS.

    -

    Hierarchy

    Methods

    Hierarchy

    Methods

    • Return the plaintext for the ciphertext contained in the current EnvelopedData value.

      Parameters

      • privateKey: CryptoKey

        The private key to decrypt the ciphertext.

        -

      Returns Promise<ArrayBuffer>

    • Return the id of the recipient's key used to encrypt the content.

      +

    Returns Promise<ArrayBuffer>

    • Return the id of the recipient's key used to encrypt the content.

      This id will often be the recipient's certificate's serial number, in which case the issuer will be ignored: This method is meant to be used by the recipient so it can look up the corresponding private key to decrypt the content. We could certainly extract the issuer to verify it matches the expected one, but if the id doesn't match any key decryption won't even be attempted, so there's really no risk from ignoring the issuer.

      -

      Returns Buffer

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Promise<SessionEncryptionResult>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/SessionKeyPair.html b/classes/SessionKeyPair.html index d01e5efdf..4c33bc060 100644 --- a/classes/SessionKeyPair.html +++ b/classes/SessionKeyPair.html @@ -1,6 +1,6 @@ -SessionKeyPair | @relaycorp/relaynet-core

    Hierarchy

    • SessionKeyPair

    Constructors

    constructor +SessionKeyPair | @relaycorp/relaynet-core

    Hierarchy

    • SessionKeyPair

    Constructors

    Properties

    Methods

    Constructors

    Properties

    privateKey: CryptoKey
    sessionKey: SessionKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    privateKey: CryptoKey
    sessionKey: SessionKey

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/SessionlessEnvelopedData.html b/classes/SessionlessEnvelopedData.html index 3b3e18fa9..a9698d24a 100644 --- a/classes/SessionlessEnvelopedData.html +++ b/classes/SessionlessEnvelopedData.html @@ -1,25 +1,25 @@ SessionlessEnvelopedData | @relaycorp/relaynet-core

    CMS EnvelopedData representation that doesn't use the Channel Session Protocol.

    Consequently, it uses the key transport choice (KeyTransRecipientInfo) from CMS.

    -

    Hierarchy

    Methods

    Hierarchy

    Methods

    • Return the plaintext for the ciphertext contained in the current EnvelopedData value.

      Parameters

      • privateKey: CryptoKey

        The private key to decrypt the ciphertext.

        -

      Returns Promise<ArrayBuffer>

    • Return the id of the recipient's key used to encrypt the content.

      +

    Returns Promise<ArrayBuffer>

    • Return the id of the recipient's key used to encrypt the content.

      This id will often be the recipient's certificate's serial number, in which case the issuer will be ignored: This method is meant to be used by the recipient so it can look up the corresponding private key to decrypt the content. We could certainly extract the issuer to verify it matches the expected one, but if the id doesn't match any key decryption won't even be attempted, so there's really no risk from ignoring the issuer.

      -

      Returns Buffer

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Promise<SessionlessEnvelopedData>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/UnknownKeyError.html b/classes/UnknownKeyError.html index 83ede24b8..a64da9f0d 100644 --- a/classes/UnknownKeyError.html +++ b/classes/UnknownKeyError.html @@ -1,5 +1,5 @@ UnknownKeyError | @relaycorp/relaynet-core

    Error thrown when a peer references an invalid key.

    -

    Hierarchy

    Constructors

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -17,5 +17,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/classes/UnreachableResolverError.html b/classes/UnreachableResolverError.html index 470014b38..006c3155b 100644 --- a/classes/UnreachableResolverError.html +++ b/classes/UnreachableResolverError.html @@ -1,4 +1,4 @@ -UnreachableResolverError | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    constructor +UnreachableResolverError | @relaycorp/relaynet-core

    Hierarchy

    Constructors

    Properties

    cause message stack? @@ -16,5 +16,5 @@ info

    Constructors

    Properties

    cause: (() => undefined | Error)

    Type declaration

      • (): undefined | Error
      • Returns undefined | Error

    message: string
    stack?: string
    VError: typeof VError
    prepareStackTrace?: ((err, stackTraces) => any)

    Type declaration

    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      +
    stackTraceLimit: number

    Accessors

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

    • Parameters

      • err: Error

      Returns null | Error

    • Parameters

      • err: Error
      • func: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

    • Type Parameters

      • T extends Error

      Parameters

      • errors: T[]

      Returns null | T | MultiError

    • Parameters

      • err: Error
      • name: string

      Returns null | Error

    • Parameters

      • err: Error

      Returns string

    • Parameters

      • err: Error
      • name: string

      Returns boolean

    • Parameters

      • err: Error

      Returns Info

    Generated using TypeDoc

    \ No newline at end of file diff --git a/enums/BindingType.html b/enums/BindingType.html index 5864bdeb5..9b6619a4e 100644 --- a/enums/BindingType.html +++ b/enums/BindingType.html @@ -1,4 +1,4 @@ -BindingType | @relaycorp/relaynet-core

    Enumeration Members

    CRC +BindingType | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Enumeration Members

    CRC: "awala-crc"
    GSC: "awala-gsc"
    PDC: "awala-pdc"

    Generated using TypeDoc

    \ No newline at end of file diff --git a/enums/StreamingMode.html b/enums/StreamingMode.html index 3072a1de4..39e1f8ee6 100644 --- a/enums/StreamingMode.html +++ b/enums/StreamingMode.html @@ -1,3 +1,3 @@ -StreamingMode | @relaycorp/relaynet-core

    Enumeration StreamingMode

    Enumeration Members

    CLOSE_UPON_COMPLETION +StreamingMode | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Enumeration Members

    CLOSE_UPON_COMPLETION: "close-upon-completion"
    KEEP_ALIVE: "keep-alive"

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/derDeserializeECDHPrivateKey.html b/functions/derDeserializeECDHPrivateKey.html index 244b1a02d..8d6ea1f71 100644 --- a/functions/derDeserializeECDHPrivateKey.html +++ b/functions/derDeserializeECDHPrivateKey.html @@ -1,2 +1,2 @@ derDeserializeECDHPrivateKey | @relaycorp/relaynet-core

    Function derDeserializeECDHPrivateKey

    • Parse DER-serialized ECDH private key.

      -

      Parameters

      • privateKeyDer: Buffer
      • curveName: string = 'P-256'

      Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/derDeserializeECDHPublicKey.html b/functions/derDeserializeECDHPublicKey.html index bce3c2986..280db38ea 100644 --- a/functions/derDeserializeECDHPublicKey.html +++ b/functions/derDeserializeECDHPublicKey.html @@ -1,2 +1,2 @@ derDeserializeECDHPublicKey | @relaycorp/relaynet-core

    Function derDeserializeECDHPublicKey

    • Parse DER-serialized ECDH public key.

      -

      Parameters

      • publicKeyDer: ArrayBuffer | Buffer
      • curveName: string = 'P-256'

      Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/derDeserializeRSAPrivateKey.html b/functions/derDeserializeRSAPrivateKey.html index 21837be59..7e2a28553 100644 --- a/functions/derDeserializeRSAPrivateKey.html +++ b/functions/derDeserializeRSAPrivateKey.html @@ -1,2 +1,2 @@ derDeserializeRSAPrivateKey | @relaycorp/relaynet-core

    Function derDeserializeRSAPrivateKey

    • Parse DER-serialized RSA private key.

      -

      Parameters

      • privateKeyDer: Buffer
      • algorithmOptions: RsaHashedImportParams = DEFAULT_RSA_KEY_PARAMS

      Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/derDeserializeRSAPublicKey.html b/functions/derDeserializeRSAPublicKey.html index 61fdafe7b..be4603a5e 100644 --- a/functions/derDeserializeRSAPublicKey.html +++ b/functions/derDeserializeRSAPublicKey.html @@ -1,2 +1,2 @@ derDeserializeRSAPublicKey | @relaycorp/relaynet-core

    Function derDeserializeRSAPublicKey

    • Parse DER-serialized RSA public key.

      -

      Parameters

      • publicKeyDer: ArrayBuffer | Buffer
      • algorithmOptions: RsaHashedImportParams = DEFAULT_RSA_KEY_PARAMS

      Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<CryptoKey>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/derSerializePrivateKey.html b/functions/derSerializePrivateKey.html index 7ef3fe478..c56575ea8 100644 --- a/functions/derSerializePrivateKey.html +++ b/functions/derSerializePrivateKey.html @@ -1,2 +1,2 @@ derSerializePrivateKey | @relaycorp/relaynet-core

    Function derSerializePrivateKey

    • Return DER serialization of private key.

      -

      Parameters

      • privateKey: CryptoKey

      Returns Promise<Buffer>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<Buffer>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/derSerializePublicKey.html b/functions/derSerializePublicKey.html index d018c6476..0a413e222 100644 --- a/functions/derSerializePublicKey.html +++ b/functions/derSerializePublicKey.html @@ -1,2 +1,2 @@ derSerializePublicKey | @relaycorp/relaynet-core

    Function derSerializePublicKey

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<Buffer>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/generateECDHKeyPair.html b/functions/generateECDHKeyPair.html index f1d409f77..efb103af9 100644 --- a/functions/generateECDHKeyPair.html +++ b/functions/generateECDHKeyPair.html @@ -1,2 +1,2 @@ generateECDHKeyPair | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<CryptoKeyPair>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/generateRSAKeyPair.html b/functions/generateRSAKeyPair.html index 84e2be9cf..214d06120 100644 --- a/functions/generateRSAKeyPair.html +++ b/functions/generateRSAKeyPair.html @@ -1,4 +1,4 @@ generateRSAKeyPair | @relaycorp/relaynet-core
    • Generate an RSA-PSS key pair.

      Parameters

      Returns Promise<CryptoKeyPair>

      Throws

      Error If the modulus or the hashing algorithm is disallowed by RS-018.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getIdFromIdentityKey.html b/functions/getIdFromIdentityKey.html index 8b2c2f356..0e5188b18 100644 --- a/functions/getIdFromIdentityKey.html +++ b/functions/getIdFromIdentityKey.html @@ -1 +1 @@ -getIdFromIdentityKey | @relaycorp/relaynet-core
    • Parameters

      • identityPublicKey: CryptoKey

      Returns Promise<string>

    Generated using TypeDoc

    \ No newline at end of file +getIdFromIdentityKey | @relaycorp/relaynet-core
    • Parameters

      • identityPublicKey: CryptoKey

      Returns Promise<string>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getPublicKeyDigest.html b/functions/getPublicKeyDigest.html index cd55c43e6..d678b4b6c 100644 --- a/functions/getPublicKeyDigest.html +++ b/functions/getPublicKeyDigest.html @@ -1,2 +1,2 @@ getPublicKeyDigest | @relaycorp/relaynet-core
    • Return SHA-256 digest of public key.

      -

      Parameters

      • publicKey: CryptoKey

      Returns Promise<ArrayBuffer>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<ArrayBuffer>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getPublicKeyDigestHex.html b/functions/getPublicKeyDigestHex.html index 212d1d7f6..9e317bad8 100644 --- a/functions/getPublicKeyDigestHex.html +++ b/functions/getPublicKeyDigestHex.html @@ -1,2 +1,2 @@ getPublicKeyDigestHex | @relaycorp/relaynet-core

    Function getPublicKeyDigestHex

    • Return hexadecimal, SHA-256 digest of public key.

      -

      Parameters

      • publicKey: CryptoKey

      Returns Promise<string>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<string>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getRSAPublicKeyFromPrivate.html b/functions/getRSAPublicKeyFromPrivate.html index e3afb38a3..6e69b5c4b 100644 --- a/functions/getRSAPublicKeyFromPrivate.html +++ b/functions/getRSAPublicKeyFromPrivate.html @@ -1 +1 @@ -getRSAPublicKeyFromPrivate | @relaycorp/relaynet-core

    Function getRSAPublicKeyFromPrivate

    Generated using TypeDoc

    \ No newline at end of file +getRSAPublicKeyFromPrivate | @relaycorp/relaynet-core

    Function getRSAPublicKeyFromPrivate

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/issueDeliveryAuthorization.html b/functions/issueDeliveryAuthorization.html index 4f909bbda..43ad9ee8a 100644 --- a/functions/issueDeliveryAuthorization.html +++ b/functions/issueDeliveryAuthorization.html @@ -1,4 +1,4 @@ issueDeliveryAuthorization | @relaycorp/relaynet-core

    Function issueDeliveryAuthorization

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<Certificate>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/issueEndpointCertificate.html b/functions/issueEndpointCertificate.html index eded18e3a..b22c153a5 100644 --- a/functions/issueEndpointCertificate.html +++ b/functions/issueEndpointCertificate.html @@ -1,4 +1,4 @@ issueEndpointCertificate | @relaycorp/relaynet-core

    Function issueEndpointCertificate

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<Certificate>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/issueGatewayCertificate.html b/functions/issueGatewayCertificate.html index 57d64e860..dd4efae89 100644 --- a/functions/issueGatewayCertificate.html +++ b/functions/issueGatewayCertificate.html @@ -1,3 +1,3 @@ issueGatewayCertificate | @relaycorp/relaynet-core

    Function issueGatewayCertificate

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<Certificate>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/resolveInternetAddress.html b/functions/resolveInternetAddress.html index ccb39880f..993bd406d 100644 --- a/functions/resolveInternetAddress.html +++ b/functions/resolveInternetAddress.html @@ -7,4 +7,4 @@

    Throws

    If the DNS resolver was unreachable

    null is returned when hostName is an IP address or a non-existing SRV record for the service in bindingType.

    DNS resolution is done with DNS-over-HTTPS.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/CargoDeliveryRequest.html b/interfaces/CargoDeliveryRequest.html index bd3f22126..e2c2c9f2b 100644 --- a/interfaces/CargoDeliveryRequest.html +++ b/interfaces/CargoDeliveryRequest.html @@ -1,4 +1,4 @@ CargoDeliveryRequest | @relaycorp/relaynet-core

    Interface CargoDeliveryRequest

    Request to deliver a cargo.

    -

    Hierarchy

    • CargoDeliveryRequest

    Properties

    Hierarchy

    • CargoDeliveryRequest

    Properties

    Properties

    cargo: Buffer
    localId: string

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    cargo: Buffer
    localId: string

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/CargoRelayClient.html b/interfaces/CargoRelayClient.html index 2a11511e9..d8cdc46ef 100644 --- a/interfaces/CargoRelayClient.html +++ b/interfaces/CargoRelayClient.html @@ -1,9 +1,9 @@ CargoRelayClient | @relaycorp/relaynet-core

    Interface for cargo relay clients

    -

    Hierarchy

    • CargoRelayClient

    Properties

    Hierarchy

    • CargoRelayClient

    Properties

    close: (() => void)

    Type declaration

      • (): void
      • Close the underlying connection, if applicable

        -

        Returns void

    collectCargo: (() => readonly Buffer[])

    Type declaration

      • (): readonly Buffer[]
      • Collect and return cargo

        -

        Returns readonly Buffer[]

    deliverCargo: ((cargo) => IterableIterator<string>)

    Type declaration

      • (cargo): IterableIterator<string>
      • Deliver the cargo yielded by the input iterator and return the local ids of the acknowledged +

        Returns void

    collectCargo: (() => readonly Buffer[])

    Type declaration

      • (): readonly Buffer[]
      • Collect and return cargo

        +

        Returns readonly Buffer[]

    deliverCargo: ((cargo) => IterableIterator<string>)

    Type declaration

      • (cargo): IterableIterator<string>
      • Deliver the cargo yielded by the input iterator and return the local ids of the acknowledged deliveries

        -

        Parameters

        Returns IterableIterator<string>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns IterableIterator<string>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/DeliveryAuthorizationIssuanceOptions.html b/interfaces/DeliveryAuthorizationIssuanceOptions.html index ed154fbc1..0f9ccc05b 100644 --- a/interfaces/DeliveryAuthorizationIssuanceOptions.html +++ b/interfaces/DeliveryAuthorizationIssuanceOptions.html @@ -1,6 +1,6 @@ -DeliveryAuthorizationIssuanceOptions | @relaycorp/relaynet-core

    Interface DeliveryAuthorizationIssuanceOptions

    Hierarchy

    • BasicCertificateIssuanceOptions
      • DeliveryAuthorizationIssuanceOptions

    Properties

    issuerCertificate +DeliveryAuthorizationIssuanceOptions | @relaycorp/relaynet-core

    Interface DeliveryAuthorizationIssuanceOptions

    Hierarchy

    • BasicCertificateIssuanceOptions
      • DeliveryAuthorizationIssuanceOptions

    Properties

    issuerCertificate: Certificate
    issuerPrivateKey: CryptoKey
    subjectPublicKey: CryptoKey
    validityEndDate: Date
    validityStartDate?: Date

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    issuerCertificate: Certificate
    issuerPrivateKey: CryptoKey
    subjectPublicKey: CryptoKey
    validityEndDate: Date
    validityStartDate?: Date

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/EncryptionOptions.html b/interfaces/EncryptionOptions.html index 3e4a0a86c..1b6df90db 100644 --- a/interfaces/EncryptionOptions.html +++ b/interfaces/EncryptionOptions.html @@ -1,3 +1,3 @@ -EncryptionOptions | @relaycorp/relaynet-core

    Hierarchy

    • EncryptionOptions

    Properties

    aesKeySize +EncryptionOptions | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/EndpointCertificateIssuanceOptions.html b/interfaces/EndpointCertificateIssuanceOptions.html index 1033ac5be..8125c3f38 100644 --- a/interfaces/EndpointCertificateIssuanceOptions.html +++ b/interfaces/EndpointCertificateIssuanceOptions.html @@ -1,6 +1,6 @@ -EndpointCertificateIssuanceOptions | @relaycorp/relaynet-core

    Interface EndpointCertificateIssuanceOptions

    Hierarchy

    • BasicCertificateIssuanceOptions
      • EndpointCertificateIssuanceOptions

    Properties

    issuerCertificate? +EndpointCertificateIssuanceOptions | @relaycorp/relaynet-core

    Interface EndpointCertificateIssuanceOptions

    Hierarchy

    • BasicCertificateIssuanceOptions
      • EndpointCertificateIssuanceOptions

    Properties

    issuerCertificate?: Certificate
    issuerPrivateKey: CryptoKey
    subjectPublicKey: CryptoKey
    validityEndDate: Date
    validityStartDate?: Date

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    issuerCertificate?: Certificate
    issuerPrivateKey: CryptoKey
    subjectPublicKey: CryptoKey
    validityEndDate: Date
    validityStartDate?: Date

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/GSCClient.html b/interfaces/GSCClient.html index c6a64d791..dc3c73f66 100644 --- a/interfaces/GSCClient.html +++ b/interfaces/GSCClient.html @@ -1,5 +1,5 @@ -GSCClient | @relaycorp/relaynet-core

    Hierarchy

    • GSCClient

    Properties

    collectParcels +GSCClient | @relaycorp/relaynet-core

    Hierarchy

    • GSCClient

    Properties

    collectParcels: ((nonceSigners, streamingMode, handshakeCallback?) => AsyncIterable<ParcelCollection>)

    Type declaration

    deliverParcel: ((parcelSerialized, signer) => Promise<void>)

    Type declaration

      • (parcelSerialized, signer): Promise<void>
      • Parameters

        Returns Promise<void>

    preRegisterNode: ((nodePublicKey) => Promise<ArrayBuffer>)

    Type declaration

      • (nodePublicKey): Promise<ArrayBuffer>
      • Parameters

        • nodePublicKey: CryptoKey

        Returns Promise<ArrayBuffer>

    registerNode: ((pnrrSerialized) => Promise<PrivateNodeRegistration>)

    Type declaration

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    collectParcels: ((nonceSigners, streamingMode, handshakeCallback?) => AsyncIterable<ParcelCollection>)

    Type declaration

    deliverParcel: ((parcelSerialized, signer) => Promise<void>)

    Type declaration

      • (parcelSerialized, signer): Promise<void>
      • Parameters

        Returns Promise<void>

    preRegisterNode: ((nodePublicKey) => Promise<ArrayBuffer>)

    Type declaration

      • (nodePublicKey): Promise<ArrayBuffer>
      • Parameters

        • nodePublicKey: CryptoKey

        Returns Promise<ArrayBuffer>

    registerNode: ((pnrrSerialized) => Promise<PrivateNodeRegistration>)

    Type declaration

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/GatewayCertificateIssuanceOptions.html b/interfaces/GatewayCertificateIssuanceOptions.html index 908860a19..3fda72337 100644 --- a/interfaces/GatewayCertificateIssuanceOptions.html +++ b/interfaces/GatewayCertificateIssuanceOptions.html @@ -1,6 +1,6 @@ -GatewayCertificateIssuanceOptions | @relaycorp/relaynet-core

    Interface GatewayCertificateIssuanceOptions

    Hierarchy

    • BasicCertificateIssuanceOptions
      • GatewayCertificateIssuanceOptions

    Properties

    issuerCertificate? +GatewayCertificateIssuanceOptions | @relaycorp/relaynet-core

    Interface GatewayCertificateIssuanceOptions

    Hierarchy

    • BasicCertificateIssuanceOptions
      • GatewayCertificateIssuanceOptions

    Properties

    issuerCertificate?: Certificate
    issuerPrivateKey: CryptoKey
    subjectPublicKey: CryptoKey
    validityEndDate: Date
    validityStartDate?: Date

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    issuerCertificate?: Certificate
    issuerPrivateKey: CryptoKey
    subjectPublicKey: CryptoKey
    validityEndDate: Date
    validityStartDate?: Date

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/IdentityKeyPair.html b/interfaces/IdentityKeyPair.html index 66f52c5b8..16031288d 100644 --- a/interfaces/IdentityKeyPair.html +++ b/interfaces/IdentityKeyPair.html @@ -1,4 +1,4 @@ -IdentityKeyPair | @relaycorp/relaynet-core

    Hierarchy

    • CryptoKeyPair
      • IdentityKeyPair

    Properties

    id +IdentityKeyPair | @relaycorp/relaynet-core

    Hierarchy

    • CryptoKeyPair
      • IdentityKeyPair

    Properties

    Properties

    id: string
    privateKey: CryptoKey
    publicKey: CryptoKey

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    id: string
    privateKey: CryptoKey
    publicKey: CryptoKey

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/KeyStoreSet.html b/interfaces/KeyStoreSet.html index adff48651..55cd321cb 100644 --- a/interfaces/KeyStoreSet.html +++ b/interfaces/KeyStoreSet.html @@ -1,4 +1,4 @@ -KeyStoreSet | @relaycorp/relaynet-core

    Hierarchy

    • KeyStoreSet

    Implemented by

    Properties

    certificateStore +KeyStoreSet | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    certificateStore: CertificateStore
    privateKeyStore: PrivateKeyStore
    publicKeyStore: PublicKeyStore

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/NodeCryptoOptions.html b/interfaces/NodeCryptoOptions.html index 083df6ec0..f0e97c048 100644 --- a/interfaces/NodeCryptoOptions.html +++ b/interfaces/NodeCryptoOptions.html @@ -1,3 +1,3 @@ -NodeCryptoOptions | @relaycorp/relaynet-core

    Hierarchy

    • NodeCryptoOptions

    Properties

    encryption +NodeCryptoOptions | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    encryption: Partial<EncryptionOptions>
    signature: Partial<SignatureOptions>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/Payload.html b/interfaces/Payload.html index 666f35926..8f1be2dcf 100644 --- a/interfaces/Payload.html +++ b/interfaces/Payload.html @@ -1,5 +1,5 @@ Payload | @relaycorp/relaynet-core

    Plaintext representation of a RAMF payload.

    Not to be confused with the final RAMF payload; e.g., a CMS EnvelopedData value containing the ciphertext representation of the plaintext.

    -

    Hierarchy

    • Payload

    Implemented by

    Properties

    Properties

    serialize: (() => ArrayBuffer)

    Type declaration

      • (): ArrayBuffer
      • Returns ArrayBuffer

    Generated using TypeDoc

    \ No newline at end of file +

    Hierarchy

    Implemented by

    Properties

    Properties

    serialize: (() => ArrayBuffer)

    Type declaration

      • (): ArrayBuffer
      • Returns ArrayBuffer

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/PublicNodeAddress.html b/interfaces/PublicNodeAddress.html index 28f628abc..8c18eb2d4 100644 --- a/interfaces/PublicNodeAddress.html +++ b/interfaces/PublicNodeAddress.html @@ -1,3 +1,3 @@ -PublicNodeAddress | @relaycorp/relaynet-core

    Hierarchy

    • PublicNodeAddress

    Properties

    host +PublicNodeAddress | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    host: string
    port: number

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/RSAKeyGenOptions.html b/interfaces/RSAKeyGenOptions.html index 36913a132..659e8aff7 100644 --- a/interfaces/RSAKeyGenOptions.html +++ b/interfaces/RSAKeyGenOptions.html @@ -1,3 +1,3 @@ -RSAKeyGenOptions | @relaycorp/relaynet-core

    Hierarchy

    • RSAKeyGenOptions

    Properties

    hashingAlgorithm +RSAKeyGenOptions | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    hashingAlgorithm: HashingAlgorithm
    modulus: RSAModulus

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/Recipient.html b/interfaces/Recipient.html index 69b865901..2215e9208 100644 --- a/interfaces/Recipient.html +++ b/interfaces/Recipient.html @@ -1,3 +1,3 @@ -Recipient | @relaycorp/relaynet-core

    Hierarchy

    • Recipient

    Properties

    id +Recipient | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    id: string
    internetAddress?: string

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/SessionEncryptionResult.html b/interfaces/SessionEncryptionResult.html index ab4b743f5..e16571fdf 100644 --- a/interfaces/SessionEncryptionResult.html +++ b/interfaces/SessionEncryptionResult.html @@ -1,8 +1,8 @@ SessionEncryptionResult | @relaycorp/relaynet-core

    Interface SessionEncryptionResult

    Result of producing an EnvelopedData value with the Channel Session Protocol.

    -

    Hierarchy

    • SessionEncryptionResult

    Properties

    Hierarchy

    • SessionEncryptionResult

    Properties

    dhKeyId: ArrayBuffer

    Id of ECDH key pair.

    -
    dhPrivateKey: CryptoKey

    Private key of the ECDH key pair

    -
    envelopedData: SessionEnvelopedData

    EnvelopedData value using the Channel Session Protocol.

    -

    Generated using TypeDoc

    \ No newline at end of file +
    dhPrivateKey: CryptoKey

    Private key of the ECDH key pair

    +
    envelopedData: SessionEnvelopedData

    EnvelopedData value using the Channel Session Protocol.

    +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/SessionKey.html b/interfaces/SessionKey.html index 95fc6e9ee..e03e4916c 100644 --- a/interfaces/SessionKey.html +++ b/interfaces/SessionKey.html @@ -1,4 +1,4 @@ SessionKey | @relaycorp/relaynet-core

    Key of the sender or recipient of the EnvelopedData value using the Channel Session Protocol

    -

    Hierarchy

    • SessionKey

    Properties

    Hierarchy

    • SessionKey

    Properties

    Properties

    keyId: Buffer
    publicKey: CryptoKey

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    keyId: Buffer
    publicKey: CryptoKey

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/SessionPrivateKeyData.html b/interfaces/SessionPrivateKeyData.html index a26148ad6..e8b30d108 100644 --- a/interfaces/SessionPrivateKeyData.html +++ b/interfaces/SessionPrivateKeyData.html @@ -1,5 +1,5 @@ SessionPrivateKeyData | @relaycorp/relaynet-core

    Interface SessionPrivateKeyData

    Data for a private key of a session key pair.

    -

    Hierarchy

    • SessionPrivateKeyData

    Properties

    Hierarchy

    • SessionPrivateKeyData

    Properties

    keySerialized: Buffer
    nodeId: string
    peerId?: string

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    keySerialized: Buffer
    nodeId: string
    peerId?: string

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/SessionPublicKeyData.html b/interfaces/SessionPublicKeyData.html index a6c4cbcfc..eecb192a2 100644 --- a/interfaces/SessionPublicKeyData.html +++ b/interfaces/SessionPublicKeyData.html @@ -1,4 +1,4 @@ -SessionPublicKeyData | @relaycorp/relaynet-core

    Interface SessionPublicKeyData

    Hierarchy

    • SessionPublicKeyData

    Properties

    publicKeyCreationTime +SessionPublicKeyData | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    publicKeyCreationTime: Date
    publicKeyDer: Buffer
    publicKeyId: Buffer

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/SignatureOptions.html b/interfaces/SignatureOptions.html index 5009dfc68..277d99df9 100644 --- a/interfaces/SignatureOptions.html +++ b/interfaces/SignatureOptions.html @@ -1,2 +1,2 @@ -SignatureOptions | @relaycorp/relaynet-core

    Hierarchy

    • SignatureOptions

    Properties

    hashingAlgorithmName: HashingAlgorithm

    Generated using TypeDoc

    \ No newline at end of file +SignatureOptions | @relaycorp/relaynet-core

    Hierarchy

    • SignatureOptions

    Properties

    hashingAlgorithmName: HashingAlgorithm

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/CargoMessageSetItem.html b/types/CargoMessageSetItem.html index 13f4b8fcd..ae97061aa 100644 --- a/types/CargoMessageSetItem.html +++ b/types/CargoMessageSetItem.html @@ -1 +1 @@ -CargoMessageSetItem | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file +CargoMessageSetItem | @relaycorp/relaynet-core

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/CargoMessageStream.html b/types/CargoMessageStream.html index 97a00feac..0fef39109 100644 --- a/types/CargoMessageStream.html +++ b/types/CargoMessageStream.html @@ -1 +1 @@ -CargoMessageStream | @relaycorp/relaynet-core

    Type alias CargoMessageStream

    CargoMessageStream: AsyncIterable<{
        expiryDate: Date;
        message: Buffer;
    }>

    Type declaration

    • Readonly expiryDate: Date
    • Readonly message: Buffer

    Generated using TypeDoc

    \ No newline at end of file +CargoMessageStream | @relaycorp/relaynet-core

    Type alias CargoMessageStream

    CargoMessageStream: AsyncIterable<{
        expiryDate: Date;
        message: Buffer;
    }>

    Type declaration

    • Readonly expiryDate: Date
    • Readonly message: Buffer

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/ECDHCurveName.html b/types/ECDHCurveName.html index 168766daa..e19146b0d 100644 --- a/types/ECDHCurveName.html +++ b/types/ECDHCurveName.html @@ -1 +1 @@ -ECDHCurveName | @relaycorp/relaynet-core
    ECDHCurveName: "P-256" | "P-384" | "P-521"

    Generated using TypeDoc

    \ No newline at end of file +ECDHCurveName | @relaycorp/relaynet-core
    ECDHCurveName: "P-256" | "P-384" | "P-521"

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/LocalCargoId.html b/types/LocalCargoId.html index 955500250..e31bac24b 100644 --- a/types/LocalCargoId.html +++ b/types/LocalCargoId.html @@ -1,3 +1,3 @@ LocalCargoId | @relaycorp/relaynet-core
    LocalCargoId: string

    The local id of the cargo to be delivered.

    It can be a file name or DB primary key, for example.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/variables/MAX_RAMF_MESSAGE_LENGTH.html b/variables/MAX_RAMF_MESSAGE_LENGTH.html index a1394308d..cfce8c773 100644 --- a/variables/MAX_RAMF_MESSAGE_LENGTH.html +++ b/variables/MAX_RAMF_MESSAGE_LENGTH.html @@ -1,3 +1,3 @@ MAX_RAMF_MESSAGE_LENGTH | @relaycorp/relaynet-core

    Variable MAX_RAMF_MESSAGE_LENGTHConst

    MAX_RAMF_MESSAGE_LENGTH: 9437184 = 9437184

    Maximum length of any RAMF message per RS-001.

    https://specs.relaynet.network/RS-001

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/variables/MAX_SDU_PLAINTEXT_LENGTH.html b/variables/MAX_SDU_PLAINTEXT_LENGTH.html index 960d127f0..e3505d3a1 100644 --- a/variables/MAX_SDU_PLAINTEXT_LENGTH.html +++ b/variables/MAX_SDU_PLAINTEXT_LENGTH.html @@ -1,2 +1,2 @@ MAX_SDU_PLAINTEXT_LENGTH | @relaycorp/relaynet-core

    Variable MAX_SDU_PLAINTEXT_LENGTHConst

    MAX_SDU_PLAINTEXT_LENGTH: 8322048 = 8322048

    Maximum length of any SDU to be encapsulated in a CMS EnvelopedData value, per the RAMF spec.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file