age,agessh,armor: unleash public API 💥🦑

This commit is contained in:
Filippo Valsorda
2020-06-27 21:08:42 -04:00
parent 33355dcc1c
commit e609359651
16 changed files with 16 additions and 16 deletions

View File

@@ -10,10 +10,10 @@
// For most use cases, use the Encrypt and Decrypt functions with // For most use cases, use the Encrypt and Decrypt functions with
// X25519Recipient and X25519Identity. If passphrase encryption is required, use // X25519Recipient and X25519Identity. If passphrase encryption is required, use
// ScryptRecipient and ScryptIdentity. For compatibility with existing SSH keys // ScryptRecipient and ScryptIdentity. For compatibility with existing SSH keys
// use the filippo.io/age/internal/agessh package. // use the filippo.io/age/agessh package.
// //
// Age encrypted files are binary and not malleable, for encoding them as text, // Age encrypted files are binary and not malleable, for encoding them as text,
// use the filippo.io/age/internal/armor package. // use the filippo.io/age/armor package.
package age package age
import ( import (

View File

@@ -15,7 +15,7 @@ import (
"log" "log"
"testing" "testing"
"filippo.io/age/internal/age" "filippo.io/age/age"
) )
func ExampleEncrypt() { func ExampleEncrypt() {

View File

@@ -11,7 +11,7 @@ import (
"crypto/rand" "crypto/rand"
"testing" "testing"
"filippo.io/age/internal/age" "filippo.io/age/age"
"filippo.io/age/internal/format" "filippo.io/age/internal/format"
) )

View File

@@ -23,7 +23,7 @@ import (
"io" "io"
"math/big" "math/big"
"filippo.io/age/internal/age" "filippo.io/age/age"
"filippo.io/age/internal/format" "filippo.io/age/internal/format"
"golang.org/x/crypto/chacha20poly1305" "golang.org/x/crypto/chacha20poly1305"
"golang.org/x/crypto/curve25519" "golang.org/x/crypto/curve25519"

View File

@@ -13,7 +13,7 @@ import (
"crypto/rsa" "crypto/rsa"
"testing" "testing"
"filippo.io/age/internal/agessh" "filippo.io/age/agessh"
"filippo.io/age/internal/format" "filippo.io/age/internal/format"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
) )

View File

@@ -11,7 +11,7 @@ import (
"crypto/rsa" "crypto/rsa"
"fmt" "fmt"
"filippo.io/age/internal/age" "filippo.io/age/age"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
) )

View File

@@ -16,8 +16,8 @@ import (
"strings" "strings"
"testing" "testing"
"filippo.io/age/internal/age" "filippo.io/age/age"
"filippo.io/age/internal/armor" "filippo.io/age/armor"
) )
func ExampleNewWriter() { func ExampleNewWriter() {

View File

@@ -13,7 +13,7 @@ import (
"os" "os"
"time" "time"
"filippo.io/age/internal/age" "filippo.io/age/age"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View File

@@ -16,8 +16,8 @@ import (
"os" "os"
"strings" "strings"
"filippo.io/age/internal/age" "filippo.io/age/age"
"filippo.io/age/internal/armor" "filippo.io/age/armor"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View File

@@ -13,7 +13,7 @@ import (
"strings" "strings"
"testing" "testing"
"filippo.io/age/internal/age" "filippo.io/age/age"
) )
func TestVectors(t *testing.T) { func TestVectors(t *testing.T) {

View File

@@ -10,7 +10,7 @@ import (
"fmt" "fmt"
"os" "os"
"filippo.io/age/internal/age" "filippo.io/age/age"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View File

@@ -15,8 +15,8 @@ import (
"os" "os"
"strings" "strings"
"filippo.io/age/internal/age" "filippo.io/age/age"
"filippo.io/age/internal/agessh" "filippo.io/age/agessh"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
) )