process

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSegmenthash

func ExtractSegmenthash(segment []string) []string

func ProcessingData

func ProcessingData(file string) ([]pattern.SegmentDataInfo, string, error)

Process the file according to CESS specifications.

Receive parameter:

  • file: the file to be processed.

Return parameter:

  • segmentDataInfo: segment and fragment information of the file.
  • string: [fid] unique identifier for the file.
  • error: error message.

func ShardedEncryptionProcessing

func ShardedEncryptionProcessing(file string, cipher string) ([]pattern.SegmentDataInfo, string, error)

Process the file according to CESS specifications.

Receive parameter:

  • file: the file to be processed.
  • cipher: encryption and decryption keys.

Return parameter:

  • segmentDataInfo: segment and fragment information of the file.
  • string: [fid] unique identifier for the file.
  • error: error message.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL