github.com/trustbloc/kms-go@v1.1.2/crypto/tinkcrypto/primitive/composite/composite_common.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package composite 8 9 // package composite provides the core crypto composite primitives such as ECDH-ES and ECDH-1PU to be used by JWE crypto 10 11 // EncryptedData represents the Encryption's output data as a result of ECDHEncrypt.Encrypt(pt, aad) call 12 // The user of the primitive must unmarshal the result and build their own ECDH-ES/1PU compliant message (ie JWE msg). 13 type EncryptedData struct { 14 Ciphertext []byte `json:"ciphertext,omitempty"` 15 IV []byte `json:"iv,omitempty"` 16 Tag []byte `json:"tag,omitempty"` 17 }