-
Notifications
You must be signed in to change notification settings - Fork 177
Expand file tree
/
Copy pathTPM2B_AUTH.java
More file actions
62 lines (50 loc) · 1.98 KB
/
Copy pathTPM2B_AUTH.java
File metadata and controls
62 lines (50 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package tss.tpm;
import tss.*;
// -----------This is an auto-generated file: do not edit
//>>>
/** This structure is used for an authorization value and limits an authValue to being no
* larger than the largest digest produced by a TPM. In order to ensure consistency
* within an object, the authValue may be no larger than the size of the digest produced
* by the objects nameAlg. This ensures that any TPM that can load the object will be
* able to handle the authValue of the object.
*/
public class TPM2B_AUTH extends TPM2B_DIGEST
{
public TPM2B_AUTH() {}
/** @param _buffer The buffer area that can be no larger than a digest */
public TPM2B_AUTH(byte[] _buffer) { super(_buffer); }
/** @deprecated Use {@link #toBytes()} instead
* @return Wire (marshaled) representation of this object
*/
public byte[] toTpm () { return toBytes(); }
/** Static marshaling helper
* @param byteBuf Wire representation of the object
* @return New object constructed from its wire representation
*/
public static TPM2B_AUTH fromBytes (byte[] byteBuf)
{
return new TpmBuffer(byteBuf).createObj(TPM2B_AUTH.class);
}
/** @deprecated Use {@link #fromBytes(byte[])} instead
* @param byteBuf Wire representation of the object
* @return New object constructed from its wire representation
*/
public static TPM2B_AUTH fromTpm (byte[] byteBuf) { return fromBytes(byteBuf); }
/** Static marshaling helper
* @param buf Wire representation of the object
* @return New object constructed from its wire representation
*/
public static TPM2B_AUTH fromTpm (TpmBuffer buf)
{
return buf.createObj(TPM2B_AUTH.class);
}
@Override
public String toString()
{
TpmStructurePrinter _p = new TpmStructurePrinter("TPM2B_AUTH");
toStringInternal(_p, 1);
_p.endStruct();
return _p.toString();
}
}
//<<<