]> www.wagner.pp.ru Git - oss/ctypescrypto.git/log
oss/ctypescrypto.git
5 years agoAdded explicit check for CMS functions in libcrypto master
Victor Wagner [Sun, 13 May 2018 04:14:44 +0000 (07:14 +0300)]
Added explicit check for CMS functions in libcrypto

5 years agoPython 3 support for modules pbkdf2 pkey ec x509
Victor Wagner [Sun, 29 Apr 2018 16:07:52 +0000 (19:07 +0300)]
Python 3 support for modules pbkdf2 pkey ec x509

5 years agoBegin to implement python3 support. Now tests for oid, bio, cipher, digest, mac and...
Victor Wagner [Sun, 29 Apr 2018 12:52:14 +0000 (15:52 +0300)]
Begin to implement python3 support. Now tests for oid, bio, cipher, digest, mac and rand modules work for both python2 and python3.
This requires changes in the engine and exception modules as well.
Some common infrastructure to make import-time decision is placed in __init__.py

5 years agoGenerate new certificates for X509 tests, because old ones no more validate since...
Victor Wagner [Sun, 29 Apr 2018 12:48:40 +0000 (15:48 +0300)]
Generate new certificates for X509 tests, because old ones no more validate since they use SHA1 digest

5 years agoMerge branch 'master' of https://github.com/vbwagner/ctypescrypto
Victor Wagner [Sun, 29 Apr 2018 05:17:41 +0000 (08:17 +0300)]
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto

6 years agoFix incompatibilities with OpenSSL 1.1.0
Victor Wagner [Fri, 18 Aug 2017 10:19:05 +0000 (13:19 +0300)]
Fix incompatibilities with OpenSSL 1.1.0

7 years agoMerge branch 'master' of https://github.com/vbwagner/ctypescrypto
Victor Wagner [Tue, 15 Nov 2016 21:25:17 +0000 (00:25 +0300)]
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto

7 years agoFixed processing of encrypted private keys. Added tests for encrypted private keys
Victor Wagner [Tue, 15 Nov 2016 21:23:54 +0000 (00:23 +0300)]
Fixed processing of encrypted private keys. Added tests for encrypted private keys

7 years agoMerge pull request #5 from parneshraniga/master
Victor Wagner [Fri, 2 Sep 2016 06:57:14 +0000 (10:57 +0400)]
Merge pull request #5 from parneshraniga/master

Updated cms.py so that EnvelopedData and EncryptedData work

7 years agoUpdated cms.py so that EnvelopedData and EncryptedData work
parneshraniga [Thu, 18 Aug 2016 00:11:44 +0000 (10:11 +1000)]
Updated cms.py so that EnvelopedData and EncryptedData work

Wrong fields were used for cert and cipher parameter into calls of CMS_encrypt and CMS_decrypt for EnvelopedData. Similarly for CMS_EncryptedData_encrypt in EncryptedData.

7 years agoMerge pull request #4 from ChristopherMacGown/fix_create_cms
Victor Wagner [Thu, 21 Jul 2016 06:18:57 +0000 (10:18 +0400)]
Merge pull request #4 from ChristopherMacGown/fix_create_cms

Fixes to SignedData.create.

7 years agoCMS_sign expects certstack to be a pointer
Christopher MacGown [Wed, 20 Jul 2016 23:53:14 +0000 (16:53 -0700)]
CMS_sign expects certstack to be a pointer

7 years agoPKey.ptr should be PKey.key
Christopher MacGown [Wed, 20 Jul 2016 21:32:11 +0000 (14:32 -0700)]
PKey.ptr should be PKey.key

7 years agoImproved test coverage of oid.py
Victor Wagner [Wed, 22 Jun 2016 19:36:21 +0000 (22:36 +0300)]
Improved test coverage of oid.py

7 years agoMake 0.4.1 release
Victor Wagner [Wed, 22 Jun 2016 19:07:04 +0000 (22:07 +0300)]
Make 0.4.1 release

7 years agofix typo
Victor Wagner [Wed, 22 Jun 2016 13:48:17 +0000 (16:48 +0300)]
fix typo

