0
0
Fork 0
Commit Graph

11 Commits

Author SHA1 Message Date
Gibheer e95929ed26 Add ToPem() to public keys
This was missing before from all public keys.
2017-05-12 22:19:25 +02:00
Gibheer b6c44317f5 add proper pem interface
This should finally resolve the completely broken and wrong API to get a
pem representation of a resource.
2017-05-12 15:27:44 +02:00
Gibheer 301d931ad7 reformat everything with gofmt
Yes, I know that this will more or less destroy the history, but it had
to be done. I also adjusted my editor to use gofmt rules by default now.
2015-03-25 20:36:21 +01:00
Gibheer 11423e25b5 fix go evt problem
Go vet reported a problem with the interface of WriteTo returning an
int.

  Line 13: method WriteTo(stream io.Writer) (int, error)
        should have signature WriteTo(io.Writer) (int64, error)

To fix that problem, the interface was changed to return io.WriterTo,
which uses int64 for return values.
2015-03-25 20:12:41 +01:00
Gibheer 6b355e272b add more documentation to ecdsa 2015-03-16 21:25:01 +01:00
Gibheer b7f4f3ae21 adjust comments on ecdsa a bit 2015-03-16 17:11:08 +01:00
Gibheer 4157d8e07a make raw private key public 2015-03-15 20:06:09 +01:00
Gibheer 80db488cbd add public key loader
This adds a way to restore a public key from any data source.
2015-02-19 21:48:08 +01:00
Gibheer 639a5379e9 add sign and verification to ecdsa
This commit adds support to sign and verify messages using ecdsa.
2015-02-18 22:55:29 +01:00
Gibheer 53327f7467 add pem support to public key
This adds pem support to public keys which can now be handled the same
way as private keys.
2015-02-17 21:43:21 +01:00
Gibheer f9164f3f99 initial commit for pki
pki is a small library to make building some of the crypto stuff easier
in go.
2015-02-15 21:04:59 +01:00