Documentation
¶
Overview ¶
Package crypto contains generated bindings for API file crypto.api.
Contents:
2 enums 4 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type CryptoDispatchMode
- type CryptoOpClassType
- type CryptoSetAsyncDispatch
- func (*CryptoSetAsyncDispatch) GetCrcString() string
- func (*CryptoSetAsyncDispatch) GetMessageName() string
- func (*CryptoSetAsyncDispatch) GetMessageType() api.MessageType
- func (m *CryptoSetAsyncDispatch) Marshal(b []byte) ([]byte, error)
- func (m *CryptoSetAsyncDispatch) Reset()
- func (m *CryptoSetAsyncDispatch) Size() (size int)
- func (m *CryptoSetAsyncDispatch) Unmarshal(b []byte) error
- type CryptoSetAsyncDispatchReply
- func (*CryptoSetAsyncDispatchReply) GetCrcString() string
- func (*CryptoSetAsyncDispatchReply) GetMessageName() string
- func (*CryptoSetAsyncDispatchReply) GetMessageType() api.MessageType
- func (m *CryptoSetAsyncDispatchReply) Marshal(b []byte) ([]byte, error)
- func (m *CryptoSetAsyncDispatchReply) Reset()
- func (m *CryptoSetAsyncDispatchReply) Size() (size int)
- func (m *CryptoSetAsyncDispatchReply) Unmarshal(b []byte) error
- type CryptoSetHandler
- func (*CryptoSetHandler) GetCrcString() string
- func (*CryptoSetHandler) GetMessageName() string
- func (*CryptoSetHandler) GetMessageType() api.MessageType
- func (m *CryptoSetHandler) Marshal(b []byte) ([]byte, error)
- func (m *CryptoSetHandler) Reset()
- func (m *CryptoSetHandler) Size() (size int)
- func (m *CryptoSetHandler) Unmarshal(b []byte) error
- type CryptoSetHandlerReply
- func (*CryptoSetHandlerReply) GetCrcString() string
- func (*CryptoSetHandlerReply) GetMessageName() string
- func (*CryptoSetHandlerReply) GetMessageType() api.MessageType
- func (m *CryptoSetHandlerReply) Marshal(b []byte) ([]byte, error)
- func (m *CryptoSetHandlerReply) Reset()
- func (m *CryptoSetHandlerReply) Size() (size int)
- func (m *CryptoSetHandlerReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "crypto" APIVersion = "1.0.1" VersionCrc = 0x22355ec6 )
Variables ¶
View Source
var ( CryptoDispatchMode_name = map[uint8]string{ 0: "CRYPTO_ASYNC_DISPATCH_POLLING", 1: "CRYPTO_ASYNC_DISPATCH_INTERRUPT", } CryptoDispatchMode_value = map[string]uint8{ "CRYPTO_ASYNC_DISPATCH_POLLING": 0, "CRYPTO_ASYNC_DISPATCH_INTERRUPT": 1, } )
View Source
var ( CryptoOpClassType_name = map[uint8]string{ 0: "CRYPTO_API_OP_SIMPLE", 1: "CRYPTO_API_OP_CHAINED", 2: "CRYPTO_API_OP_BOTH", } CryptoOpClassType_value = map[string]uint8{ "CRYPTO_API_OP_SIMPLE": 0, "CRYPTO_API_OP_CHAINED": 1, "CRYPTO_API_OP_BOTH": 2, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type CryptoDispatchMode ¶
type CryptoDispatchMode uint8
CryptoDispatchMode defines enum 'crypto_dispatch_mode'.
const ( CRYPTO_ASYNC_DISPATCH_POLLING CryptoDispatchMode = 0 CRYPTO_ASYNC_DISPATCH_INTERRUPT CryptoDispatchMode = 1 )
func (CryptoDispatchMode) String ¶
func (x CryptoDispatchMode) String() string
type CryptoOpClassType ¶
type CryptoOpClassType uint8
CryptoOpClassType defines enum 'crypto_op_class_type'.
const ( CRYPTO_API_OP_SIMPLE CryptoOpClassType = 0 CRYPTO_API_OP_CHAINED CryptoOpClassType = 1 CRYPTO_API_OP_BOTH CryptoOpClassType = 2 )
func (CryptoOpClassType) String ¶
func (x CryptoOpClassType) String() string
type CryptoSetAsyncDispatch ¶
type CryptoSetAsyncDispatch struct {
Mode CryptoDispatchMode `binapi:"crypto_dispatch_mode,name=mode" json:"mode,omitempty"`
}
CryptoSetAsyncDispatch defines message 'crypto_set_async_dispatch'.
func (*CryptoSetAsyncDispatch) GetCrcString ¶
func (*CryptoSetAsyncDispatch) GetCrcString() string
func (*CryptoSetAsyncDispatch) GetMessageName ¶
func (*CryptoSetAsyncDispatch) GetMessageName() string
func (*CryptoSetAsyncDispatch) GetMessageType ¶
func (*CryptoSetAsyncDispatch) GetMessageType() api.MessageType
func (*CryptoSetAsyncDispatch) Marshal ¶
func (m *CryptoSetAsyncDispatch) Marshal(b []byte) ([]byte, error)
func (*CryptoSetAsyncDispatch) Reset ¶
func (m *CryptoSetAsyncDispatch) Reset()
func (*CryptoSetAsyncDispatch) Size ¶
func (m *CryptoSetAsyncDispatch) Size() (size int)
func (*CryptoSetAsyncDispatch) Unmarshal ¶
func (m *CryptoSetAsyncDispatch) Unmarshal(b []byte) error
type CryptoSetAsyncDispatchReply ¶
type CryptoSetAsyncDispatchReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CryptoSetAsyncDispatchReply defines message 'crypto_set_async_dispatch_reply'.
func (*CryptoSetAsyncDispatchReply) GetCrcString ¶
func (*CryptoSetAsyncDispatchReply) GetCrcString() string
func (*CryptoSetAsyncDispatchReply) GetMessageName ¶
func (*CryptoSetAsyncDispatchReply) GetMessageName() string
func (*CryptoSetAsyncDispatchReply) GetMessageType ¶
func (*CryptoSetAsyncDispatchReply) GetMessageType() api.MessageType
func (*CryptoSetAsyncDispatchReply) Marshal ¶
func (m *CryptoSetAsyncDispatchReply) Marshal(b []byte) ([]byte, error)
func (*CryptoSetAsyncDispatchReply) Reset ¶
func (m *CryptoSetAsyncDispatchReply) Reset()
func (*CryptoSetAsyncDispatchReply) Size ¶
func (m *CryptoSetAsyncDispatchReply) Size() (size int)
func (*CryptoSetAsyncDispatchReply) Unmarshal ¶
func (m *CryptoSetAsyncDispatchReply) Unmarshal(b []byte) error
type CryptoSetHandler ¶
type CryptoSetHandler struct { AlgName string `binapi:"string[32],name=alg_name" json:"alg_name,omitempty"` Engine string `binapi:"string[16],name=engine" json:"engine,omitempty"` Oct CryptoOpClassType `binapi:"crypto_op_class_type,name=oct" json:"oct,omitempty"` IsAsync uint8 `binapi:"u8,name=is_async" json:"is_async,omitempty"` }
CryptoSetHandler defines message 'crypto_set_handler'.
func (*CryptoSetHandler) GetCrcString ¶
func (*CryptoSetHandler) GetCrcString() string
func (*CryptoSetHandler) GetMessageName ¶
func (*CryptoSetHandler) GetMessageName() string
func (*CryptoSetHandler) GetMessageType ¶
func (*CryptoSetHandler) GetMessageType() api.MessageType
func (*CryptoSetHandler) Reset ¶
func (m *CryptoSetHandler) Reset()
func (*CryptoSetHandler) Size ¶
func (m *CryptoSetHandler) Size() (size int)
func (*CryptoSetHandler) Unmarshal ¶
func (m *CryptoSetHandler) Unmarshal(b []byte) error
type CryptoSetHandlerReply ¶
type CryptoSetHandlerReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CryptoSetHandlerReply defines message 'crypto_set_handler_reply'.
func (*CryptoSetHandlerReply) GetCrcString ¶
func (*CryptoSetHandlerReply) GetCrcString() string
func (*CryptoSetHandlerReply) GetMessageName ¶
func (*CryptoSetHandlerReply) GetMessageName() string
func (*CryptoSetHandlerReply) GetMessageType ¶
func (*CryptoSetHandlerReply) GetMessageType() api.MessageType
func (*CryptoSetHandlerReply) Marshal ¶
func (m *CryptoSetHandlerReply) Marshal(b []byte) ([]byte, error)
func (*CryptoSetHandlerReply) Reset ¶
func (m *CryptoSetHandlerReply) Reset()
func (*CryptoSetHandlerReply) Size ¶
func (m *CryptoSetHandlerReply) Size() (size int)
func (*CryptoSetHandlerReply) Unmarshal ¶
func (m *CryptoSetHandlerReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { CryptoSetAsyncDispatch(ctx context.Context, in *CryptoSetAsyncDispatch) (*CryptoSetAsyncDispatchReply, error) CryptoSetHandler(ctx context.Context, in *CryptoSetHandler) (*CryptoSetHandlerReply, error) }
RPCService defines RPC service crypto.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.