Skip to content

Commit

Permalink
Internal Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 604180207
  • Loading branch information
CertoToStore Team authored and copybara-github committed Feb 5, 2024
1 parent fc95a03 commit 026a523
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions certtostore.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ const (
RSA Algorithm = "RSA"
)

func (a Algorithm) Tox509() x509.PublicKeyAlgorithm {
switch a {
case EC:
return x509.ECDSA
case RSA:
return x509.RSA
default:
return 0
}
}

// GenerateOpts holds parameters used to generate a private key.
type GenerateOpts struct {
// Algorithm to be used, either RSA or EC.
Expand Down

0 comments on commit 026a523

Please sign in to comment.