7 years agoMerge branch 'master' of https://github.com/vbwagner/ctypescrypto
Victor Wagner [Wed, 22 Jun 2016 11:07:39 +0000 (14:07 +0300)]
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto

7 years agoNow x509 test passes on FreeBSD
Victor Wagner [Wed, 22 Jun 2016 10:52:30 +0000 (13:52 +0300)]
Now x509 test passes on FreeBSD

7 years agoMerge branch 'master' of https://github.com/vbwagner/ctypescrypto
Victor Wagner [Tue, 21 Jun 2016 17:30:19 +0000 (20:30 +0300)]
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto

7 years agocheck pubkeys in testec
Victor Wagner [Tue, 21 Jun 2016 17:30:15 +0000 (20:30 +0300)]
check pubkeys in testec

7 years agomore argtypes
Victor Wagner [Tue, 21 Jun 2016 17:29:49 +0000 (20:29 +0300)]
more argtypes

7 years agoSome more missing argtypes
Victor Wagner [Tue, 21 Jun 2016 16:04:29 +0000 (19:04 +0300)]
Some more missing argtypes

7 years agoUse openssl pkey to convert EC key into printable form before comparing, because...
Victor Wagner [Tue, 21 Jun 2016 14:51:35 +0000 (17:51 +0300)]
Use openssl pkey to convert EC key into printable form before comparing, because different openssl versions use different privkey formats

7 years agoMore missing added restype/argtypes
Victor Wagner [Tue, 21 Jun 2016 14:50:46 +0000 (17:50 +0300)]
More missing added restype/argtypes

7 years agoAdded some missing argtypes and restypes
Victor Wagner [Tue, 21 Jun 2016 07:28:30 +0000 (10:28 +0300)]
Added some missing argtypes and restypes

7 years agoFix error message in str
Victor Wagner [Mon, 20 Jun 2016 14:55:23 +0000 (17:55 +0300)]
Fix error message in str

7 years agoAdded prototypes for CMS_get0_type and OBJ_obj2nid
Victor Wagner [Mon, 20 Jun 2016 14:48:33 +0000 (17:48 +0300)]
Added prototypes for CMS_get0_type and OBJ_obj2nid

7 years agoCheck for CMS parsing error and don't pass None to CMS_get0_type. Fixes #3
Victor Wagner [Mon, 20 Jun 2016 14:01:30 +0000 (17:01 +0300)]
Check for CMS parsing error and don't pass None to CMS_get0_type. Fixes #3

8 years agoCompatibility with OpenSSL 1.1 completed
Victor Wagner [Sat, 6 Feb 2016 15:46:16 +0000 (18:46 +0300)]
Compatibility with OpenSSL 1.1 completed

8 years agoFix an error forgotten in previous commit
Victor Wagner [Sat, 6 Feb 2016 15:23:36 +0000 (18:23 +0300)]
Fix an error forgotten in previous commit

8 years agoFixed work with OpenSSL 1.1 of properties of X509 object which didn't have accessor...
Victor Wagner [Sat, 6 Feb 2016 15:20:20 +0000 (18:20 +0300)]
Fixed work with OpenSSL 1.1 of properties of X509 object which didn't have accessor functions before OpenSSL 1.1

8 years agoFixed incompatibility with OpenSSL 1.1-pre for digest, cipher and MAC modules. Change...
Victor Wagner [Sat, 6 Feb 2016 14:51:44 +0000 (17:51 +0300)]
Fixed incompatibility with OpenSSL 1.1-pre for digest, cipher and MAC modules. Changed added oid in tests for one which doesn't exists in OpenSSL 1.1 OID database

8 years agoMerge branch 'master' of https://github.com/vbwagner/ctypescrypto
Victor Wagner [Thu, 10 Sep 2015 12:18:28 +0000 (15:18 +0300)]
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto

8 years agoFix CMS module
Victor Wagner [Thu, 10 Sep 2015 12:12:41 +0000 (15:12 +0300)]
Fix CMS module

8 years agoFixed broken engine.set_default
Victor Wagner [Fri, 7 Aug 2015 12:38:59 +0000 (15:38 +0300)]
Fixed broken engine.set_default

8 years agoRemoved some pylint warnings from setup.py
Victor Wagner [Mon, 29 Jun 2015 20:56:17 +0000 (23:56 +0300)]
Removed some pylint warnings from setup.py

