Commit Graph

11 Commits (d6d3a272a7a310dac83ce9d6e00f5fb74a03ff2c)

Author SHA1 Message Date
Bogdan Opanchuk 7abd5c09d0 Make SecretKey and SecretKeyFactory serializable via `to_secret_bytes()` instead of `bytes()` 2021-07-19 15:08:29 -07:00
Bogdan Opanchuk 42b287705d Get rid of GenericError
In all cases where it is used it is just ValueError
2021-06-06 22:51:07 -07:00
Bogdan Opanchuk 32a612c99d Split Serializable into (De)Serializable 2021-06-03 14:34:37 -07:00
Bogdan Opanchuk f57c4ba5a4 Add VerifiedKeyFrag.from_verified_bytes() for the purposes of Nucypher's datastore 2021-06-01 23:55:48 -07:00
Bogdan Opanchuk 84883b85da Enforce CapsuleFrag verification before decryption 2021-05-26 22:13:43 -07:00
Bogdan Opanchuk 65d32fd63e Enforce KeyFrag verification before reencryption 2021-05-26 22:13:43 -07:00
Bogdan Opanchuk c46fdf6cdb Add a TODO in CapsuleFrag.verify() and bail early if the signature is not correct 2021-05-26 22:13:43 -07:00
Bogdan Opanchuk a2d4bfd363 Resolve circular dependency keys-signing-hashing
Have to regenerate the vectors because kfrag signature is now created with a different DST
2021-05-26 22:13:43 -07:00
Bogdan Opanchuk 6545eacca2 Move SecretKey signing capabilities to a Signer class 2021-05-26 22:13:43 -07:00
Bogdan Opanchuk a08a552708 Replace `dem.ErrorInvalidTag` and `Capsule.NotValid` with `GenericError`. 2021-03-28 12:51:46 -07:00
Bogdan Opanchuk 0f82580c7e Add some API docs 2021-03-28 12:51:45 -07:00