@@ -422,11 +422,12 @@ assert.throws(
422422 { private : fixtures . readKey ( 'ed25519_private.pem' , 'ascii' ) ,
423423 public : fixtures . readKey ( 'ed25519_public.pem' , 'ascii' ) ,
424424 algo : null ,
425+ supportsContext : hasOpenSSL ( 3 , 2 ) ,
425426 sigLen : 64 } ,
426427 { private : fixtures . readKey ( 'ed448_private.pem' , 'ascii' ) ,
427428 public : fixtures . readKey ( 'ed448_public.pem' , 'ascii' ) ,
428429 algo : null ,
429- supportsContext : true ,
430+ supportsContext : hasOpenSSL ( 3 , 2 ) ,
430431 sigLen : 114 } ,
431432 { private : fixtures . readKey ( 'rsa_private_2048.pem' , 'ascii' ) ,
432433 public : fixtures . readKey ( 'rsa_public_2048.pem' , 'ascii' ) ,
@@ -475,7 +476,7 @@ assert.throws(
475476 true ) ;
476477 } ) ;
477478
478- if ( pair . supportsContext && hasOpenSSL ( 3 , 2 ) ) {
479+ if ( pair . supportsContext ) {
479480 const data = Buffer . from ( 'Hello world' ) ;
480481 {
481482 const context = new Uint8Array ( ) ;
@@ -504,7 +505,7 @@ assert.throws(
504505 code : 'ERR_OUT_OF_RANGE' ,
505506 message : 'context string must be at most 255 bytes' ,
506507 } ) ;
507- } else if ( pair . supportsContext ) {
508+ } else {
508509 const data = Buffer . from ( 'Hello world' ) ;
509510 {
510511 const context = new Uint8Array ( ) ;
0 commit comments