summaryrefslogtreecommitdiff
path: root/crypto
AgeCommit message (Collapse)Author
2025-04-14deps(actions): Bump golangci/golangci-lint-action from 6 to 7 (#2357)dependabot[bot]
* deps(actions): Bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix(lint): Fixing new lint errors Signed-off-by: Dave Henderson <dhenderson@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Dave Henderson <dhenderson@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dave Henderson <dhenderson@gmail.com>
2025-03-10chore(refactoring): Refactor/modernizations (#2345)Dave Henderson
chore(refactoring): Refactor with modernization refactorings * range over int * replace interface{} with any * replace common map operations with maps.Copy/maps.Clone * simplifying loops with slices.Contains/ContainsFunc * modernize benchmarks with b.Loop * modernize tests with t.Context * use fmt.Appendf * range over strings.SplitSeq * use new stdlib crypto/pbkdf2 package --------- Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2024-09-30fix(lint): Fix or ignore lint errors (#2228)Dave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2024-04-21Enable testifylint linter (#2044)Dave Henderson
* chore: Enable testifylint linter Signed-off-by: Dave Henderson <dhenderson@gmail.com> * chore: fix flaky IP lookup test Signed-off-by: Dave Henderson <dhenderson@gmail.com> --------- Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2024-01-22Use go-fsimpl to read from datasources (#1336)Dave Henderson
* Use go-fsimpl to read from datasources Signed-off-by: Dave Henderson <dhenderson@gmail.com> * trying to fix windows bug Signed-off-by: Dave Henderson <dhenderson@gmail.com> * attempts to fix some of the path madness Signed-off-by: Dave Henderson <dhenderson@gmail.com> * remove 'HOME' from expected env vars Signed-off-by: Dave Henderson <dhenderson@gmail.com> * more tweaks Signed-off-by: Dave Henderson <dhenderson@gmail.com> * lint fix Signed-off-by: Dave Henderson <dhenderson@gmail.com> --------- Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2023-12-17Add support for Ed25519 (#1900)Jared Horvat
* Add support for Ed25519 * Amended naming and added additional testing * Added changes from Dave's review * Next review: Fixed casing on error messages for linter | Fixed version number * Added Dave's suggestions in docs and updated built docs * Final push from Dave's review | Wrap crypto example in docs in quotes
2023-10-28A bunch of linting and refactorings (#1893)Dave Henderson
2023-04-29Use required.NoError for faster failure in testsDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2023-02-04Remove uses of pkg/errorsDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2022-06-12Parallelizing more testsDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2022-05-06a few tweaksDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2022-05-06LintJesper B. Rosenkilde
2022-05-06Add ECDSA generation functions to crypto funcsJesper B. Rosenkilde
ECDSAGenerateKey takes one of Go's supported named NIST curves and an argument and returns a newly generated EC private key PEM encoded. ECDSADerivePublicKey takes a PEM encoded EC private key and derives the corresponding public key, which is returned PEM encoded.
2022-03-22Various updates for Go 1.18Dave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2022-02-12New crypto.EncryptAES/DecryptAES functions (#1305)Dave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2021-09-24crypto.RSAGenerateKey - Enforce key length of at least 2048 bits (#1214)Dave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2021-01-02Moving lint config to config file, fixing some issuesDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2020-06-14New RSA encrypt/decrypt functions, and new base64.DecodeBytes functionDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2019-05-09Updating some package docsDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-09-24Return error instead of using log.FatalDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-08-28Updating gometalinter config and fixing new lint errorsDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2017-12-03Add crypto namespaceDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>