Documentation ¶
Overview ¶
Package guardedmem implements memory allocations that are guarded against scanning. In addition, it supports storing keys in ballooned memory regions to make memory scanning and side channel attacks harder. It allocates at least three pages like this: |PROT_NONE|PROT_READ,PROT_WRITE|...|PROT_NONE|
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alloc ¶
Alloc allocates *T in guarded memory. Tested.
Example ¶
type X struct { a []byte } var x *X x, err := Alloc(X{}) if err != nil { panic(err) } defer func() { _ = Free(x) }()
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.