@@ -20,13 +20,13 @@ import { EncryptedDataKey, AlgorithmSuiteIdentifier } from '@aws-crypto/material
20
20
const partitionName = 'c15b9079-6d0e-42b6-8784-5e804b025692'
21
21
const encryptionContextEmpty = {
22
22
name : 'encryptionContextEmpty' ,
23
- context : { } ,
23
+ encryptionContext : { } ,
24
24
hash : new Uint8Array ( [ 207 , 131 , 225 , 53 , 126 , 239 , 184 , 189 , 241 , 84 , 40 , 80 , 214 , 109 , 128 , 7 , 214 , 32 , 228 , 5 , 11 , 87 , 21 , 220 , 131 , 244 , 169 , 33 , 211 , 108 , 233 , 206 , 71 , 208 , 209 , 60 , 93 , 133 , 242 , 176 , 255 , 131 , 24 , 210 , 135 , 126 , 236 , 47 , 99 , 185 , 49 , 189 , 71 , 65 , 122 , 129 , 165 , 56 , 50 , 122 , 249 , 39 , 218 , 62 ] )
25
25
}
26
26
27
27
const encryptionContextFull = {
28
28
name : 'encryptionContextFull' ,
29
- context : { 'this' : 'is' , 'a' : 'non-empty' , 'encryption' : 'context' } ,
29
+ encryptionContext : { 'this' : 'is' , 'a' : 'non-empty' , 'encryption' : 'context' } ,
30
30
hash : new Uint8Array ( [ 4 , 250 , 62 , 217 , 137 , 103 , 44 , 245 , 231 , 15 , 24 , 164 , 62 , 35 , 99 , 8 , 4 , 29 , 75 , 147 , 51 , 243 , 111 , 68 , 2 , 126 , 189 , 113 , 20 , 150 , 243 , 92 , 188 , 56 , 128 , 79 , 167 , 9 , 114 , 93 , 83 , 189 , 146 , 168 , 7 , 189 , 229 , 174 , 231 , 68 , 184 , 217 , 66 , 18 , 60 , 223 , 54 , 127 , 13 , 7 , 230 , 79 , 129 , 73 ] )
31
31
}
32
32
@@ -60,7 +60,7 @@ export const encryptCacheKeyVectors: VectorHack[] = [
60
60
partitionName ,
61
61
{
62
62
suite : undefined ,
63
- encryptionContext : encryptionContextEmpty . context
63
+ encryptionContext : encryptionContextEmpty . encryptionContext
64
64
}
65
65
] ,
66
66
id : 'rkrFAso1YyPbOJbmwVMjrPw+wwLJT7xusn8tA8zMe9e3+OqbtfDueB7bvoKLU3fsmdUvZ6eMt7mBp1ThMMB25Q=='
@@ -70,7 +70,7 @@ export const encryptCacheKeyVectors: VectorHack[] = [
70
70
partitionName ,
71
71
{
72
72
suite : { id : AlgorithmSuiteIdentifier . ALG_AES256_GCM_IV12_TAG16_HKDF_SHA384_ECDSA_P384 } ,
73
- encryptionContext : encryptionContextEmpty . context
73
+ encryptionContext : encryptionContextEmpty . encryptionContext
74
74
}
75
75
] ,
76
76
id : '3icBIkLK4V3fVwbm3zSxUdUQV6ZvZYUOLl8buN36g6gDMqAkghcGryxX7QiVABkW1JhB6GRp5z+bzbiuciBcKQ=='
@@ -80,7 +80,7 @@ export const encryptCacheKeyVectors: VectorHack[] = [
80
80
partitionName ,
81
81
{
82
82
suite : undefined ,
83
- encryptionContext : encryptionContextFull . context
83
+ encryptionContext : encryptionContextFull . encryptionContext
84
84
}
85
85
] ,
86
86
id : 'IHiUHYOUVUEFTc3BcZPJDlsWct2Qy1A7JdfQl9sQoV/ILIbRpoz9q7RtGd/MlibaGl5ihE66cN8ygM8A5rtYbg=='
@@ -90,7 +90,7 @@ export const encryptCacheKeyVectors: VectorHack[] = [
90
90
partitionName ,
91
91
{
92
92
suite : { id : AlgorithmSuiteIdentifier . ALG_AES256_GCM_IV12_TAG16_HKDF_SHA384_ECDSA_P384 } ,
93
- encryptionContext : encryptionContextFull . context
93
+ encryptionContext : encryptionContextFull . encryptionContext
94
94
}
95
95
] ,
96
96
id : 'mRNK7qhTb/kJiiyGPgAevp0gwFRcET4KeeNYwZHhoEDvSUzQiDgl8Of+YRDaVzKxAqpNBgcAuFXde9JlaRRsmw=='
@@ -104,7 +104,7 @@ export const decryptCacheKeyVectors: VectorHack[] = [
104
104
{
105
105
suite : { id : AlgorithmSuiteIdentifier . ALG_AES128_GCM_IV12_TAG16_HKDF_SHA256 } ,
106
106
encryptedDataKeys : [ encryptedDataKey1 . edk ] ,
107
- encryptionContext : encryptionContextEmpty . context
107
+ encryptionContext : encryptionContextEmpty . encryptionContext
108
108
}
109
109
] ,
110
110
id : 'n0zVzk9QIVxhz6ET+aJIKKOJNxtpGtSe1yAbu7WU5l272Iw/jmhlER4psDHJs9Mr8KYiIvLGSXzggNDCc23+9w=='
@@ -115,7 +115,7 @@ export const decryptCacheKeyVectors: VectorHack[] = [
115
115
{
116
116
suite : { id : AlgorithmSuiteIdentifier . ALG_AES256_GCM_IV12_TAG16_HKDF_SHA384_ECDSA_P384 } ,
117
117
encryptedDataKeys : [ encryptedDataKey1 . edk , encryptedDataKey2 . edk ] ,
118
- encryptionContext : encryptionContextFull . context
118
+ encryptionContext : encryptionContextFull . encryptionContext
119
119
}
120
120
] ,
121
121
id : '+rtwUe38CGnczGmYu12iqGWHIyDyZ44EvYQ4S6ACmsgS8VaEpiw0RTGpDk6Z/7YYN/jVHOAcNKDyCNP8EmstFg=='
0 commit comments