Beispiel #1
0
func getBCCSP(t *testing.T) bccsp.BCCSP {
	if swBCCSPInstance == nil {
		var err error
		swBCCSPInstance, err = sw.NewDefaultSecurityLevel(os.TempDir())
		if err != nil {
			t.Fatalf("Failed initializing key store [%s]", err)
		}
	}

	return swBCCSPInstance
}
Beispiel #2
0
func createDefaultBCCSP() (bccsp.BCCSP, error) {
	return sw.NewDefaultSecurityLevel(os.TempDir())
}