Documentation ¶
Index ¶
- Constants
- func DeInitHashCard(ctx context.Context)
- func DeInitRngCard(ctx context.Context)
- func GetHash(ctx context.Context, p, s, buf []byte, len uint64) []byte
- func GetHashHw(ctx context.Context, p, s, buf []byte, len uint64) []byte
- func GetHashSw(ctx context.Context, p, s, buf []byte, len uint64) []byte
- func GetP(ctx context.Context) []byte
- func GetRng(ctx context.Context, rngLlen uint) (outRng []byte, err error)
- func GetRngHw(ctx context.Context, rngLlen uint) (outRng []byte, err error)
- func GetTxnID() primitive.ObjectID
- func InitHashCard(ctx context.Context)
- func InitRngCard(ctx context.Context)
- func SHA256(data []byte) string
- func Xor(a, b []byte) ([]byte, error)
- type QArgs1to1
- type QArgs1toN
Constants ¶
View Source
const ContextsMaxLen = 1024
Variables ¶
This section is empty.
Functions ¶
func GetRng ¶
hash的长度为16字节
Types ¶
type QArgs1to1 ¶
Click to show internal directories.
Click to hide internal directories.