-
Notifications
You must be signed in to change notification settings - Fork 177
Expand file tree
/
Copy pathSHA3_384.java
More file actions
47 lines (37 loc) · 1.91 KB
/
Copy pathSHA3_384.java
File metadata and controls
47 lines (37 loc) · 1.91 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
package tss.tpm;
import tss.*;
import java.util.*;
// -----------This is an auto-generated file: do not edit
//>>>
/** Table 19 Defines for SHA3_384 Hash Values */
public final class SHA3_384 extends TpmEnum<SHA3_384>
{
/** Values from enum _N are only intended to be used in case labels of a switch statement
* using the result of this.asEnum() method as the switch condition. However, their Java
* names are identical to those of the constants defined in this class further below, so
* for any other usage just prepend them with the SHA3_384. qualifier.
*/
public enum _N {
/** Size of digest in octets */
DIGEST_SIZE,
/** Size of hash block in octets */
BLOCK_SIZE
}
private static ValueMap<SHA3_384> _ValueMap = new ValueMap<SHA3_384>();
/** These definitions provide mapping of the Java enum constants to their TPM integer values */
public static final SHA3_384
DIGEST_SIZE = new SHA3_384(48, _N.DIGEST_SIZE),
BLOCK_SIZE = new SHA3_384(104, _N.BLOCK_SIZE);
public SHA3_384 () { super(0, _ValueMap); }
public SHA3_384 (int value) { super(value, _ValueMap); }
public static SHA3_384 fromInt (int value) { return TpmEnum.fromInt(value, _ValueMap, SHA3_384.class); }
public static SHA3_384 fromTpm (byte[] buf) { return TpmEnum.fromTpm(buf, _ValueMap, SHA3_384.class); }
public static SHA3_384 fromTpm (TpmBuffer buf) { return TpmEnum.fromTpm(buf, _ValueMap, SHA3_384.class); }
public SHA3_384._N asEnum() { return (SHA3_384._N)NameAsEnum; }
public static Collection<SHA3_384> values() { return _ValueMap.values(); }
private SHA3_384 (int value, _N nameAsEnum) { super(value, nameAsEnum, _ValueMap); }
private SHA3_384 (int value, _N nameAsEnum, boolean noConvFromInt) { super(value, nameAsEnum, null); }
@Override
protected int wireSize() { return 4; }
}
//<<<