summaryrefslogtreecommitdiff
path: root/paramiko/kex_group1.py
Commit message (Collapse)AuthorAgeFilesLines
* No more (object)ionsJeff Forcier2023-01-161-1/+1
|
* blackenJeff Forcier2023-01-111-2/+2
|
* Remove or transmute all use of long()Jeff Forcier2023-01-091-4/+3
| | | | | | | - When wrapping literals: just go away - When wrapping variables whose values are already definitely integers (eg output of 'id()'): ditto - When wrapping variables of unknown provenance or which are definitely NOT integers: replaced with int()
* Migrate some byte related helpers aroundJeff Forcier2023-01-091-2/+2
| | | | | I feel like we should be able to just nuke byte_chr and friends at this point, but it's not entirely obvious, so let's rock that boat later.
* Fix Free Software Foundation addressPaul Howarth2022-03-151-1/+1
| | | | They moved from Temple Place to Franklin Street in 2005.
* Add support for RSA SHA2 host and public keysJeff Forcier2021-12-231-1/+3
| | | | | | Includes a handful of refactors and new semiprivate attributes on Transport and AuthHandler for better test visibility.
* Don't force all algorithms to use sha1 if they don't want to.Benno Rice2021-07-231-1/+1
| | | | Fixes #1882
* Merge branch 'master' into 1233-intJeff Forcier2019-06-091-3/+1
|\
| * Bump black up to 18.6b4Jeff Forcier2018-08-221-3/+1
| |
* | Merge remote-tracking branch 'upstream/master'Edgar Sousa2018-06-121-8/+20
|\ \ | |/
| * Blacken under black 18.5b0Jeff Forcier2018-05-291-1/+3
| |
| * Blacken Paramiko on 2.4Chris Rose2018-05-171-7/+17
| |
* | Add support for DH Group14-SHA256.Edgar Sousa2018-05-231-1/+1
|/ | | | Fix bug on Group1 implementation using hardcoded sha1 cipher instead of class parameter.
* flake8 for previous changesetJeff Forcier2017-10-111-1/+2
|
* String format modernization, part 11070-remove-python26-and-33Jeff Forcier2017-10-101-1/+1
| | | | | | | Choosing to skip it in some edge/corner cases where it's more harmful than helpful. Also choosing to replace many non-%s specifiers with regular old {} since I don't see why one would normally care. Again, eschewing that in spots where it seems like it might matter.
* Even more flake8.Dorian Pula2017-05-311-7/+10
|
* Fix incorrect hash algorithm selection during kex key generation.Jeff Forcier2015-11-011-0/+1
| | | | Re #356
* Merge branch 'paramiko:master' into gssapi-py3-supportSebastian Deiss2014-04-231-5/+6
|\ | | | | | | | | | | Conflicts: sites/www/changelog.rst test.py
| * Merge branch 'master' into use-urandomAlex Gaynor2014-04-141-4/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: paramiko/dsskey.py paramiko/ecdsakey.py paramiko/hostkeys.py paramiko/kex_gex.py paramiko/kex_group1.py paramiko/pkey.py paramiko/primes.py paramiko/rsakey.py tests/test_pkey.py
| | * Switched hash functions from PyCrypto to hashlib.Alex Gaynor2014-03-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | There's a few advantages to this: 1) It's probably fast, OpenSSL, which typically backs hashlib, receives far more attention for optimizaitons than PyCrypto. 2) It's the first step to supporting PyPy, where PyCrypto doesn't run.
| * | Switch from using PyCrypto's Random to using os.urandom.Alex Gaynor2014-03-291-2/+4
| |/ | | | | | | | | | | | | | | | | | | | | There's several reasons for this change: 1) It's faster for reads up to 1024 bytes (nearly 10x faster for 16 byte reads) 2) It receives considerably more security review since it's in the kernel. 3) It's yet another step towards running on PyPy. 4) Using userspace CSPRNGs is considered something of an anti-pattern. See: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ http://webcache.googleusercontent.com/search?q=cache:2nTvpCgKZXIJ:www.2uo.de/myths-about-urandom/+&cd=3&hl=en&ct=clnk&gl=us
* | Merge branch 'master' into gssapi-py3-supportSebastian Deiss2014-03-261-8/+7
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitignore README demos/demo_simple.py dev-requirements.txt paramiko/__init__.py paramiko/_winapi.py paramiko/agent.py paramiko/auth_handler.py paramiko/ber.py paramiko/buffered_pipe.py paramiko/channel.py paramiko/client.py paramiko/common.py paramiko/dsskey.py paramiko/ecdsakey.py paramiko/file.py paramiko/hostkeys.py paramiko/kex_gex.py paramiko/kex_group1.py paramiko/message.py paramiko/packet.py paramiko/pkey.py paramiko/primes.py paramiko/proxy.py paramiko/py3compat.py paramiko/server.py paramiko/sftp_client.py paramiko/transport.py paramiko/util.py paramiko/win_pageant.py setup.py sites/shared_conf.py sites/www/changelog.rst sites/www/conf.py sites/www/index.rst sites/www/installing.rst test.py tests/loop.py tests/stub_sftp.py tests/test_auth.py tests/test_client.py tests/test_file.py tests/test_hostkeys.py tests/test_kex.py tests/test_message.py tests/test_packetizer.py tests/test_pkey.py tests/test_sftp.py tests/test_sftp_big.py tests/test_transport.py tests/test_util.py
| * Fix import * and a bunch of PEP8 formattingScott Maxwell2014-03-071-5/+5
| |
| * Changes inspired by the nischu7 branchScott Maxwell2013-11-011-5/+7
| |
| * Convert and detect types properly, use helper constants, use StringIO and rangeScott Maxwell2013-10-301-5/+6
| |
| * Fix message sendingScott Maxwell2013-10-301-8/+8
| | | | | | | | Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
* | GSS-API / SSPI authenticated Diffie-Hellman Key Exchange and userSebastian Deiss2014-02-111-14/+15
| | | | | | | | | | | | | | authentication with Python 3 support Add Python 3 support for the GSS-API / SSPI authenticated Diffie-Hellman Key Exchange and user authentication. This patch supersedes pull request #250.
* | Merge branch scottkmaxwell:py3-support-without-py25 intoSebastian Deiss2014-02-111-15/+18
|/ | | SebastianDeiss:gssapi-py3-support
* Fixed a typo in the license header of most filesJeff Forcier2013-09-271-1/+1
| | | | | Conflicts: paramiko/proxy.py
* Use Crypto.Random rather than Crypto.Util.RandomPool.Gary van der Merwe2010-08-031-3/+2
|
* fix my email address to be the current one.Robey Pointer2009-07-191-1/+1
|
* [project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer2007-02-131-1/+1
| | | | bump copyright year to 2007
* [project @ robey@lag.net-20060220005934-58d0df2920e799b5]Robey Pointer2006-02-191-1/+1
| | | | update copyright year
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-65]Robey Pointer2005-10-131-4/+5
| | | | remove unnecessary shebangs, fix import lines to be explicit about imports from within paramiko, and a bit of whitespace cleanup
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-29]Robey Pointer2005-07-101-0/+3
| | | | a bunch of silly changes where i was trying to fix pychecker warnings before i decided it wasnt worth the effort
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-10]Robey Pointer2005-05-211-6/+10
| | | | fix stupid bug in kex_group1 which luckily only affected unit tests
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-154]Robey Pointer2005-02-281-1/+1
| | | | | | | even better 1.2 lapras re-bump the version # to 1.2 (with a new date since i added more stuff). add 2005 to the copyright date in a bunch of files.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-107]Robey Pointer2004-11-071-20/+24
| | | | | | fix kex_gex fix kex_gex (group-exchange key exchange) to, *cough*, work again, and also layout kex_group1 a little more sanely.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-83]Robey Pointer2004-09-111-6/+8
| | | | | | tweak Message.add() in the key exchanges use the new Message.add() behavior to make a little code here much easier to read.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-61]Robey Pointer2004-06-101-1/+1
| | | | | | no more Foobar fix "Foobar" to be "Paramiko" in the one place i missed it in all the gpl headers. sigh. :)
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-42]Robey Pointer2004-04-061-3/+3
| | | | | | | | | | | | | support py22, more or less add roger binns' patches for supporting python 2.2. i hedged a bit on the logging stuff and just added some trickery to let logging be stubbed out for python 2.2. this changed a lot of import statements but i managed to avoid hacking at any of the existing logging. socket timeouts are required for the threads to notice when they've been deactivated. worked around it by using the 'select' module on py22. also fixed the sftp unit tests to cope with a password-protected private key.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-36]Robey Pointer2004-04-051-3/+4
| | | | | | add common.py for commonly used constants and globals common.py now stores the constants and globals. lots of renaming because of this.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-22]Robey Pointer2004-01-041-3/+22
| | | | | | | | | fix MANIFEST.in, change version numbers to 0.9-doduo, fix LPGL notices fixed MANIFEST.in to include the demo scripts, LICENSE, and ChangeLog. upped everything to version 0.9-doduo. fixed the copyright notice, and added the LGPL banner to the top of every python file.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-18]Robey Pointer2003-12-301-1/+1
| | | | | | | | | | | | added public-key support to server mode, more docs added public-key support to server mode (it can now verify a client signature) and added a demo of that to the demo_server.py script (user_rsa_key). in the process, cleaned up the API of PKey so that now it only has to know about signing and verifying ssh2 blobs, and can be hashed and compared with other keys (comparing & hashing only the public parts of the key). keys can also be created from strings now too. some more documentation and hiding private methods.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-17]Robey Pointer2003-12-301-8/+8
| | | | | | | | | | | | | | | | | lots more documentation, and added Transport.connect() renamed demo_host_key to demo_rsa_key. moved changelog to a separate file, and indicated that future changelog entries should be fetched from tla. tried to clean up "__all__" in a way that makes epydoc still work. added lots more documentation, and renamed many methods and vars to hide them as private non-exported API. Transport's ModulusPack is now a static member, so it only has to be loaded once, and can then be used by any future Transport object. added Transport.connect(), which tries to wrap all the SSH2 negotiation and authentication into one method. you should be able to create a Transport, call connect(), and then create channels.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-16]Robey Pointer2003-12-281-11/+9
| | | | | | | | | | | | | | hook up server-side kex-gex; add more documentation group-exchange kex should work now on the server side. it will only be advertised if a "moduli" file has been loaded (see the -gasp- docs) so we don't spend hours (literally. hours.) computing primes. some of the logic was previously wrong, too, since it had never been tested. fixed repr() string for Transport/BaseTransport. moved is_authenticated to Transport where it belongs. added lots of documentation (but still only about 10% documented). lots of methods were made private finally.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-15]Robey Pointer2003-12-271-1/+1
| | | | | | | | fix up new paramiko/ folder. moved SSHException to a new file (ssh_exception.py) and turned paramiko.py into an __init__.py file. i'm still not entirely sure how this normally works, so i may have done something wrong, but it's supposed to work the same as before.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-14]Robey Pointer2003-12-271-0/+104
move the paramiko files into a paramiko/ folder. just moving the files into a folder. it won't build this way yet.