8 years agoFixed usage of named temporary file in tests, tests should run on Windows
Victor Wagner [Mon, 29 Jun 2015 12:47:25 +0000 (15:47 +0300)]
Fixed usage of named temporary file in tests, tests should run on Windows

8 years agoUse find_library to search for openssl libs
Victor Wagner [Mon, 29 Jun 2015 10:17:55 +0000 (13:17 +0300)]
Use find_library to search for openssl libs

8 years agoAdded setup.cfg and uploaded to Pypi. Fixes #1
Victor Wagner [Mon, 29 Jun 2015 09:21:23 +0000 (12:21 +0300)]
Added setup.cfg and uploaded to Pypi. Fixes #1

8 years agoFixed most pylint warning.
Victor Wagner [Sat, 27 Jun 2015 21:34:15 +0000 (00:34 +0300)]
Fixed most pylint warning.
Incompatibile interface changes: DigestType methods size, block_size and name become properties

8 years agoConverted tabs to spaces to make pylint happy
Victor Wagner [Sat, 27 Jun 2015 16:33:06 +0000 (19:33 +0300)]
Converted tabs to spaces to make pylint happy

9 years agofixed derive for GOST2001
Victor Wagner [Fri, 3 Apr 2015 16:38:33 +0000 (19:38 +0300)]
fixed derive for GOST2001

9 years agoFixed setting MAC context options. Added setting 'ukm' options for derive of GOST...
Victor Wagner [Mon, 2 Mar 2015 14:10:41 +0000 (17:10 +0300)]
Fixed setting MAC context options. Added setting 'ukm' options for derive of GOST 2001 keys (this option cannot be set via ctrl_str, only by numeric control command, so have to be handled special way)

9 years agoAdd X509 to __all__. Add pem() method to X509
Victor Wagner [Sun, 15 Feb 2015 11:36:30 +0000 (14:36 +0300)]
Add X509 to __all__. Add pem() method to X509

9 years agoAdded X509Name.__hash__
Victor Wagner [Wed, 4 Feb 2015 13:11:31 +0000 (16:11 +0300)]
Added X509Name.__hash__

9 years agoAdded support for MAC
Victor Wagner [Sun, 21 Dec 2014 19:27:10 +0000 (22:27 +0300)]
Added support for MAC

9 years agoCovered StackOfX509 by tests, fixed some typos in pkey docstrings
Victor Wagner [Sun, 21 Dec 2014 17:57:35 +0000 (20:57 +0300)]
Covered StackOfX509 by tests, fixed some typos in pkey docstrings

9 years agomore style cleanup
Victor Wagner [Sun, 21 Dec 2014 10:23:51 +0000 (13:23 +0300)]
more style cleanup

9 years agostyle fixes
Victor Wagner [Sun, 21 Dec 2014 10:04:43 +0000 (13:04 +0300)]
style fixes

9 years agoFixes some style. Improved tests coverage for bio,oid,digest and cipher. Prepare...
Victor Wagner [Sun, 21 Dec 2014 08:47:56 +0000 (11:47 +0300)]
Fixes some style. Improved tests coverage for bio,oid,digest and cipher. Prepare digest for inheritance in future mac module

9 years agoAdded vim modeline
Victor Wagner [Sat, 20 Dec 2014 13:13:50 +0000 (16:13 +0300)]
Added vim modeline

9 years agofix link
Victor Wagner [Sat, 20 Dec 2014 13:03:41 +0000 (16:03 +0300)]
fix link

9 years agoSome README.md improvements
Victor Wagner [Sat, 20 Dec 2014 13:00:57 +0000 (16:00 +0300)]
Some README.md improvements

9 years agoRemove writing of cipher.txt
Victor Wagner [Sat, 20 Dec 2014 12:56:52 +0000 (15:56 +0300)]
Remove writing of cipher.txt

9 years agoFix fallback timezone definition
Victor Wagner [Sat, 20 Dec 2014 12:55:09 +0000 (15:55 +0300)]
Fix fallback timezone definition

This fallback is used only when pytz is not installed, so it haven't
been tested yet

