@@ -15,7 +15,7 @@ function run_test() {
1515 var promise = importVectorKeys ( vector , [ "verify" , "sign" ] )
1616 . then ( function ( vector ) {
1717 promise_test ( function ( test ) {
18- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
18+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
1919 if ( vector . customization !== undefined ) {
2020 algorithmParams . customization = vector . customization ;
2121 }
@@ -48,7 +48,7 @@ function run_test() {
4848 var signature = copyBuffer ( vector . signature ) ;
4949 signature [ 0 ] = 255 - signature [ 0 ] ;
5050 var algorithmParams = {
51- length : vector . length ,
51+ outputLength : vector . outputLength ,
5252 get name ( ) {
5353 signature [ 0 ] = vector . signature [ 0 ] ;
5454 return vector . algorithm ;
@@ -81,7 +81,7 @@ function run_test() {
8181 . then ( function ( vector ) {
8282 promise_test ( function ( test ) {
8383 var signature = copyBuffer ( vector . signature ) ;
84- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
84+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
8585 if ( vector . customization !== undefined ) {
8686 algorithmParams . customization = vector . customization ;
8787 }
@@ -115,7 +115,7 @@ function run_test() {
115115 signature . buffer . transfer ( ) ;
116116 return vector . algorithm ;
117117 } ,
118- length : vector . length
118+ outputLength : vector . outputLength
119119 } ;
120120 if ( vector . customization !== undefined ) {
121121 algorithmParams . customization = vector . customization ;
@@ -144,7 +144,7 @@ function run_test() {
144144 . then ( function ( vector ) {
145145 promise_test ( function ( test ) {
146146 var signature = copyBuffer ( vector . signature ) ;
147- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
147+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
148148 if ( vector . customization !== undefined ) {
149149 algorithmParams . customization = vector . customization ;
150150 }
@@ -175,7 +175,7 @@ function run_test() {
175175 var plaintext = copyBuffer ( vector . plaintext ) ;
176176 plaintext [ 0 ] = 255 - plaintext [ 0 ] ;
177177 var algorithmParams = {
178- length : vector . length ,
178+ outputLength : vector . outputLength ,
179179 get name ( ) {
180180 plaintext [ 0 ] = vector . plaintext [ 0 ] ;
181181 return vector . algorithm ;
@@ -208,7 +208,7 @@ function run_test() {
208208 . then ( function ( vector ) {
209209 promise_test ( function ( test ) {
210210 var plaintext = copyBuffer ( vector . plaintext ) ;
211- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
211+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
212212 if ( vector . customization !== undefined ) {
213213 algorithmParams . customization = vector . customization ;
214214 }
@@ -242,7 +242,7 @@ function run_test() {
242242 plaintext . buffer . transfer ( ) ;
243243 return vector . algorithm ;
244244 } ,
245- length : vector . length
245+ outputLength : vector . outputLength
246246 } ;
247247 if ( vector . customization !== undefined ) {
248248 algorithmParams . customization = vector . customization ;
@@ -271,7 +271,7 @@ function run_test() {
271271 . then ( function ( vector ) {
272272 promise_test ( function ( test ) {
273273 var plaintext = copyBuffer ( vector . plaintext ) ;
274- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
274+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
275275 if ( vector . customization !== undefined ) {
276276 algorithmParams . customization = vector . customization ;
277277 }
@@ -301,7 +301,7 @@ function run_test() {
301301 var promise = importVectorKeys ( vector , [ "sign" ] )
302302 . then ( function ( vector ) {
303303 promise_test ( function ( test ) {
304- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
304+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
305305 if ( vector . customization !== undefined ) {
306306 algorithmParams . customization = vector . customization ;
307307 }
@@ -326,7 +326,7 @@ function run_test() {
326326 var promise = importVectorKeys ( vector , [ "verify" , "sign" ] )
327327 . then ( function ( vectors ) {
328328 promise_test ( function ( test ) {
329- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
329+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
330330 if ( vector . customization !== undefined ) {
331331 algorithmParams . customization = vector . customization ;
332332 }
@@ -363,7 +363,7 @@ function run_test() {
363363 return importVectorKeys ( vector , [ "verify" , "sign" ] )
364364 . then ( function ( vectors ) {
365365 promise_test ( function ( test ) {
366- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
366+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
367367 if ( vector . customization !== undefined ) {
368368 algorithmParams . customization = vector . customization ;
369369 }
@@ -401,7 +401,7 @@ function run_test() {
401401 return importVectorKeys ( vector , [ "verify" , "sign" ] )
402402 . then ( function ( vector ) {
403403 promise_test ( function ( test ) {
404- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
404+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
405405 if ( vector . customization !== undefined ) {
406406 algorithmParams . customization = vector . customization ;
407407 }
@@ -438,7 +438,7 @@ function run_test() {
438438 var plaintext = copyBuffer ( vector . plaintext ) ;
439439 plaintext [ 0 ] = 255 - plaintext [ 0 ] ;
440440 promise_test ( function ( test ) {
441- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
441+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
442442 if ( vector . customization !== undefined ) {
443443 algorithmParams . customization = vector . customization ;
444444 }
@@ -470,7 +470,7 @@ function run_test() {
470470 var signature = copyBuffer ( vector . signature ) ;
471471 signature [ 0 ] = 255 - signature [ 0 ] ;
472472 promise_test ( function ( test ) {
473- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
473+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
474474 if ( vector . customization !== undefined ) {
475475 algorithmParams . customization = vector . customization ;
476476 }
@@ -501,7 +501,7 @@ function run_test() {
501501 . then ( function ( vector ) {
502502 var signature = vector . signature . slice ( 1 ) ; // Drop first byte
503503 promise_test ( function ( test ) {
504- var algorithmParams = { name : vector . algorithm , length : vector . length } ;
504+ var algorithmParams = { name : vector . algorithm , outputLength : vector . outputLength } ;
505505 if ( vector . customization !== undefined ) {
506506 algorithmParams . customization = vector . customization ;
507507 }
@@ -531,8 +531,8 @@ function run_test() {
531531 var promise = importVectorKeys ( vector , [ "verify" , "sign" ] )
532532 . then ( function ( vector ) {
533533 promise_test ( function ( test ) {
534- var differentLength = vector . length === 256 ? 512 : 256 ;
535- var algorithmParams = { name : vector . algorithm , length : differentLength } ;
534+ var differentLength = vector . outputLength === 256 ? 512 : 256 ;
535+ var algorithmParams = { name : vector . algorithm , outputLength : differentLength } ;
536536 if ( vector . customization !== undefined ) {
537537 algorithmParams . customization = vector . customization ;
538538 }
0 commit comments