hep: go-hep.org/x/hep/xrootd/xrdproto/sigver Index | Files

package sigver

import "go-hep.org/x/hep/xrootd/xrdproto/sigver"

Package sigver contains the structures describing sigver request.


Package Files



const RequestID uint16 = 3029

RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details: http://xrootd.org/doc/dev45/XRdv310.pdf, 2.3 Client Request Format.

type Flags Uses

type Flags uint8

Flags are the request indicators.

const (
    NoData Flags = 1 // NoData indicates whether the data payload is included in the hash.

type Request Uses

type Request struct {
    ID      uint16 // ID is the requestID of the subsequent request.
    Version byte   // Version is a version of the signature protocol to be used. Currently only the zero value is supported.
    Flags   Flags  // Flags are the request indicators. Currently only NoData is supported which indicates whether the data payload is included in the hash.
    SeqID   int64  // SeqID is a monotonically increasing sequence number. Each requests should have a sequence number that is greater than a previous one.
    Crypto  byte   // Crypto identifies the cryptography used to construct the signature.

    Signature []byte
    // contains filtered or unexported fields

Request holds the sigver request parameters.

func NewRequest Uses

func NewRequest(requestID uint16, seqID int64, data []byte) Request

func (Request) MarshalXrd Uses

func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error

MarshalXrd implements xrdproto.Marshaler.

func (*Request) ReqID Uses

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) ShouldSign Uses

func (req *Request) ShouldSign() bool

ShouldSign implements xrdproto.Request.ShouldSign.

func (*Request) UnmarshalXrd Uses

func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

UnmarshalXrd implements xrdproto.Unmarshaler.

Package sigver imports 5 packages (graph) and is imported by 1 packages. Updated 2019-05-31. Refresh now. Tools for package owners.