Lines Matching refs:data
113 function asyncAesCtrCipher(mode, key, data, { counter, length }) {
127 data,
133 function asyncAesCbcCipher(mode, key, data, { iv }) {
139 data,
144 function asyncAesKwCipher(mode, key, data) {
149 data,
156 data,
174 const slice = ArrayBufferIsView(data) ?
176 tag = slice(data, -tagByteLength);
184 'The provided data is too small.',
188 data = slice(data, 0, -tagByteLength);
200 data,
207 function aesCipher(mode, key, data, algorithm) {
209 case 'AES-CTR': return asyncAesCtrCipher(mode, key, data, algorithm);
210 case 'AES-CBC': return asyncAesCbcCipher(mode, key, data, algorithm);
211 case 'AES-GCM': return asyncAesGcmCipher(mode, key, data, algorithm);
212 case 'AES-KW': return asyncAesKwCipher(mode, key, data);