Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
The source of this repository is now git.zero-knowledge.org/gibheer/pki
|
|
|
|
Back when this file was created, ed25519 wasn't available as it is
today, 8 years later.
Now ed25519 is implemented in go directly, so use their work instead of
an upstream project that is now gone.
|
|
This was missing before from all public keys.
|
|
This should finally resolve the completely broken and wrong API to get a
pem representation of a resource.
|
|
The returned type must be io.WriterTo to make it fit the Pemmer
interface.
|
|
This makes them use the Pemmer interface and therefore doesn't require
any weird control code to handle these two special cases.
|
|
This adds the tests for the ed25519 keys.
|
|
This adds the ed25519 implementation. It implements most of the API,
apart from three functions.
Both MarshalPem methods write the raw bytes to the channel instead of
exporting it into ASN.1. Maybe this needs to be fixed.
The PrivateKey() function does not return a crypto.PrivateKey at the
moment, as the ed25519 private key does not implement that interface.
|
|
This adds finally support to sign and verify messages using an RSA
private and public key.
The method used is PKCS1v15, as it was the easiest to implement first.
There is also PSS available in go, so that could be implemented later.
|
|
This finally adds support for the rsa public key.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
This adds the IsCA and ca length options to define, if the resulting
certificate should be a CA.
|
|
|
|
|
|
This adds the API to generate certificates in the same way certificate
sign requests were built.
It works but still lacks some features and fields.
|
|
|
|
|
|
With the options it is now finished. The only stuff left to do is to add
all options provided by the go API. But this should be sufficient.
|
|
|
|
|
|
|
|
|
|
|
|
This adds a way to restore a public key from any data source.
|
|
This commit adds support to sign and verify messages using ecdsa.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This adds pem support to public keys which can now be handled the same
way as private keys.
|
|
|
|
|
|
pki is a small library to make building some of the crypto stuff easier
in go.
|