Documentation
¶
Index ¶
- func CreateHash(ctx context.Context, algorithm string) (*isolates.Value, error)
- func CreateHmac(ctx context.Context, algorithm string, key any) (*isolates.Value, error)
- func RandomBytes(ct context.Context) (*isolates.Value, error)
- type Hash
- func (h *Hash) Algorithm() string
- func (h *Hash) Sum(encoding *buffer.BufferEncoding) (any, error)
- func (h *Hash) Update(ctx context.Context, b any) (*Hash, error)
- func (h *Hash) V8FuncDigest(in isolates.FunctionArgs) (*isolates.Value, error)
- func (h *Hash) V8FuncUpdate(in isolates.FunctionArgs) (*isolates.Value, error)
- func (h *Hash) V8GetAlgorithm(in isolates.GetterArgs) (*isolates.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHmac ¶
Types ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
func (*Hash) V8FuncDigest ¶
func (*Hash) V8FuncUpdate ¶
func (*Hash) V8GetAlgorithm ¶
Click to show internal directories.
Click to hide internal directories.