Skip to content

KarpelesLab/tpmlib

Repository files navigation

GoDoc

tpmlib

Simple library to connect to local tpm, generate a local key and use it as a signer.

Usage

import "github.com/KarpelesLab/tpmlib"

func signSomething(v []byte) ([]byte, error) {
    k, err := tpmlib.GetKey()
    if err != nil {
        return nil, err
    }
    return k.Sign(rand.Reader, cryptutil.Hash(v, crypto.SHA256), crypto.SHA256)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published