jMyles
c3346ca53f
Point.from_bytes is now a classmethod.
2018-01-26 21:27:28 -08:00
jMyles
a11ea36e61
We can get a Capsule from either original or reconstructed bytes.
2018-01-26 21:27:28 -08:00
jMyles
6c0f260446
Comparing newly reconstructed Capsule (which is just a Capsule) to original.
2018-01-26 21:27:28 -08:00
jMyles
418f7be540
Test for single capsule, not ReconstructedCapsule.
2018-01-26 21:27:28 -08:00
tuxxy
b22508e2d9
Fix UmbralParameters on PRE.__init__
2018-01-26 01:31:25 -07:00
Tux
ceec8ad8ed
Merge pull request #33 from tuxxy/aead-dem
...
Implement cryptography.io's AEAD for ChaCha20-Poly1305 in the UmbralDEM
2018-01-26 00:21:31 -07:00
tuxxy
050b0b3bdd
Use constants in tests and add comment
2018-01-25 17:06:17 -07:00
tuxxy
6379605eb5
Merge branch 'master' of github.com:nucypher/pyUmbral
2018-01-24 18:19:29 -07:00
tuxxy
5043a49488
Fix UmbralParameters on PRE.__init__
2018-01-24 18:18:22 -07:00
Tux
fd0879def1
Merge pull request #34 from tuxxy/static-h-u
...
Set UmbralParameters `h` and `u` statically to the curve generator point
2018-01-24 18:03:57 -07:00
tuxxy
831a2b6d67
Set params h and u to generator point and use default UmbralParameters on __init__
2018-01-24 15:16:34 -07:00
tuxxy
405a93cd35
Add tests for DEM and some fixes
2018-01-24 14:52:49 -07:00
tuxxy
c4c0d93b05
Switch to cryptography.io ChaCha20-Poly1305 AEAD
2018-01-24 14:34:14 -07:00
Tux
d91b0bf310
Merge pull request #32 from nucypher/kms-depend
...
Merge #29 into master
2018-01-23 20:02:22 -07:00
Tux
21c0a32bd3
Merge pull request #29 from tuxxy/kms-depend
...
Implement Simple API to PRE and add UmbralDEM class
2018-01-23 20:01:12 -07:00
tuxxy
f7687d0f81
Name unused variables
...
Add more unused variables
2018-01-23 20:00:15 -07:00
tuxxy
b1f04f7d54
Calculate recipient public key from recipient's private key in decrypt_reencrypted
2018-01-23 13:50:14 -07:00
tuxxy
4974686d30
Use priv/pub_key_alice in test
2018-01-23 13:46:12 -07:00
tuxxy
3eafb28897
Add tests and fix a few things
2018-01-23 04:28:51 -07:00
tuxxy
250cf3c0ee
Add simple API
2018-01-23 03:13:08 -07:00
tuxxy
74f989e887
Use basic DEM principles
...
Had a call with David, we discussed how we're implemting the needed API
changes. We're going to use Umbral for Michael's API request. This DEM
will be kept simple and simply use NaCl Salsa20-Poly1305 SecretBox.
Add KEYSIZE attr on UmbralDEM
2018-01-23 02:46:01 -07:00
tuxxy
3a8f4c81cd
Add skeleton of DEM
2018-01-23 00:40:36 -07:00
tuxxy
00c5089b8b
Add tests for checking generated keys
2018-01-23 00:34:33 -07:00
tuxxy
8cce1816fe
Add gen_key classmethods to UmbralPrivateKey and UmbralPublicKey
...
Actually return key
2018-01-23 00:33:34 -07:00
tuxxy
0131fb866f
Undo DH derivation via affine
2018-01-22 12:01:58 -07:00
tuxxy
0104492e16
Use compressed point in KDF
2018-01-22 11:58:10 -07:00
Tux
cc2adabc81
Merge pull request #23 from tuxxy/key-classes
...
Add Key classes and add some fixes
2018-01-19 18:26:13 -07:00
tuxxy
428e9340c4
Merge DH fixes
2018-01-19 16:48:49 -07:00
tuxxy
bce75f363d
Fix Diffie-Hellman derivation
2018-01-19 07:08:18 -07:00
tuxxy
3af88da1f5
Allow KDF function to accept arbitrary data, not just points
2018-01-19 07:00:52 -07:00
tuxxy
9bb9168323
Add tests for UmbralPrivateKey and UmbralPublicKey
2018-01-19 06:08:39 -07:00
tuxxy
dd37964394
Implement save_key method on UmbralPublicKey
2018-01-19 06:08:39 -07:00
tuxxy
de56b5a033
Implement method save_key for UmbralPrivateKey with key encryption using Scrypt-Salsa20-Poly1305
2018-01-19 06:08:39 -07:00
tuxxy
03d2a678cf
Implement classmethod load_key for UmbralPrivate/PublicKey classes
2018-01-19 06:08:39 -07:00
tuxxy
8b5fec3fdb
Add skeleton UmbralPrivateKey and UmbralPublicKey objects
2018-01-19 06:08:39 -07:00
tuxxy
716c4a3b45
Use additive notation for scalar multiplication
...
Fix spacing
Use vector notation on consistency check
2018-01-19 06:07:59 -07:00
tuxxy
0036d73891
Implement __rmul__ on Point and add type checking in BigNum.__mul__
2018-01-18 00:31:15 -07:00
Justin Holmes
82bb5f880c
Merge pull request #18 from jMyles/master
...
Adding some note comments to tests to explain internals.
2018-01-17 14:22:39 -05:00
jMyles
a3a9180dfd
More description of bytestrings lengths.
2018-01-17 14:17:00 -05:00
jMyles
2145debe21
Using "kfrags" as a name for KFrags throughout test.
2018-01-17 14:17:00 -05:00
jMyles
9689817b01
Here's what my linter has to say about the tests. :-)
2018-01-17 14:16:59 -05:00
jMyles
f79ca09393
A more informative way to show the proper number of bytes for a CFrag.
2018-01-17 14:15:23 -05:00
David Nuñez
599bad38b3
Include pub_a and pub_b as input to the kFrag signature to avoid
...
potential reuse of kFrags from other RKs (i.e., not from A to B)
2018-01-17 17:54:37 +01:00
David Nuñez
97340ec0c5
Updated variable names to include type
2018-01-17 11:37:34 +01:00
Tux
3f6586b678
Merge pull request #15 from tuxxy/serialization
...
Implement serialization
2018-01-16 11:27:35 -07:00
tuxxy
5939000a52
Add typehinting for curve objects
2018-01-16 11:24:54 -07:00
tuxxy
3817109ae0
Use staticmethods for from_bytes methods
2018-01-16 11:17:41 -07:00
tuxxy
763a7271c7
Fix naming from KFrag.point_key to KFrag.bn_key
2018-01-16 11:08:13 -07:00
tuxxy
8555d36f9b
Use EC_POINT_clear_free instead of EC_POINT_free
2018-01-15 17:24:38 -07:00
tuxxy
2cdfbf1869
Use BN_clear_free instead of BN_free
2018-01-15 17:24:21 -07:00