818b006521
Add an example for ED25519 keys.
Adam Wick2019-05-28 21:35:33 -07:00
bae1c93c54
Add examples for the ECDSA code.
Adam Wick2019-05-28 21:30:04 -07:00
ef3174f224
Fix an overflow in DSA key generation.
Adam Wick2019-05-28 21:02:55 -07:00
89c8705779
[BROKEN] Start the process of adding examples to the top of the files, and in doing so note that DSA key generation is broken.
Adam Wick2019-05-27 21:42:40 -07:00
080c8f18e2
Update some top-level documentation.
Adam Wick2019-05-27 20:48:56 -07:00
060b82b351
Update the x.509 documentation ... which made a number of flaws very obvious.
Adam Wick2019-05-27 20:46:34 -07:00
ba2ceee725
Update the SSH documentation.
Adam Wick2019-05-27 20:28:34 -07:00
4d2e43620a
Add documentation for the RSA tree.
Adam Wick2019-05-27 20:13:04 -07:00
b0885722a8
Convert into double() methods.
Adam Wick2019-05-26 15:32:30 -07:00
83cdd8ef4c
Use From methods, rather than function converters.
Adam Wick2019-05-26 15:21:59 -07:00
2f395721bc
[CHECKPOINT] Tidy, tidy, tidy.
Adam Wick2019-05-26 15:03:42 -07:00
2b63dfa376
Shift sq2/pow22523. Everything should be properly in FieldElement now.
Adam Wick2019-05-26 14:27:52 -07:00
fc09ff48a2
Shift over fe_cmov/fe_isnonzero/fe_isnegative.
Adam Wick2019-05-26 14:20:16 -07:00
c9f418feff
Convert negation and inverstion into more reasonable operations.
Adam Wick2019-05-26 09:51:17 -07:00
ac380d08af
Move fe_square() into square() and square_mut() in FieldElement.
Adam Wick2019-05-25 16:59:56 -07:00
25746af626
Shift fe_mul to normal Rust multiplication operations.
Adam Wick2019-05-25 16:37:04 -07:00
16cf6172ce
Support reading and writing ED25519 SSH keys.
Adam Wick2019-05-22 19:57:20 -07:00
d2bdbd37fe
Shift to +/- from fe_add/fe_sub.
Adam Wick2019-05-22 19:56:10 -07:00
e6e3789127
Pull to_bytes() into FieldElement.
Adam Wick2019-05-21 19:45:08 -07:00
8bca480e47
Move fe_frombytes into FieldElement.
Adam Wick2019-05-20 21:17:53 -07:00
b42902e6ab
Shift from_bytes into the Point impl.
Adam Wick2019-05-18 17:38:55 -07:00
44618c2e2f
type Element --> struct FieldElement
Adam Wick2019-05-16 17:27:29 -07:00
4c03ab6648
Move the encoding code into the point module.
Adam Wick2019-05-16 10:44:57 -07:00
1b2d7db1e0
Remove rust-crypto dependency (only used during debugging), and split KeyPair into Private/Public parts.
Adam Wick2019-05-15 21:38:25 -07:00
9cf0b587b2
Checkpoint: Signing seems to work, but there's a lot of cruft and cross-checks.
Adam Wick2019-05-15 18:11:23 -07:00
d459850c54
This is a very naive Rust tanslation of the basic math behind the ed25519 crypto scheme.
Adam Wick2019-05-14 21:54:59 -07:00