Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sdk/tdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const (
kAssertionSignature = "assertionSig"
kAssertionHash = "assertionHash"
hexSemverThreshold = "4.3.0"
readActionName = "read"
)

// Loads and reads ZTDF files
Expand Down
10 changes: 6 additions & 4 deletions sdk/tdf_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ const (
inputSizeUnknown = -1
)

// TDFFormat once selected a manifest serialization. Only JSON was ever
// implemented, and nothing reads this.
//
// Deprecated: unused; the manifest is always JSON.
type TDFFormat = int

const (
// Deprecated: unused; the manifest is always JSON.
JSONFormat = iota
// Deprecated: never implemented.
XMLFormat
)

Expand Down Expand Up @@ -68,8 +74,6 @@ type TDFConfig struct {
autoconfigure bool
defaultSegmentSize int64
inputSize int64
enableEncryption bool
tdfFormat TDFFormat
metaData string
mimeType string
integrityAlgorithm IntegrityAlgorithm
Expand All @@ -91,8 +95,6 @@ func newTDFConfig(opt ...TDFOption) (*TDFConfig, error) {
autoconfigure: true,
defaultSegmentSize: defaultSegmentSize,
inputSize: inputSizeUnknown,
enableEncryption: true,
tdfFormat: JSONFormat,
integrityAlgorithm: HS256,
segmentIntegrityAlgorithm: GMAC,
addDefaultAssertion: false,
Expand Down
Loading