Skip to content

Instantly share code, notes, and snippets.

View deeglaze's full-sized avatar

Dionna Amalie Glaze deeglaze

View GitHub Profile
@deeglaze
deeglaze / visualize_signing_material.sh
Created November 22, 2019 22:51
Describes data in SGX sign_tool's gendata output
#!/bin/bash
# A script for explaining different parts of an enclave's signing material
function usage() {
echo >&2
echo "Usage: $(basename "$0") [flags] <path_to_signing_material.dat>" >&2
echo >&2
echo " -c,--color=MODE: MODE is one of always, never, auto [default]." >&2
echo " If in a tty, --color=auto produces color codes." >&2
@deeglaze
deeglaze / client.go.patch
Created February 3, 2023 17:55
go-sev-guest client modification to work around throttling without sev-guest device patches
@@ func UseDefaultSevGuest() bool {
}
func message(d Device, command uintptr, req *labi.SnpUserGuestRequest) error {
- result, err := d.Ioctl(command, req)
- if err != nil {
- // The ioctl could have failed with a firmware error that
- // indicates a problem certificate length. We need to
- // communicate that specifically.
- if req.FwErr != 0 {