lib/HAPServer.js
function HAPEncryption() {
  // initialize member vars with null-object values
  this.clientPublicKey = bufferShim.alloc(0);
  this.secretKey = bufferShim.alloc(0);
  this.publicKey = bufferShim.alloc(0);
  this.sharedSec = bufferShim.alloc(0);
  this.hkdfPairEncKey = bufferShim.alloc(0);
  this.accessoryToControllerCount = { value: 0 };
  this.controllerToAccessoryCount = { value: 0 };
  this.accessoryToControllerKey = bufferShim.alloc(0);
  this.controllerToAccessoryKey = bufferShim.alloc(0);
  this.extraInfo = {};
}
function HAPEncryption() {
  // initialize member vars with null-object values
  this.clientPublicKey = bufferShim.alloc(0);
  this.secretKey = bufferShim.alloc(0);
  this.publicKey = bufferShim.alloc(0);
  this.sharedSec = bufferShim.alloc(0);
  this.hkdfPairEncKey = bufferShim.alloc(0);
  this.accessoryToControllerCount = { value: 0 };
  this.controllerToAccessoryCount = { value: 0 };
  this.accessoryToControllerKey = bufferShim.alloc(0);
  this.controllerToAccessoryKey = bufferShim.alloc(0);
  this.extraInfo = {};
}
function HAPEncryption ( ) { // initialize member vars with null-object values this . clientPublicKey = bufferShim . alloc ( 0 ) ; this . secretKey = bufferShim . alloc ( 0 ) ; this . publicKey = bufferShim . alloc ( 0 ) ; this . sharedSec = bufferShim . alloc ( 0 ) ; this . hkdfPairEncKey = bufferShim . alloc ( 0 ) ; this . accessoryToControllerCount = { value : 0 } ; this . controllerToAccessoryCount = { value : 0 } ; this . accessoryToControllerKey = bufferShim . alloc ( 0 ) ; this . controllerToAccessoryKey = bufferShim . alloc ( 0 ) ; this . extraInfo = { } ; }
Simple struct to hold vars needed to support HAP encryption.
Simple struct to hold vars needed to support HAP encryption .