common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package common implements commonly used functions on the opaque package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decoder

func Decoder(data []byte, dataLen, x int) ([][]byte, error)

Decoder automatically decodes data by assuming, Each data has x length descriptors Also, data consists of dataLen separate data

func Encoder

func Encoder(x int, inputs ...[]byte) ([]byte, error)

Encoder automatically encodes the data with x length descriptors

func I2ospLenX

func I2ospLenX(data []byte, x int) ([]byte, error)

I2ospLenX returns concat(I2OSP(len(data), x), data)

Types

This section is empty.

Jump to

Keyboard shortcuts

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