9 years agoUpdate README. Inherit everything from __builtin__.object
Victor Wagner [Sat, 20 Dec 2014 12:14:10 +0000 (15:14 +0300)]
Update README. Inherit everything from __builtin__.object

9 years agoImplemented minimal cert extension support
Victor Wagner [Sat, 20 Dec 2014 11:58:54 +0000 (14:58 +0300)]
Implemented minimal cert extension support

9 years agoupdated README.md to reflect code state
Victor Wagner [Sat, 20 Dec 2014 07:24:53 +0000 (10:24 +0300)]
updated README.md to reflect code state

9 years agoMerge branch 'master' of https://github.com/vbwagner/ctypescrypto
Victor Wagner [Sat, 20 Dec 2014 07:13:35 +0000 (10:13 +0300)]
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto
merged uncommited exception syntax changes

9 years agoFixed syntax of exceptions to python3 compatibility
Victor Wagner [Sat, 20 Dec 2014 07:13:29 +0000 (10:13 +0300)]
Fixed syntax of exceptions to python3 compatibility

9 years agoImplemented access to certificate fields by poking structure. Functions version,...
Victor Wagner [Fri, 19 Dec 2014 10:26:54 +0000 (13:26 +0300)]
Implemented access to certificate fields by poking structure. Functions version, startDate and endDate now work

9 years agoI've discovered Python's __all__ variable and make use of it in all modles
Victor Wagner [Mon, 15 Dec 2014 12:10:59 +0000 (15:10 +0300)]
I've discovered Python's __all__ variable and make use of it in all modles

9 years agoMerge branch 'master' of https://github.com/vbwagner/ctypescrypto
Victor Wagner [Thu, 30 Oct 2014 20:26:14 +0000 (23:26 +0300)]
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto

9 years agoAddedet length parameter to Digest.update
Victor Wagner [Thu, 30 Oct 2014 20:25:50 +0000 (23:25 +0300)]
Addedet length parameter to Digest.update

9 years agomore additions to README
Victor Wagner [Mon, 27 Oct 2014 13:37:50 +0000 (16:37 +0300)]
more additions to README

9 years agoimproved readme
Victor Wagner [Mon, 27 Oct 2014 13:35:37 +0000 (16:35 +0300)]
improved readme

9 years agoStackOfX509 (untested)
Victor Wagner [Mon, 27 Oct 2014 12:12:37 +0000 (15:12 +0300)]
StackOfX509 (untested)

9 years agoCMS verification implemented
Victor Wagner [Mon, 27 Oct 2014 10:04:21 +0000 (13:04 +0300)]
CMS verification implemented

9 years agoAdded tests for X509Store certificate verification
Victor Wagner [Mon, 27 Oct 2014 09:13:39 +0000 (12:13 +0300)]
Added  tests for X509Store certificate verification

9 years agoSuppot for python integer as key material
Victor Wagner [Sun, 26 Oct 2014 20:01:23 +0000 (23:01 +0300)]
Suppot for python integer as key material

9 years agoAdded some tests for X509 module
Victor Wagner [Sun, 26 Oct 2014 19:40:18 +0000 (22:40 +0300)]
Added some tests for X509 module

9 years agoAdded tests for ec key creation from raw material and for private key
Victor Wagner [Sun, 26 Oct 2014 11:43:56 +0000 (14:43 +0300)]
Added tests for ec key creation from raw material and for private key
serialization.

Added skeleton for cms module (never run)

9 years agocleaned up documentation
Victor Wagner [Sat, 25 Oct 2014 17:42:01 +0000 (21:42 +0400)]
cleaned up documentation

9 years agoFixed variable keylength error
Victor Wagner [Fri, 24 Oct 2014 14:08:15 +0000 (18:08 +0400)]
Fixed variable keylength error

9 years agoPartially implemented X509 object. Added unicode support to BIO
Victor Wagner [Fri, 24 Oct 2014 13:50:59 +0000 (17:50 +0400)]
Partially implemented X509 object. Added unicode support to BIO

9 years agoFix X509 construcor
Victor Wagner [Fri, 24 Oct 2014 08:55:12 +0000 (12:55 +0400)]
Fix X509 construcor

