Skip to content

Commit f6a01d7

Browse files
committed
chore: gofmt
1 parent c05df59 commit f6a01d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

internal/gen/jwkkeys/jwkkeys.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ type JWK struct {
3232
Algorithm string `json:"alg,omitempty"`
3333
Extractable *bool `json:"ext,omitempty"`
3434
// RSA specific fields
35-
Modulus string `json:"n,omitempty"`
36-
Exponent string `json:"e,omitempty"`
35+
Modulus string `json:"n,omitempty"`
36+
Exponent string `json:"e,omitempty"`
3737
// RSA private key fields
38-
PrivateExponent string `json:"d,omitempty"`
39-
FirstPrimeFactor string `json:"p,omitempty"`
40-
SecondPrimeFactor string `json:"q,omitempty"`
38+
PrivateExponent string `json:"d,omitempty"`
39+
FirstPrimeFactor string `json:"p,omitempty"`
40+
SecondPrimeFactor string `json:"q,omitempty"`
4141
FirstFactorCRTExponent string `json:"dp,omitempty"`
4242
SecondFactorCRTExponent string `json:"dq,omitempty"`
4343
FirstCRTCoefficient string `json:"qi,omitempty"`
@@ -89,8 +89,8 @@ func generateRSAKeyPair(keyID string) (*KeyPair, error) {
8989
Modulus: base64.RawURLEncoding.EncodeToString(publicKey.N.Bytes()),
9090
Exponent: base64.RawURLEncoding.EncodeToString(bigIntToBytes(publicKey.E)),
9191
PrivateExponent: base64.RawURLEncoding.EncodeToString(privateKey.D.Bytes()),
92-
FirstPrimeFactor: base64.RawURLEncoding.EncodeToString(privateKey.Primes[0].Bytes()),
93-
SecondPrimeFactor: base64.RawURLEncoding.EncodeToString(privateKey.Primes[1].Bytes()),
92+
FirstPrimeFactor: base64.RawURLEncoding.EncodeToString(privateKey.Primes[0].Bytes()),
93+
SecondPrimeFactor: base64.RawURLEncoding.EncodeToString(privateKey.Primes[1].Bytes()),
9494
FirstFactorCRTExponent: base64.RawURLEncoding.EncodeToString(privateKey.Precomputed.Dp.Bytes()),
9595
SecondFactorCRTExponent: base64.RawURLEncoding.EncodeToString(privateKey.Precomputed.Dq.Bytes()),
9696
FirstCRTCoefficient: base64.RawURLEncoding.EncodeToString(privateKey.Precomputed.Qinv.Bytes()),

0 commit comments

Comments
 (0)