Documentation ¶
Index ¶
- Constants
- Variables
- func GetSha256_32bytes(data []byte) [32]byte
- func IsChangeCryKey(Data []byte) bool
- func IsChangeCryKeyFromGSTClient(Data []byte) bool
- func IsChangeCryKeyFromGSTClientFromUint32(OperType uint32) bool
- func IsChangeCryKeyFromGSTServer(Data []byte) bool
- func IsChangeCryKeyFromGSTServerFromUint32(OperType uint32) bool
- func IsChangeCryKeyFromUint32(OperType uint32) bool
- func IsClientPubKey(Data []byte) bool
- func IsClientPubKeyFromUint32(OperType uint32) bool
- func IsPOGen(Data []byte) bool
- func IsPOGenFromUint32(OperType uint32) bool
- func IsPOHello(OperType uint32) bool
- func IsPOVersion(Data []byte) bool
- func IsPOVersionFromUint32(OperType uint32) bool
- func JsonPacking_OperChangeKey() (data []byte, key []byte)
- func JsonPacking_OperChangeKeyRSAFromGSTClient(crykey []byte) []byte
- func JsonPacking_OperChangeKeyRSAFromGSTServer(crykey []byte) []byte
- func NewPackPOClientPubKey(keyCry []byte) []byte
- func NewPackPOGen(data []byte) []byte
- func NewPackPOHello() []byte
- func NewPackPOVersion() []byte
- type PackOper
- func (*PackOper) Descriptor() ([]byte, []int)deprecated
- func (po *PackOper) GetClientPubKeyData() []byte
- func (x *PackOper) GetData() []byte
- func (po *PackOper) GetEncryKey() []byte
- func (x *PackOper) GetHashHex() []byte
- func (x *PackOper) GetOperData() []byte
- func (x *PackOper) GetOperType() uint32
- func (x *PackOper) GetRand() []byte
- func (po *PackOper) GetSha256() []byte
- func (po *PackOper) GetSha256_buf() []byte
- func (po *PackOper) GetSha256_nobuf() []byte
- func (po *PackOper) GetSha256_old() []byte
- func (po *PackOper) GetSha256_pool() []byte
- func (po *PackOper) IsChangeCryKey() bool
- func (po *PackOper) IsChangeCryKeyFromGSTClient() bool
- func (po *PackOper) IsChangeCryKeyFromGSTServer() bool
- func (po *PackOper) IsClientPubKey() bool
- func (po *PackOper) IsOk() error
- func (po *PackOper) IsPOGen() bool
- func (po *PackOper) IsPOHello() bool
- func (po *PackOper) IsPOVersion() bool
- func (*PackOper) ProtoMessage()
- func (x *PackOper) ProtoReflect() protoreflect.Message
- func (x *PackOper) Reset()
- func (x *PackOper) String() string
Constants ¶
View Source
const ( POBegin uint32 = 1<<5 - 2 POGenOper uint32 = 1<<5 - 1 POChangeCryKey uint32 = 1<<6 - 1 POVersion uint32 = 1<<7 - 1 POClientPubKey uint32 = 1<<7 - 2 POChangeCryKeyFromGSTServer uint32 = 1<<7 - 3 POChangeCryKeyFromGSTClient uint32 = 1<<7 - 4 POHello uint32 = 1<<7 - 5 //test use, Empty package POEnd uint32 = 1 << 7 )
Variables ¶
View Source
var File_packOper_pro_proto protoreflect.FileDescriptor
Functions ¶
func GetSha256_32bytes ¶
func IsChangeCryKey ¶
func IsChangeCryKeyFromGSTClient ¶ added in v6.3.0
func IsChangeCryKeyFromGSTClientFromUint32 ¶ added in v6.3.0
func IsChangeCryKeyFromGSTServer ¶ added in v6.3.0
func IsChangeCryKeyFromGSTServerFromUint32 ¶ added in v6.3.0
func IsChangeCryKeyFromUint32 ¶ added in v6.3.0
func IsClientPubKey ¶ added in v6.3.0
func IsClientPubKeyFromUint32 ¶ added in v6.3.0
func IsPOGenFromUint32 ¶ added in v6.3.0
func IsPOVersion ¶
func IsPOVersionFromUint32 ¶ added in v6.3.0
func JsonPacking_OperChangeKeyRSAFromGSTClient ¶ added in v6.3.0
func JsonPacking_OperChangeKeyRSAFromGSTServer ¶ added in v6.3.0
func NewPackPOClientPubKey ¶ added in v6.3.0
func NewPackPOGen ¶ added in v6.3.0
func NewPackPOHello ¶ added in v6.3.0
func NewPackPOHello() []byte
func NewPackPOVersion ¶ added in v6.3.0
func NewPackPOVersion() []byte
Types ¶
type PackOper ¶ added in v6.3.0
type PackOper struct {
// contains filtered or unexported fields
}
func UnPack_Oper ¶
func (*PackOper) Descriptor
deprecated
added in
v6.3.0
func (*PackOper) GetClientPubKeyData ¶ added in v6.3.0
func (*PackOper) GetEncryKey ¶ added in v6.3.0
func (*PackOper) GetHashHex ¶ added in v6.3.0
func (x *PackOper) GetHashHex() []byte
func (*PackOper) GetOperData ¶ added in v6.3.0
func (x *PackOper) GetOperData() []byte
func (*PackOper) GetOperType ¶ added in v6.3.0
func (x *PackOper) GetOperType() uint32
func (*PackOper) GetSha256_buf ¶ added in v6.3.0
GetSha256_buf速度比GetSha256_old快15%-20%。
func (*PackOper) GetSha256_nobuf ¶ added in v6.3.0
GetSha256_nobuf的速度比GetSha256_buf的速度快18%-20%。
func (*PackOper) GetSha256_old ¶ added in v6.3.0
func (*PackOper) GetSha256_pool ¶ added in v6.3.0
为了更好的安全性,默认情况下没有使用GetSha256_pool函数。 GetSha256_pool的速度比GetSha256_buf的速度快10%-15%。
func (*PackOper) IsChangeCryKey ¶ added in v6.3.0
func (*PackOper) IsChangeCryKeyFromGSTClient ¶ added in v6.3.0
func (*PackOper) IsChangeCryKeyFromGSTServer ¶ added in v6.3.0
func (*PackOper) IsClientPubKey ¶ added in v6.3.0
func (*PackOper) IsPOVersion ¶ added in v6.3.0
func (*PackOper) ProtoMessage ¶ added in v6.3.0
func (*PackOper) ProtoMessage()
func (*PackOper) ProtoReflect ¶ added in v6.3.0
func (x *PackOper) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.