Comments (1)
All TPM data structures in TSS.Net support DataContractSerializer interface. For example:
Attest quote = tpm.Quote(hSigKey, hashToSign, new SchemeRsassa(sigHashAlg),
outSelection, out quoteSig);
var ms = new MemoryStream();
var dcs0 = new DataContractSerializer(typeof(Attest));
dcs0.WriteObject(ms, quote);
ms.Flush();
byte[] serializedRepr = ms.ToArray();
var dcs1 = new DataContractSerializer(typeof(Attest));
var restoredQuote = (Attest)dcs1.ReadObject(new MemoryStream(serializedRepr));
Alternatively, all TPM data structures in TSS.Net have a pair of ToNet()/ToHost()
methods that marshal/unmarshal a TPM object to/from a portable binary representation (see the TpmStructureBase.GetTpmRepresentation()
helper for an example of ToNet()
usage).
from tss.msr.
Related Issues (20)
- TPM Error on Java NO_SESSIONS HOT 3
- Drop dependency on MS Office
- Use TPM for Bitlocker and a customer program
- Linux OSX support? HOT 1
- Errors during compiling in VS 2020
- This repo is missing important files HOT 1
- saving external certificate in tpm in java
- Export TPM Public Key HOT 1
- No Examples for Policies that require PCRs and AuthValues?
- JAVA {NO_SESSIONS} error only on Infineon HOT 1
- Nonce comparison in VerifyQuote isn't constant-time
- TSS.Java: Key generated by CreatePrimary does not match template HOT 1
- .NET library multithreading problems HOT 1
- Failing Samples
- New nuget package
- PCPTool run into exception
- LinuxTpmDevice constructor fails on Docker image : DllImport libtss2-tcti-tabrmd.so on Linux
- Hello is there a plan to fix the vulnerable package ?
- TPM软件栈TSS.Java实现AES密钥存取加密,提示KEY_SIZE异常不知是什么导致,代码详情? TPM software stack TSS Java implements AES key access encryption, prompting KEY_SIZE exception. I don't know what caused it. Code details?
- Why are you using tpm.EvictControl() method, an Unexpected response tag {NO_SESSIONS} will appear
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tss.msr.