66const standardAlgorithms = {
77 // Asymmetric algorithms
88 'RSASSA-PKCS1-v1_5' : {
9- operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' ] ,
9+ operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' , 'getPublicKey' ] ,
1010 keyGenParams : {
1111 name : 'RSASSA-PKCS1-v1_5' ,
1212 modulusLength : 2048 ,
@@ -17,7 +17,7 @@ const standardAlgorithms = {
1717 signParams : { name : 'RSASSA-PKCS1-v1_5' } ,
1818 } ,
1919 'RSA-PSS' : {
20- operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' ] ,
20+ operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' , 'getPublicKey' ] ,
2121 keyGenParams : {
2222 name : 'RSA-PSS' ,
2323 modulusLength : 2048 ,
@@ -28,7 +28,7 @@ const standardAlgorithms = {
2828 signParams : { name : 'RSA-PSS' , saltLength : 32 } ,
2929 } ,
3030 'RSA-OAEP' : {
31- operations : [ 'generateKey' , 'importKey' , 'encrypt' , 'decrypt' ] ,
31+ operations : [ 'generateKey' , 'importKey' , 'encrypt' , 'decrypt' , 'getPublicKey' ] ,
3232 keyGenParams : {
3333 name : 'RSA-OAEP' ,
3434 modulusLength : 2048 ,
@@ -39,13 +39,13 @@ const standardAlgorithms = {
3939 encryptParams : { name : 'RSA-OAEP' } ,
4040 } ,
4141 ECDSA : {
42- operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' ] ,
42+ operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' , 'getPublicKey' ] ,
4343 keyGenParams : { name : 'ECDSA' , namedCurve : 'P-256' } ,
4444 importParams : { name : 'ECDSA' , namedCurve : 'P-256' } ,
4545 signParams : { name : 'ECDSA' , hash : 'SHA-256' } ,
4646 } ,
4747 ECDH : {
48- operations : [ 'generateKey' , 'importKey' , 'deriveBits' ] ,
48+ operations : [ 'generateKey' , 'importKey' , 'deriveBits' , 'getPublicKey' ] ,
4949 keyGenParams : { name : 'ECDH' , namedCurve : 'P-256' } ,
5050 importParams : { name : 'ECDH' , namedCurve : 'P-256' } ,
5151 deriveBitsParams : {
@@ -58,12 +58,12 @@ const standardAlgorithms = {
5858 } ,
5959 } ,
6060 Ed25519 : {
61- operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' ] ,
61+ operations : [ 'generateKey' , 'importKey' , 'sign' , 'verify' , 'getPublicKey' ] ,
6262 keyGenParams : null ,
6363 signParams : { name : 'Ed25519' } ,
6464 } ,
6565 X25519 : {
66- operations : [ 'generateKey' , 'importKey' , 'deriveBits' ] ,
66+ operations : [ 'generateKey' , 'importKey' , 'deriveBits' , 'getPublicKey' ] ,
6767 keyGenParams : null ,
6868 deriveBitsParams : {
6969 name : 'X25519' ,
@@ -152,6 +152,7 @@ const operations = [
152152 'decrypt' ,
153153 'deriveBits' ,
154154 'digest' ,
155+ 'getPublicKey' ,
155156] ;
156157
157158// Test that supports method exists and is a static method
0 commit comments