Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Implements the legacy authcrypt decrypter.
Browse files Browse the repository at this point in the history
Follows on from hyperledger-archives#139
Part of #36
Closes hyperledger-archives#294

Signed-off-by: Filip Burlacu <[email protected]>
  • Loading branch information
Filip Burlacu committed Sep 25, 2019
1 parent 013abb8 commit 5ebbd2c
Show file tree
Hide file tree
Showing 4 changed files with 412 additions and 15 deletions.
6 changes: 3 additions & 3 deletions pkg/didcomm/crypto/legacy/authcrypt/authcrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ SPDX-License-Identifier: Apache-2.0
package authcrypt

import (
"crypto/ed25519"
"crypto/rand"
"errors"
"fmt"
"io"

"github.com/agl/ed25519/extra25519"
"golang.org/x/crypto/blake2b"
"golang.org/x/crypto/ed25519"
"golang.org/x/crypto/nacl/box"
)

Expand Down Expand Up @@ -78,8 +78,8 @@ func isKeyPairValid(kp keyPairEd25519) bool {
return true
}

// envelope is the full payload envelope for the JSON message
type envelope struct {
// legacyEnvelope is the full payload envelope for the JSON message
type legacyEnvelope struct {
Protected string `json:"protected,omitempty"`
IV string `json:"iv,omitempty"`
CipherText string `json:"ciphertext,omitempty"`
Expand Down
Loading

0 comments on commit 5ebbd2c

Please sign in to comment.