github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/tinkcrypto/primitive/composite/api/composite_encrypt.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package api
     8  
     9  import "github.com/hyperledger/aries-framework-go/component/kmscrypto/crypto/tinkcrypto/primitive/composite/api"
    10  
    11  // package api provides the composite primitive interfaces. These will be mainly used as the crypto primitives for
    12  // building protected JWE messages.
    13  
    14  // CompositeEncrypt will encrypt a `plaintext` using AEAD primitive (with ECDH-ES cek key wrapping by recipient executed
    15  // externally). It returns the resulting serialized JWE []byte. This type is used mainly for repudiation requests where
    16  // the sender identity remains unknown to the recipient in a serialized EncryptedData envelope (used mainly to build JWE
    17  // messages).
    18  type CompositeEncrypt = api.CompositeEncrypt