mirror of
https://github.com/luxfi/age.git
synced 2026-07-27 03:39:38 +00:00
refactor: module github.com/luxfi/age (renamed from filippo.io/age)
This commit is contained in:
@@ -55,8 +55,8 @@ import (
|
||||
"slices"
|
||||
"sort"
|
||||
|
||||
"filippo.io/age/internal/format"
|
||||
"filippo.io/age/internal/stream"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"github.com/luxfi/age/internal/stream"
|
||||
)
|
||||
|
||||
// An Identity is passed to [Decrypt] to unwrap an opaque file key from a
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age"
|
||||
"github.com/luxfi/age"
|
||||
)
|
||||
|
||||
func ExampleEncrypt() {
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"filippo.io/edwards25519"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
"golang.org/x/crypto/curve25519"
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/agessh"
|
||||
"github.com/luxfi/age/agessh"
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"crypto/rsa"
|
||||
"fmt"
|
||||
|
||||
"filippo.io/age"
|
||||
"github.com/luxfi/age"
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/armor"
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/armor"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
)
|
||||
|
||||
func ExampleNewWriter() {
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"os"
|
||||
"runtime/debug"
|
||||
|
||||
"filippo.io/age/internal/inspect"
|
||||
"github.com/luxfi/age/internal/inspect"
|
||||
)
|
||||
|
||||
const usage = `Usage:
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"runtime/debug"
|
||||
"time"
|
||||
|
||||
"filippo.io/age"
|
||||
"github.com/luxfi/age"
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/plugin"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/plugin"
|
||||
)
|
||||
|
||||
const usage = `age-plugin-batchpass is an age plugin that enables non-interactive
|
||||
|
||||
+5
-5
@@ -20,11 +20,11 @@ import (
|
||||
"strings"
|
||||
"unicode"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/agessh"
|
||||
"filippo.io/age/armor"
|
||||
"filippo.io/age/internal/term"
|
||||
"filippo.io/age/plugin"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/agessh"
|
||||
"github.com/luxfi/age/armor"
|
||||
"github.com/luxfi/age/internal/term"
|
||||
"github.com/luxfi/age/plugin"
|
||||
)
|
||||
|
||||
const usage = `Usage:
|
||||
|
||||
+5
-5
@@ -11,8 +11,8 @@ import (
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/plugin"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/plugin"
|
||||
"github.com/rogpeppe/go-internal/testscript"
|
||||
)
|
||||
|
||||
@@ -58,9 +58,9 @@ var buildExtraCommands = sync.OnceValue(func() error {
|
||||
if testing.CoverMode() != "" {
|
||||
cmd.Args = append(cmd.Args, "-cover")
|
||||
}
|
||||
cmd.Args = append(cmd.Args, "filippo.io/age/cmd/age-keygen")
|
||||
cmd.Args = append(cmd.Args, "filippo.io/age/extra/age-plugin-pq")
|
||||
cmd.Args = append(cmd.Args, "filippo.io/age/cmd/age-plugin-batchpass")
|
||||
cmd.Args = append(cmd.Args, "github.com/luxfi/age/cmd/age-keygen")
|
||||
cmd.Args = append(cmd.Args, "github.com/luxfi/age/extra/age-plugin-pq")
|
||||
cmd.Args = append(cmd.Args, "github.com/luxfi/age/cmd/age-plugin-batchpass")
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
return cmd.Run()
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"filippo.io/age"
|
||||
"github.com/luxfi/age"
|
||||
)
|
||||
|
||||
// LazyScryptIdentity is an age.Identity that requests a passphrase only if it
|
||||
|
||||
+6
-6
@@ -13,12 +13,12 @@ import (
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/agessh"
|
||||
"filippo.io/age/armor"
|
||||
"filippo.io/age/internal/term"
|
||||
"filippo.io/age/plugin"
|
||||
"filippo.io/age/tag"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/agessh"
|
||||
"github.com/luxfi/age/armor"
|
||||
"github.com/luxfi/age/internal/term"
|
||||
"github.com/luxfi/age/plugin"
|
||||
"github.com/luxfi/age/tag"
|
||||
"golang.org/x/crypto/cryptobyte"
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"filippo.io/age/armor"
|
||||
"filippo.io/age/internal/term"
|
||||
"github.com/luxfi/age/armor"
|
||||
"github.com/luxfi/age/internal/term"
|
||||
)
|
||||
|
||||
// l is a logger with no prefixes.
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"os"
|
||||
"runtime/debug"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/internal/bech32"
|
||||
"filippo.io/age/plugin"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/internal/bech32"
|
||||
"github.com/luxfi/age/plugin"
|
||||
)
|
||||
|
||||
const usage = `Usage:
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"os"
|
||||
"runtime/debug"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/plugin"
|
||||
"filippo.io/age/tag"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/plugin"
|
||||
"github.com/luxfi/age/tag"
|
||||
)
|
||||
|
||||
const usage = `age-plugin-tag is an age plugin for P-256 tagged recipients. These are supported
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"os"
|
||||
"runtime/debug"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/plugin"
|
||||
"filippo.io/age/tag"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/plugin"
|
||||
"github.com/luxfi/age/tag"
|
||||
)
|
||||
|
||||
const usage = `age-plugin-tagpq is an age plugin for ML-KEM-768 + P-256 post-quantum hybrid
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/bech32"
|
||||
"github.com/luxfi/age/internal/bech32"
|
||||
)
|
||||
|
||||
func TestBech32(t *testing.T) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
)
|
||||
|
||||
func TestStanzaMarshal(t *testing.T) {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"filippo.io/age/armor"
|
||||
"filippo.io/age/internal/format"
|
||||
"filippo.io/age/internal/stream"
|
||||
"github.com/luxfi/age/armor"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"github.com/luxfi/age/internal/stream"
|
||||
)
|
||||
|
||||
type Metadata struct {
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/format"
|
||||
"filippo.io/age/internal/stream"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"github.com/luxfi/age/internal/stream"
|
||||
)
|
||||
|
||||
// buildFile serializes a header with a single stanza of the given type,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"testing"
|
||||
"testing/iotest"
|
||||
|
||||
"filippo.io/age/internal/stream"
|
||||
"github.com/luxfi/age/internal/stream"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
)
|
||||
|
||||
|
||||
+2
-2
@@ -21,8 +21,8 @@ import (
|
||||
|
||||
exec "golang.org/x/sys/execabs"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
)
|
||||
|
||||
type Recipient struct {
|
||||
|
||||
@@ -17,8 +17,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/internal/bech32"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/internal/bech32"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"filippo.io/age/internal/bech32"
|
||||
"github.com/luxfi/age/internal/bech32"
|
||||
"filippo.io/hpke"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/plugin"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/plugin"
|
||||
)
|
||||
|
||||
type Recipient struct{}
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@ import (
|
||||
"slices"
|
||||
"strconv"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
)
|
||||
|
||||
// TODO: add plugin test framework.
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"filippo.io/age/internal/term"
|
||||
"github.com/luxfi/age/internal/term"
|
||||
)
|
||||
|
||||
// NewTerminalUI returns a [ClientUI] that uses the terminal to request inputs,
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"filippo.io/age/internal/bech32"
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age/internal/bech32"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"filippo.io/hpke"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
)
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
"errors"
|
||||
"io"
|
||||
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
"golang.org/x/crypto/hkdf"
|
||||
)
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age"
|
||||
"github.com/luxfi/age"
|
||||
)
|
||||
|
||||
func TestX25519RoundTrip(t *testing.T) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"regexp"
|
||||
"strconv"
|
||||
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
"golang.org/x/crypto/scrypt"
|
||||
)
|
||||
|
||||
@@ -13,9 +13,9 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/plugin"
|
||||
"filippo.io/age/tag/internal/tagtest"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/plugin"
|
||||
"github.com/luxfi/age/tag/internal/tagtest"
|
||||
)
|
||||
|
||||
const classicRecipient = "age1tag1qwe0kafsjrar4txm6heqnhpfuggzr0gvznz7fvygxrlq90u5mq2pysxtw6h"
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"crypto/subtle"
|
||||
"fmt"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/internal/format"
|
||||
"filippo.io/age/tag"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"github.com/luxfi/age/tag"
|
||||
"filippo.io/hpke"
|
||||
"filippo.io/nistec"
|
||||
)
|
||||
|
||||
+3
-3
@@ -20,9 +20,9 @@ import (
|
||||
"fmt"
|
||||
"slices"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/internal/format"
|
||||
"filippo.io/age/plugin"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"github.com/luxfi/age/plugin"
|
||||
"filippo.io/hpke"
|
||||
"filippo.io/nistec"
|
||||
)
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ import (
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/tag"
|
||||
"filippo.io/age/tag/internal/tagtest"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/tag"
|
||||
"github.com/luxfi/age/tag/internal/tagtest"
|
||||
)
|
||||
|
||||
func TestClassicRoundTrip(t *testing.T) {
|
||||
|
||||
+5
-5
@@ -17,11 +17,11 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age"
|
||||
"filippo.io/age/armor"
|
||||
"filippo.io/age/internal/format"
|
||||
"filippo.io/age/internal/inspect"
|
||||
"filippo.io/age/internal/stream"
|
||||
"github.com/luxfi/age"
|
||||
"github.com/luxfi/age/armor"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"github.com/luxfi/age/internal/inspect"
|
||||
"github.com/luxfi/age/internal/stream"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
"golang.org/x/crypto/hkdf"
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"filippo.io/age/internal/bech32"
|
||||
"filippo.io/age/internal/format"
|
||||
"github.com/luxfi/age/internal/bech32"
|
||||
"github.com/luxfi/age/internal/format"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
"golang.org/x/crypto/curve25519"
|
||||
"golang.org/x/crypto/hkdf"
|
||||
|
||||
Reference in New Issue
Block a user