suci

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 17 Imported by: 9

Documentation

Index

Constants

View Source
const HNPublicKeyIDPlace = 6
View Source
const ProfileAEncKeyLen = 16 // octets
View Source
const ProfileAHashLen = 32 // octets
View Source
const ProfileAIcbLen = 16 // octets
View Source
const ProfileAMacKeyLen = 32 // octets

profile A.

View Source
const ProfileAMacLen = 8 // octets
View Source
const ProfileBEncKeyLen = 16 // octets
View Source
const ProfileBHashLen = 32 // octets
View Source
const ProfileBIcbLen = 16 // octets
View Source
const ProfileBMacKeyLen = 32 // octets

profile B.

View Source
const ProfileBMacLen = 8 // octets

Variables

This section is empty.

Functions

func Aes128ctr

func Aes128ctr(input, encKey, icb []byte) []byte

func AnsiX963KDF

func AnsiX963KDF(sharedKey, publicKey []byte, profileEncKeyLen, profileMacKeyLen, profileHashLen int) []byte

func CompressKey

func CompressKey(uncompressed []byte, y *big.Int) []byte

func HmacSha256

func HmacSha256(input, macKey []byte, macLen int) []byte

func ToSupi

func ToSupi(suci string, suciProfiles []SuciProfile) (string, error)

Types

type SuciProfile added in v1.0.1

type SuciProfile struct {
	ProtectionScheme string `yaml:"ProtectionScheme,omitempty"`
	PrivateKey       string `yaml:"PrivateKey,omitempty"`
	PublicKey        string `yaml:"PublicKey,omitempty"`
}

Jump to

Keyboard shortcuts

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