equal
deleted
inserted
replaced
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)); |