hibe_noamd64

package
v2.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("hibe: unsupported")

Functions

func DecryptHibeMsg

func DecryptHibeMsg(localId string, hibeParams *hibe.Params, prvKey *hibe.PrivateKey,
	hibeMsgMap map[string]string, symKeyType crypto.KeyType) ([]byte, error)

DecryptHibeMsg is used to decrypt the HIBE message constructed by EncryptHibeMsg localId: hibe Id hibeParams: HIBE parameters of the HIBE system to which ID belongs prvKey: the localId's hibe private Key hibeMsgMap: HIBE message encrypt by EncryptHibeMsg symKeyType: symmetric key type (aes or sm4), used to symmetric encrypt the plain text first

func EncryptHibeMsg

func EncryptHibeMsg(plaintext []byte, receiverIds []string, paramsList []*hibe.Params,
	symKeyType crypto.KeyType) (map[string]string, error)

EncryptHibeMsg is used to encrypt plainText by receiverIds and their paramsList plaintext: plain text bytes receiverIds: message receivers' id list, using "/" to separate hierarchy identity in each id string paramsList: HIBE parameters list of the message receiver, len(paramsList) should be equal to len(receiverIds),

paramsList[i] are the HIBE parameters of receiverIds[i]

symKeyType: symmetric key type (aes or sm4), used to symmetric encrypt the plain text first

func IdStr2HibeId

func IdStr2HibeId(id string) ([]string, []*big.Int)

IdStr2HibeId construct HibeId according to id

func ValidateId

func ValidateId(id string) error

ValidateId is used to validate id format

Types

This section is empty.

Directories

Path Synopsis
Package hibe implements the cryptosystem described in the paper "Hierarchical Identity Based Encyprtion with Constant Size Ciphertext" by Boneh, Boyen, and Goh.
Package hibe implements the cryptosystem described in the paper "Hierarchical Identity Based Encyprtion with Constant Size Ciphertext" by Boneh, Boyen, and Goh.
bn256
Package bn256 implements a particular bilinear group.
Package bn256 implements a particular bilinear group.

Jump to

Keyboard shortcuts

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