| 91 | | vector to the infohash and then hashing with SHA-1. The first 64 bits |
| 92 | | of the resulting hash are then used as the RC4 key. The string from |
| 93 | | which the RC4 key is derived whether it be the infohash or the SHA-1 of |
| 94 | | the initialization vector appended to the infohash is called the |
| | 91 | vector to the infohash and then hashing with SHA-1. The resulting |
| | 92 | hash is then used as the RC4 key. The string from which the RC4 key |
| | 93 | is derived whether it be the infohash or the SHA-1 of the |
| | 94 | initialization vector appended to the infohash is called the |
| 103 | | intermediate = sha1( 'aaf4c61ddcc5e8a2dabedef3b482cd9aea9434dabcd' ) |
| 104 | | key = intermediate[0:64] |
| 105 | | |
| 106 | | where [i:j] denotes the ith through *jth* bit including the *ith* but |
| 107 | | excluding the *jth*. The resulting key in hex is ``f36e9cae87cf33e0``. |
| 108 | | |
| 109 | | A 64-bit key is used to avoid U.S. export restrictions. |
| | 103 | key = sha1( 'aaf4c61ddcc5e8a2dabedef3b482cd9aea9434dabcd' ) |
| | 104 | |
| | 105 | where [i:j] denotes the *ith* through *jth* bit including the *ith* |
| | 106 | but excluding the *jth*. The resulting key in hex is |
| | 107 | ``f36e9cae87cf33e07645ef5ca745a8a83469f31e``. |
| 260 | | to an encrypted header then the initiating peer SHOULD try other peers |
| 261 | | in the peer list returning to the peer that closed the connection only |
| 262 | | when all other peers known or not yet known to support MSE have been |
| 263 | | tried and have failed to provide "adequate performance." We |
| | 258 | to an encrypted header then the initiating peer SHOULD assume that the |
| | 259 | peer does not support MSE. The initiating peer however SHOULD ONLY |
| | 260 | initiate unencrypted connections when all peers have been tried and |
| | 261 | those that support MSE fail to provide "adequate performance." We |