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
// X25519Recipient and X25519Identity. If passphrase encryption is required, use
// 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,
// use the filippo.io/age/internal/armor package.
// use the filippo.io/age/armor package.
package age
import (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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