Commit graph

114 commits

Author SHA1 Message Date
Daniel Huigens
3e4e36b766 Update armor header URL 2019-05-15 11:37:57 +02:00
Daniel Huigens
e93f676571 Fix examples 2019-05-15 11:37:03 +02:00
Daniel Huigens
31e0d8a31a Merge branch 'signature-examples' into HEAD 2019-05-15 11:26:21 +02:00
Aron Wussler
60339e9764 Add examples for signatures 2019-05-15 11:25:33 +02:00
Daniel Huigens
d4cdec5229 Move subtle.go to its own package 2019-05-15 00:35:39 +02:00
Daniel Huigens
784c5cfc2e Update build.sh 2019-05-14 22:56:05 +02:00
Daniel Huigens
f08f01b7d9 Update installation instructions and examples; add TOC 2019-05-14 22:56:05 +02:00
Daniel Huigens
b2bab445eb Add Travis CI 2019-05-14 22:56:05 +02:00
Daniel Huigens
8a2433205e Update default armor headers 2019-05-14 22:56:05 +02:00
Daniel Huigens
1376870ff3 Merge branch 'gopenpgp' into 'master'
Rename go-pm-crypto to gopenpgp; prepare move to GitHub

See merge request ProtonMail/go-pm-crypto!22
2019-05-14 16:14:01 +00:00
Daniel Huigens
bb1be4a43b Rename PmCrypto to GopenPGP 2019-05-14 18:12:35 +02:00
Daniel Huigens
37cbb276fd Add LICENSE 2019-05-14 18:09:06 +02:00
Daniel Huigens
5942df2944 Remove notes.txt 2019-05-14 18:09:06 +02:00
Daniel Huigens
12e9d5dc19 Remove dist; .gitlab-ci.yml 2019-05-14 18:09:06 +02:00
Daniel Huigens
536a499f94 Rename go-pm-mime to go-mime 2019-05-14 18:09:06 +02:00
Daniel Huigens
da2e0f77f0 Rename package to gopenpgp 2019-05-14 18:09:06 +02:00
Daniel Huigens
7519408c0c Merge branch 'detached-signature-tests' into 'master'
Add signature tests, fix tests

See merge request ProtonMail/go-pm-crypto!18
2019-05-14 16:08:25 +00:00
Aron Wussler
b42e382224 Add signature tests, fix tests 2019-05-14 16:08:25 +00:00
Daniel Huigens
4081e693fc Fix build
`errors` import was missing due to conflicting PRs.
2019-05-14 16:51:02 +02:00
Daniel Huigens
0931705fce Merge branch 'addexamples' into 'master'
Add examples

See merge request ProtonMail/go-pm-crypto!20
2019-05-14 14:44:08 +00:00
Daniel Huigens
e4814f20a6 Merge branch 'linter' into 'master'
Add Linter

See merge request ProtonMail/go-pm-crypto!13
2019-05-14 14:42:38 +00:00
Aron Wussler
78e3abb0d8 go vet and lint
* Naming
    * If this is not some OpenPGP standard I follow rule that `DES` should be
      upper case as it is abreviation and `Triple` should be camel-case as it
      is normal word hence `TripleDES`
    * rename `errors2` -> `errorsPGP`
* long lines
    * https://github.com/golang/go/wiki/CodeReviewComments#line-length
    * I bit improved long lines based on my folding
    * reuse type in definition if possible i.e. `a string, b string, c string` -> `a,b,c string`
    * `if long_statetent(); err!=nil {` -> `long_statement;↵ if err!=nil {`
    * spaces around operators (e.g. `a + b` -> `a+b`)
* removing empty lines on start and end of scope
* comments
    * on all exported functions
    * start with function name
* import:
    * order in alphabet
    * separate native, golang.org/x/ and our libs
2019-05-14 14:42:38 +00:00
William Gotti
0421e1c829 Add Encrypt/Decrypt examples 2019-05-14 15:45:15 +02:00
Aron Wussler
8f830e09ac Add key generation examples 2019-05-14 15:45:15 +02:00
Daniel Huigens
e03fe86077 Merge branch 'fix/sym-password-incorrect' into 'master'
Don't loop forever when passed an incorrect password

See merge request ProtonMail/go-pm-crypto!19
2019-05-14 13:34:42 +00:00
Daniel Huigens
b1e3bd78d1 Don't loop forever when passed an incorrect password 2019-05-14 13:34:42 +00:00
Daniel Huigens
1f0d0c98f6 Merge branch 'examples' into 'master'
Add example skeleton to readme

See merge request ProtonMail/go-pm-crypto!16
2019-05-14 08:07:57 +00:00
Aron Wussler
354d846e79 Add example skeleton to readme 2019-05-14 08:07:56 +00:00
Daniel Huigens
d465cd8535 Merge branch 'renamefunc' into 'master'
refactor functions and merge in keyring

See merge request ProtonMail/go-pm-crypto!15
2019-05-14 08:07:49 +00:00
William Gotti
e1098f7d34 refactor functions and merge in keyring 2019-05-14 08:07:49 +00:00
Daniel Huigens
ef2f0e8340 Merge branch 'tests' into 'master'
Create key.go unit tests

See merge request ProtonMail/go-pm-crypto!10
2019-05-13 14:06:54 +00:00
Aron Wussler
8af460ba61 Create key.go unit tests 2019-05-13 14:06:54 +00:00
Daniel Huigens
9240e5d86a Merge branch 'fix/unused-code' into 'master'
Remove unused code + handle errors

See merge request ProtonMail/go-pm-crypto!12
2019-05-13 12:42:29 +00:00
William Gotti
b820c14c1a Remove unused code + handle errors 2019-05-13 12:42:29 +00:00
Daniel Huigens
e797299d64 Merge branch 'improve-doc' into 'master'
fix typo / improve documentatation

See merge request ProtonMail/go-pm-crypto!11
2019-05-13 12:33:01 +00:00
William Gotti
5cdec38a18 fix typo / improve documentatation 2019-05-13 12:33:01 +00:00
Daniel Huigens
701dc26ab5 Clean up README.md 2019-05-13 13:45:24 +02:00
Jakub
9b75197da8 fix rsa type 2019-05-10 12:53:48 +02:00
Jakub
532ce66247 found TODO while patching android 2019-05-10 08:08:03 +02:00
Aron Wussler
56a73b1532 Add new key tests 2019-05-09 20:13:30 +02:00
Aron Wussler
c9730189a7 Add code coverage to CI 2019-05-09 18:57:27 +02:00
Aron Wussler
fd27ec08fb Fix existing tests, move large constants to files 2019-05-09 18:19:14 +02:00
Jakub Cuth
5a5fe05f53 Merge branch 'fix/new-go-crypto' into 'master'
Fix for new go crypto

See merge request ProtonMail/go-pm-crypto!9
2019-05-01 15:47:17 +00:00
Jakub
388b564874 try ssh key for access 2019-05-01 17:35:39 +02:00
Jakub
2eea06b104 add glide 2019-05-01 16:53:29 +02:00
Jakub
8a907114c0 add ci 2019-05-01 16:39:04 +02:00
Jakub
21fe53fd5d update glide and add ci 2019-05-01 16:35:49 +02:00
Daniel Huigens
2091fc106c Use new KeyExpired function 2019-04-27 07:32:20 +02:00
Daniel Huigens
ea2fcb9438 Handle encrypt error in EncryptAttachment 2019-04-27 07:32:20 +02:00
Jakub
99c48c2e4e fix crash on missing keyring 2019-03-07 17:39:34 +01:00