Skip to content

Commit 37c47ed

Browse files
committed
more things private
1 parent 536496b commit 37c47ed

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

internal/scti/ctlog.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type log struct {
2323
// is also its submission prefix, as per https://c2sp.org/static-ct-api.
2424
origin string
2525
// signSCT Signs SCTs.
26-
signSCT SignSCT
26+
signSCT signSCT
2727
// chainValidationOpts contains various parameters for certificate chain
2828
// validation.
2929
chainValidationOpts ChainValidationOpts
@@ -65,7 +65,7 @@ func NewLog(ctx context.Context, origin string, signer crypto.Signer, cvOpts Cha
6565
}
6666

6767
log.signSCT = func(leaf *ct.MerkleTreeLeaf) (*ct.SignedCertificateTimestamp, error) {
68-
return BuildV1SCT(signer, leaf)
68+
return buildV1SCT(signer, leaf)
6969
}
7070

7171
log.chainValidationOpts = cvOpts

internal/scti/handlers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func setupTest(t *testing.T, pemRoots []string, signer crypto.Signer) handlerTes
102102
TimeSource: fakeTimeSource,
103103
}
104104
signSCT := func(leaf *ct.MerkleTreeLeaf) (*ct.SignedCertificateTimestamp, error) {
105-
return BuildV1SCT(signer, leaf)
105+
return buildV1SCT(signer, leaf)
106106
}
107107
log := log{
108108
storage: info.storage,

internal/scti/signatures.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232

3333
const nanosPerMilli int64 = int64(time.Millisecond / time.Nanosecond)
3434

35-
// SignSCT builds an SCT for a leaf.
36-
type SignSCT func(leaf *ct.MerkleTreeLeaf) (*ct.SignedCertificateTimestamp, error)
35+
// signSCT builds an SCT for a leaf.
36+
type signSCT func(leaf *ct.MerkleTreeLeaf) (*ct.SignedCertificateTimestamp, error)
3737

3838
// TODO(phboneff): create an SCTSigner object
39-
func BuildV1SCT(signer crypto.Signer, leaf *ct.MerkleTreeLeaf) (*ct.SignedCertificateTimestamp, error) {
39+
func buildV1SCT(signer crypto.Signer, leaf *ct.MerkleTreeLeaf) (*ct.SignedCertificateTimestamp, error) {
4040
// Serialize SCT signature input to get the bytes that need to be signed
4141
sctInput := ct.SignedCertificateTimestamp{
4242
SCTVersion: ct.V1,

internal/scti/signatures_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestBuildV1MerkleTreeLeafForCert(t *testing.T) {
5353
if err != nil {
5454
t.Fatalf("buildV1MerkleTreeLeafForCert()=nil,%v; want _,nil", err)
5555
}
56-
got, err := BuildV1SCT(signer, leaf)
56+
got, err := buildV1SCT(signer, leaf)
5757
if err != nil {
5858
t.Fatalf("buildV1SCT()=nil,%v; want _,nil", err)
5959
}
@@ -109,7 +109,7 @@ func TestSignV1SCTForPrecertificate(t *testing.T) {
109109
if err != nil {
110110
t.Fatalf("buildV1MerkleTreeLeafForCert()=nil,%v; want _,nil", err)
111111
}
112-
got, err := BuildV1SCT(signer, leaf)
112+
got, err := buildV1SCT(signer, leaf)
113113
if err != nil {
114114
t.Fatalf("buildV1SCT()=nil,%v; want _,nil", err)
115115
}

0 commit comments

Comments
 (0)