Skip to content

Commit

Permalink
Run make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Aug 3, 2023
1 parent c1d883c commit 213ada0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions kms/capi/capi_no_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package capi

import (
"context"

"github.com/pkg/errors"
"go.step.sm/crypto/kms/apiv1"
)
Expand Down
5 changes: 3 additions & 2 deletions kms/capi/ncrypt_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (
"encoding/binary"
"errors"
"fmt"
"golang.org/x/sys/windows"
"unsafe"

"golang.org/x/sys/windows"
)

const (
Expand Down Expand Up @@ -152,7 +153,7 @@ type BCRYPT_PKCS1_PADDING_INFO struct {
pszAlgID *uint16
}

//CRYPTOAPI_BLOB -- https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa381414(v=vs.85)
// CRYPTOAPI_BLOB -- https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa381414(v=vs.85)
type CRYPTOAPI_BLOB struct {
len uint32
data uintptr
Expand Down
9 changes: 9 additions & 0 deletions kms/tpmkms/no_tpmkms.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

package tpmkms

import (
"context"
"os"
"path/filepath"

"github.com/pkg/errors"
"go.step.sm/crypto/kms/apiv1"
)

func init() {
apiv1.Register(apiv1.TPMKMS, func(ctx context.Context, opts apiv1.Options) (apiv1.KeyManager, error) {
name := filepath.Base(os.Args[0])
Expand Down

0 comments on commit 213ada0

Please sign in to comment.