forked from gtfierro/wave
-
Notifications
You must be signed in to change notification settings - Fork 2
/
wr1.go
62 lines (51 loc) · 1.44 KB
/
wr1.go
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 serdes
import "github.com/immesys/asn1"
type WR1BodyCiphertext struct {
VerifierBodyCiphertext []byte
ProverBodyCiphertext []byte
EnvelopeCiphertext []byte
EnvelopeKey_IBE_BLS12381 []byte
EnvelopeKey_Curve25519 []byte
EnvelopeKey_Curve25519Attester []byte
}
type WR1Envelope struct {
BodyKeys_OAQUE []byte
Partition [][]byte
}
type WR1ProverBody struct {
Addendums []asn1.External
Extensions []Extension
}
type WR1VerifierBody struct {
AttestationVerifierBody AttestationVerifierBody
}
type Ed25519OuterSignature struct {
VerifyingKey []byte
Signature []byte
}
type EntityPublicIBE_BLS12381 struct {
Params EntityParamsIBE_BLS12381
ID []byte
}
type EntityPublicOAQUE_BLS12381_s20 struct {
Params EntityParamsOQAUE_BLS12381_s20
AttributeSet [][]byte
}
type EntityPublicEd25519 []byte
type EntityPublicCurve25519 []byte
type EntityParamsOQAUE_BLS12381_s20 []byte
type EntityParamsIBE_BLS12381 []byte
type EntitySecretEd25519 []byte
type EntitySecretCurve25519 []byte
type EntitySecretOQAUE_BLS12381_s20 []byte
type EntitySecretMasterOQAUE_BLS12381_s20 []byte
type EntitySecretMasterIBE_BLS12381 []byte
type EntitySecretIBE_BLS12381 []byte
type KeyringAESCiphertext struct {
Ciphertext []byte
Salt []byte
Iterations int
}
type WR1DomainVisibilityKey_IBE_BLS12381 EntityKeyringEntry
type WR1PartitionKey_OAQUE_BLS12381_s20 EntityKeyringEntry
type AVKeyAES128GCM []byte