Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helpers/derhelpers: remove support for go1.12 #1254

Merged
merged 1 commit into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions helpers/derhelpers/derhelpers-legacy.go

This file was deleted.

2 changes: 0 additions & 2 deletions helpers/derhelpers/derhelpers.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build go1.13

// Package derhelpers implements common functionality
// on DER encoded data
package derhelpers
Expand Down
3 changes: 1 addition & 2 deletions helpers/derhelpers/ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ package derhelpers

import (
"crypto"
"crypto/ed25519"
"crypto/x509/pkix"
"encoding/asn1"
"errors"

"golang.org/x/crypto/ed25519"
)

var errEd25519WrongID = errors.New("incorrect object identifier")
Expand Down
3 changes: 1 addition & 2 deletions helpers/derhelpers/ed25519_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ package derhelpers

import (
"bytes"
"crypto/ed25519"
"encoding/pem"
"testing"

"golang.org/x/crypto/ed25519"
)

var testPubKey = `-----BEGIN PUBLIC KEY-----
Expand Down