@@ -9,4 +9,4 @@
|
|||||||
"ocspResponderURL": "",
|
"ocspResponderURL": "",
|
||||||
"externalAccountBindingRequired": false
|
"externalAccountBindingRequired": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
// PERFORMANCE OF THIS SOFTWARE.
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
// Package keys provides utilities for generating cryptographic keys
|
|
||||||
package keys
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -24,7 +23,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Type represents the type of cryptographic key
|
|
||||||
type Type string
|
type Type string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -75,10 +75,10 @@ func TestEncodeCertificate(t *testing.T) {
|
|||||||
|
|
||||||
func TestEncodePrivateKey(t *testing.T) {
|
func TestEncodePrivateKey(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
generateKey func() (crypto.Signer, error)
|
generateKey func() (crypto.Signer, error)
|
||||||
expectedType string
|
expectedType string
|
||||||
parseFunc func([]byte) (crypto.Signer, error)
|
parseFunc func([]byte) (crypto.Signer, error)
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "ECDSA P256",
|
name: "ECDSA P256",
|
||||||
@@ -337,4 +337,4 @@ func mustGenerateKey(gen func() (crypto.Signer, error)) crypto.Signer {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
return key
|
return key
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user