Documentation
¶
Index ¶
- Constants
- type IMacsecPskPlugin
- type IMacsecPskPluginServer
- type MacsecPskPluginProxy
- func (p *MacsecPskPluginProxy) AddTestKey(ctx context.Context, keyId []byte, CAK []byte, CKN []byte) error
- func (p *MacsecPskPluginProxy) AsBinder() binder.IBinder
- func (p *MacsecPskPluginProxy) CalcIcv(ctx context.Context, keyId []byte, data []byte) ([]byte, error)
- func (p *MacsecPskPluginProxy) GenerateSak(ctx context.Context, keyId []byte, data []byte, sakLength int32) ([]byte, error)
- func (p *MacsecPskPluginProxy) UnwrapSak(ctx context.Context, keyId []byte, sak []byte) ([]byte, error)
- func (p *MacsecPskPluginProxy) WrapSak(ctx context.Context, keyId []byte, sak []byte) ([]byte, error)
- type MacsecPskPluginStub
Constants ¶
View Source
const ( TransactionIMacsecPskPluginAddTestKey = binder.FirstCallTransaction + 0 TransactionIMacsecPskPluginCalcIcv = binder.FirstCallTransaction + 1 TransactionIMacsecPskPluginGenerateSak = binder.FirstCallTransaction + 2 TransactionIMacsecPskPluginWrapSak = binder.FirstCallTransaction + 3 TransactionIMacsecPskPluginUnwrapSak = binder.FirstCallTransaction + 4 )
View Source
const ( MethodIMacsecPskPluginAddTestKey = "addTestKey" MethodIMacsecPskPluginCalcIcv = "calcIcv" MethodIMacsecPskPluginGenerateSak = "generateSak" MethodIMacsecPskPluginWrapSak = "wrapSak" MethodIMacsecPskPluginUnwrapSak = "unwrapSak" )
View Source
const DescriptorIMacsecPskPlugin = "android.hardware.macsec.IMacsecPskPlugin"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMacsecPskPlugin ¶
type IMacsecPskPlugin interface {
AsBinder() binder.IBinder
AddTestKey(ctx context.Context, keyId []byte, CAK []byte, CKN []byte) error
CalcIcv(ctx context.Context, keyId []byte, data []byte) ([]byte, error)
GenerateSak(ctx context.Context, keyId []byte, data []byte, sakLength int32) ([]byte, error)
WrapSak(ctx context.Context, keyId []byte, sak []byte) ([]byte, error)
UnwrapSak(ctx context.Context, keyId []byte, sak []byte) ([]byte, error)
}
func NewMacsecPskPluginStub ¶
func NewMacsecPskPluginStub( impl IMacsecPskPluginServer, ) IMacsecPskPlugin
NewMacsecPskPluginStub creates a server-side IMacsecPskPlugin wrapping the given server implementation. The returned value satisfies IMacsecPskPlugin and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IMacsecPskPluginServer ¶
type IMacsecPskPluginServer interface {
AddTestKey(ctx context.Context, keyId []byte, CAK []byte, CKN []byte) error
CalcIcv(ctx context.Context, keyId []byte, data []byte) ([]byte, error)
GenerateSak(ctx context.Context, keyId []byte, data []byte, sakLength int32) ([]byte, error)
WrapSak(ctx context.Context, keyId []byte, sak []byte) ([]byte, error)
UnwrapSak(ctx context.Context, keyId []byte, sak []byte) ([]byte, error)
}
IMacsecPskPluginServer is the server-side interface that user implementations provide to NewMacsecPskPluginStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type MacsecPskPluginProxy ¶
func NewMacsecPskPluginProxy ¶
func NewMacsecPskPluginProxy( remote binder.IBinder, ) *MacsecPskPluginProxy
func (*MacsecPskPluginProxy) AddTestKey ¶
func (*MacsecPskPluginProxy) AsBinder ¶
func (p *MacsecPskPluginProxy) AsBinder() binder.IBinder
func (*MacsecPskPluginProxy) GenerateSak ¶
type MacsecPskPluginStub ¶
type MacsecPskPluginStub struct {
Impl IMacsecPskPlugin
Transport binder.VersionAwareTransport
}
MacsecPskPluginStub dispatches incoming binder transactions to a typed IMacsecPskPlugin implementation.
func (*MacsecPskPluginStub) Descriptor ¶
func (s *MacsecPskPluginStub) Descriptor() string
func (*MacsecPskPluginStub) OnTransaction ¶
func (s *MacsecPskPluginStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Click to show internal directories.
Click to hide internal directories.