Options
All
  • Public
  • Public/Protected
  • All
Menu

@ndn/nac

This package is part of NDNts, Named Data Networking libraries for the modern web.

This package implements NAC-RSA named based access control protocol. It works in Node.js environment only, due to limitation of SafeBag implementation from the @ndn/ndnsec package.

This implementation is validated against the reference implementation using interop-test.

Index

References

AccessManager

Re-exports AccessManager

Consumer

Re-exports Consumer

ContentKey

Re-exports ContentKey

ContentKey

Re-exports ContentKey

EncryptedContent

Re-exports EncryptedContent

EncryptedContent

Re-exports EncryptedContent

KeyDecryptionKey

Re-exports KeyDecryptionKey

KeyDecryptionKey

Re-exports KeyDecryptionKey

KeyEncryptionKey

Re-exports KeyEncryptionKey

KeyEncryptionKey

Re-exports KeyEncryptionKey

Producer

Re-exports Producer

Variables

Const ContentTypeKEY

ContentTypeKEY: 2 = 2

Const DefaultFreshness

DefaultFreshness: 3600000 = 3600000

Const EVD

EVD: EvDecoder<Fields> = new EvDecoder<KeyDecryptionKey.Fields>("KeyDecryptionKey", TT.EncryptedContent).add(TT.EncryptedPayload, (t, { vd }) => t.safeBag = vd.decode(SafeBag), { required: true }).add(TT.EncryptedPayloadKey, (t, { value }) => t.encryptedPassphrase = value, { required: true })

Const EVD

EVD: EvDecoder<Fields> = new EvDecoder<ContentKey.Fields>("ContentKey", TT.EncryptedContent).add(TT.EncryptedPayload, (t, { value }) => t.encryptedKey = value, { required: true })

Const EVD

EVD: EvDecoder<EncryptedContent> = new EvDecoder<EncryptedContent>("EncryptedContent", TT.EncryptedContent).add(TT.EncryptedPayload, (t, { value }) => t.ciphertext = value, { required: true }).add(TT.InitializationVector, (t, { value }) => t.iv = value, { required: true }).add(l3TT.Name, (t, { decoder }) => t.name = decoder.decode(Name), { required: true })

Const SafeBagIssuerId

SafeBagIssuerId: Component = Component.from("NDNts-nac")

Functions

makeNameInternal

  • makeNameInternal(parts: NameParts, keyword2: Component): Name

parseNameInternal

  • parseNameInternal(name: Name, keyword2: Component, type?: string): NameParts

Object literals

Const Keyword

Keyword: object

CK

CK: Component = Component.from("CK")

ENCRYPTED_BY

ENCRYPTED_BY: Component = Component.from("ENCRYPTED-BY")

KDK

KDK: Component = Component.from("KDK")

KEK

KEK: Component = Component.from("KEK")

KEY

KEY: Component = CertNaming.KEY

NAC

NAC: Component = Component.from("NAC")

Const TT

TT: object

EncryptedContent

EncryptedContent: number = 130

EncryptedPayload

EncryptedPayload: number = 132

EncryptedPayloadKey

EncryptedPayloadKey: number = 134

InitializationVector

InitializationVector: number = 133

Legend

  • Namespace
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Class
  • Class with type parameter
  • Enumeration

Generated using TypeDoc