Skip to content

Commit

Permalink
move code from signature/jws to signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritesh Bandi committed Jul 11, 2022
1 parent 488d0c9 commit faf962b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion signature/jws/plugin.go → signature/plugin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jws
package signature

import (
"context"
Expand Down
18 changes: 9 additions & 9 deletions signature/jws/plugin_test.go → signature/plugin_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jws
package signature

import (
"context"
Expand Down Expand Up @@ -190,10 +190,10 @@ func TestSigner_Sign_SignatureVerifyError(t *testing.T) {
}
signer := pluginSigner{
runner: &mockSignerPlugin{
KeyID: "1",
KeySpec: signer.RSA_2048,
Sign: func(payload []byte) []byte { return []byte("r a w") },
Certs: getBytes(cert),
KeyID: "1",
KeySpec: signer.RSA_2048,
Sign: func(payload []byte) []byte { return []byte("r a w") },
Certs: getBytes(cert),
},
keyID: "1",
}
Expand Down Expand Up @@ -222,10 +222,10 @@ func TestSigner_Sign_Valid(t *testing.T) {
}
pluginSigner := pluginSigner{
runner: &mockSignerPlugin{
KeyID: "1",
KeySpec: signer.RSA_2048,
Sign: validSign(t, key),
Certs: getBytes(cert),
KeyID: "1",
KeySpec: signer.RSA_2048,
Sign: validSign(t, key),
Certs: getBytes(cert),
},
keyID: "1",
}
Expand Down
2 changes: 1 addition & 1 deletion signature/jws/signer.go → signature/signer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jws
package signature

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion signature/jws/signer_test.go → signature/signer_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jws
package signature

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion signature/jws/verifier.go → signature/verifier.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jws
package signature

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jws
package signature

import (
"context"
Expand Down

0 comments on commit faf962b

Please sign in to comment.