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