pkcs7

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

func NewPkcs7Service

func NewPkcs7Service() *Service

func (*Service) Pad

func (p *Service) Pad(bytesValue []byte, blockSize int) ([]byte, error)

Pad rights-pad the given `bytesValue` up to 1 or N bytes. The `blockSize` is between 1 to N int. The padded `bytesValue` length is >=1 (gte) times `blockSize`.

func (*Service) Unpad

func (p *Service) Unpad(bytesValue []byte, blockSize int) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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