9 years agofix synax of x509.py, add raise NotImplemented for unimplemented methods
Victor Wagner [Fri, 24 Oct 2014 07:02:09 +0000 (11:02 +0400)]
fix synax of x509.py, add raise NotImplemented for unimplemented methods

9 years agoFix variable keylength on 64 bit env
Victor Wagner [Wed, 10 Sep 2014 12:22:00 +0000 (16:22 +0400)]
Fix variable keylength on 64 bit env

9 years agoAdded pbkdf module
Victor Wagner [Mon, 14 Jul 2014 09:41:26 +0000 (13:41 +0400)]
Added pbkdf module

9 years agofix forgotten encrypt=False in the test
Victor Wagner [Mon, 9 Jun 2014 08:51:36 +0000 (12:51 +0400)]
fix forgotten encrypt=False in the test

9 years agoCheck key and iv length. Handle variable key length ciphers
Victor Wagner [Sun, 8 Jun 2014 10:45:37 +0000 (14:45 +0400)]
Check key and iv length. Handle variable key length ciphers

9 years agoEnsured that encrypt and decrypt in test_ofb_noiv use physically different keys
Victor Wagner [Fri, 6 Jun 2014 13:59:55 +0000 (17:59 +0400)]
Ensured that encrypt and decrypt in test_ofb_noiv use physically  different keys

9 years agoAdded pkey serialization (untested) and started to implement x509
Victor Wagner [Fri, 6 Jun 2014 13:43:20 +0000 (17:43 +0400)]
Added pkey serialization (untested) and started to implement x509

9 years agoAdd *.pyc to .gitignore
Victor Wagner [Fri, 6 Jun 2014 11:33:32 +0000 (15:33 +0400)]
Add *.pyc to .gitignore

9 years agopkey generation testsd
Victor Wagner [Fri, 6 Jun 2014 11:32:47 +0000 (15:32 +0400)]
pkey generation testsd

9 years agoFirst tests for cipher
Victor Wagner [Fri, 6 Jun 2014 09:11:54 +0000 (13:11 +0400)]
First tests for cipher

9 years agoAdded more function declarations. Added @staticmethod to PKey.generate. Documented...
Victor Wagner [Fri, 6 Jun 2014 07:51:09 +0000 (11:51 +0400)]
Added more function declarations. Added @staticmethod to PKey.generate. Documented cipher.py and fixed some bugs

9 years agoNow passess sign/verify tests
Victor Wagner [Thu, 5 Jun 2014 18:20:20 +0000 (22:20 +0400)]
Now passess sign/verify tests

9 years agoMake setup actually run tests
Victor Wagner [Thu, 5 Jun 2014 16:42:09 +0000 (20:42 +0400)]
Make setup actually run tests

9 years agorewrote cipher module
Victor Wagner [Thu, 5 Jun 2014 14:11:37 +0000 (18:11 +0400)]
rewrote cipher module

9 years agocallback implemented
Victor Wagner [Thu, 5 Jun 2014 13:41:25 +0000 (17:41 +0400)]
callback implemented

9 years agoSome tests for rand module.
Victor Wagner [Thu, 5 Jun 2014 10:32:18 +0000 (14:32 +0400)]
Some tests for rand module.

9 years agodigest module covered by tests
Victor Wagner [Thu, 5 Jun 2014 10:18:33 +0000 (14:18 +0400)]
digest module covered by tests

9 years agoCovered bio.py with tests
Victor Wagner [Thu, 5 Jun 2014 09:22:41 +0000 (13:22 +0400)]
Covered bio.py with tests

9 years agoAdded first test file - for oid module
Victor Wagner [Thu, 5 Jun 2014 07:59:23 +0000 (11:59 +0400)]
Added first test file - for oid module

9 years agoRemoved x509 stuff from pkey.py and placed into separate file
Victor Wagner [Wed, 4 Jun 2014 20:38:12 +0000 (00:38 +0400)]
Removed x509 stuff from pkey.py and placed into separate file

9 years agoInitial commit of modules
Victor Wagner [Wed, 4 Jun 2014 20:14:26 +0000 (00:14 +0400)]
Initial commit of modules

9 years agoInitial commit
Victor Wagner [Wed, 4 Jun 2014 18:03:54 +0000 (22:03 +0400)]
Initial commit