Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Sep 30, 2024
1 parent 0c6d2c1 commit be9f019
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 60 deletions.
15 changes: 2 additions & 13 deletions elliptic/bign/curve/fiat/generate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build ignore

package main
Expand Down Expand Up @@ -130,11 +126,7 @@ func main() {
}
}

const tmplWrapper = `// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by generate.go. DO NOT EDIT.
const tmplWrapper = `// Code generated by generate.go. DO NOT EDIT.
package fiat
Expand Down Expand Up @@ -264,10 +256,7 @@ func {{ .Prefix }}InvertEndianness(v []byte) {
}
`

const tmplAddchain = `// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by {{ .Meta.Name }}. DO NOT EDIT.
const tmplAddchain = `// Code generated by {{ .Meta.Name }}. DO NOT EDIT.
package fiat
// Invert sets e = 1/x, and returns e.
//
Expand Down
4 changes: 0 additions & 4 deletions elliptic/bign/curve/fiat/p256.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions elliptic/bign/curve/fiat/p256_invert.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions elliptic/bign/curve/fiat/p384.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions elliptic/bign/curve/fiat/p384_invert.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions elliptic/bign/curve/fiat/p512.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions elliptic/bign/curve/fiat/p512_invert.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions elliptic/bign/curve/generate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build ignore

package main
Expand Down Expand Up @@ -158,10 +154,7 @@ func main() {
}
}

const tmplNISTEC = `// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by generate.go. DO NOT EDIT.
const tmplNISTEC = `// Code generated by generate.go. DO NOT EDIT.
{{ if .BuildTags }}
//go:build {{ .BuildTags }}
Expand Down
5 changes: 0 additions & 5 deletions elliptic/bign/curve/p256.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by generate.go. DO NOT EDIT.

package bign

import (
Expand Down
5 changes: 0 additions & 5 deletions elliptic/bign/curve/p384.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by generate.go. DO NOT EDIT.

package bign

import (
Expand Down
5 changes: 0 additions & 5 deletions elliptic/bign/curve/p512.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by generate.go. DO NOT EDIT.

package bign

import (
Expand Down

0 comments on commit be9f019

Please sign in to comment.