GenerateSecretsAndKeyResponse(keyRequest) {
        let encPubAndSec = this._calculateMyPublicKeyAndSecret(keyRequest.Aenc);
        let Benc = encPubAndSec.MyPublicKey;
        let Senc = encPubAndSec.SharedSecretKey;

        let hmacPubAndSec = this._calculateMyPublicKeyAndSecret(keyRequest.Ahmac);
        let Bhmac = hmacPubAndSec.MyPublicKey;
        let Shmac = hmacPubAndSec.SharedSecretKey;
        
        let secrets = new Secrets(Senc, Shmac);
        let keyResponse = new KeyResponse(keyRequest.RequestId, Benc, Bhmac);

        return new SecretsAndKeyResponse(secrets, keyResponse);
    }
// <returns>Secrets and KeyResponse to send back.</returns>
Secrets and KeyResponse to send back.
Secrets and KeyResponse to send back .
GenerateSecretsAndKeyResponse(keyRequest) {
        let encPubAndSec = this._calculateMyPublicKeyAndSecret(keyRequest.Aenc);
        let Benc = encPubAndSec.MyPublicKey;
        let Senc = encPubAndSec.SharedSecretKey;
        let hmacPubAndSec = this._calculateMyPublicKeyAndSecret(keyRequest.Ahmac);
        let Bhmac = hmacPubAndSec.MyPublicKey;
        let Shmac = hmacPubAndSec.SharedSecretKey;
        let secrets = new Secrets(Senc, Shmac);
        let keyResponse = new KeyResponse(keyRequest.RequestId, Benc, Bhmac);
        return new SecretsAndKeyResponse(secrets, keyResponse);
    }
GenerateSecretsAndKeyResponse ( keyRequest ) { let encPubAndSec = this . _calculateMyPublicKeyAndSecret ( keyRequest . Aenc ) ; let Benc = encPubAndSec . MyPublicKey ; let Senc = encPubAndSec . SharedSecretKey ; let hmacPubAndSec = this . _calculateMyPublicKeyAndSecret ( keyRequest . Ahmac ) ; let Bhmac = hmacPubAndSec . MyPublicKey ; let Shmac = hmacPubAndSec . SharedSecretKey ; let secrets = new Secrets ( Senc , Shmac ) ; let keyResponse = new KeyResponse ( keyRequest . RequestId , Benc , Bhmac ) ; return new SecretsAndKeyResponse ( secrets , keyResponse ) ; }
<returns>Secrets and KeyResponse to send back.</returns>
<returns > Secrets and KeyResponse to send back . < / returns >