Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AesGcmRecordProtection

Hierarchy

Index

Properties

clientCipher

clientCipher: Aes128Gcm

Readonly clientRandom

clientRandom: Buffer

clientWriteIV

clientWriteIV: Buffer

clientWriteKey

clientWriteKey: Buffer

Readonly masterSecret

masterSecret: Buffer

serverCipher

serverCipher: Aes128Gcm

Readonly serverRandom

serverRandom: Buffer

serverWriteIV

serverWriteIV: Buffer

serverWriteKey

serverWriteKey: Buffer

Constructors

constructor

  • new AesGcmRecordProtection(masterSecret: Buffer, serverRandom: Buffer, clientRandom: Buffer): AesGcmRecordProtection

Methods

decryptCiphertextFromClient

  • decryptCiphertextFromClient(input: Buffer, record: RecordHeader): Buffer

decryptCiphertextFromServer

  • decryptCiphertextFromServer(input: Buffer, record: RecordHeader): Buffer

encryptClientPlaintext

  • encryptClientPlaintext(input: Buffer, record: RecordHeader): Buffer

encryptServerPlaintext

  • encryptServerPlaintext(input: Buffer, record: RecordHeader): Buffer

getDecryptedSize

  • getDecryptedSize(dataSize: number): number

getEncryptedSize

  • getEncryptedSize(dataSize: number): number

Generated using TypeDoc