aboutsummaryrefslogtreecommitdiff
path: root/rsa.go
AgeCommit message (Collapse)AuthorFilesLines
2017-05-12add proper pem interfaceGibheer1-2/+11
This should finally resolve the completely broken and wrong API to get a pem representation of a resource.
2015-07-12add support for signing for rsaGibheer1-2/+12
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.
2015-07-11implement rsa public keyGibheer1-1/+7
This finally adds support for the rsa public key.
2015-03-25reformat everything with gofmtGibheer1-32/+38
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-25fix go evt problemGibheer1-4/+5
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-15make raw private key publicGibheer1-1/+1
2015-02-19add documentation to rsa functionsGibheer1-0/+3
2015-02-19add public key loaderGibheer1-0/+4
This adds a way to restore a public key from any data source.
2015-02-18add sign and verification to ecdsaGibheer1-2/+2
This commit adds support to sign and verify messages using ecdsa.
2015-02-18add MarshalPem() to rsa public keyGibheer1-1/+4
2015-02-18add marshal supportGibheer1-3/+6
2015-02-18add pem label for rsaGibheer1-0/+4
2015-02-17add pem support to public keyGibheer1-1/+5
This adds pem support to public keys which can now be handled the same way as private keys.
2015-02-15initial commit for pkiGibheer1-0/+54
pki is a small library to make building some of the crypto stuff easier in go.