includes/sessions.php
changeset 629 8733c22969e7
parent 618 587b393f1e5e
child 685 17ebe24cdf85
equal deleted inserted replaced
628:ab6f55abb17e 629:8733c22969e7
  3478               // secret_hash is used to verify that the server guesses the correct secret
  3478               // secret_hash is used to verify that the server guesses the correct secret
  3479               var secret_hash = hex_sha1(secret);
  3479               var secret_hash = hex_sha1(secret);
  3480               
  3480               
  3481               // give the server our values
  3481               // give the server our values
  3482               frm.' . $crypt_key . '.value = secret_hash;
  3482               frm.' . $crypt_key . '.value = secret_hash;
  3483               frm.' . $dh_client_pubkey . '.value = dh_pub;
  3483               ' . ( $dh_supported ? 'frm.' . $dh_client_pubkey . '.value = dh_pub;' : '' ) . '
  3484               
  3484               
  3485               // console.info("DiffieHellman: set public values");
  3485               // console.info("DiffieHellman: set public values");
  3486               
  3486               
  3487               // crypt_key is the actual AES key
  3487               // crypt_key is the actual AES key
  3488               var crypt_key = (hex_sha256(secret)).substr(0, (keySizeInBits / 4));
  3488               var crypt_key = (hex_sha256(secret)).substr(0, (keySizeInBits / 4));