File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ function useDH() {
102102 staticKey . generateKeys ( ) ;
103103 assert . equal ( staticKey . getPublicKey ( ) [ 0 ] , 4 , 'is an uncompressed point' ) ;
104104 var staticKeyId = staticKey . getPublicKey ( ) . toString ( 'hex' )
105- ece . saveKey ( staticKeyId , staticKey , 'p256dh ' ) ;
105+ ece . saveKey ( staticKeyId , staticKey , 'P-256 ' ) ;
106106
107107 log ( "Receiver private: " + base64 . encode ( staticKey . getPrivateKey ( ) ) ) ;
108108 log ( "Receiver public: " + base64 . encode ( staticKey . getPublicKey ( ) ) ) ;
@@ -112,7 +112,7 @@ function useDH() {
112112 ephemeralKey . generateKeys ( ) ;
113113 assert . equal ( ephemeralKey . getPublicKey ( ) [ 0 ] , 4 , 'is an uncompressed point' ) ;
114114 var ephemeralKeyId = ephemeralKey . getPublicKey ( ) . toString ( 'hex' ) ;
115- ece . saveKey ( ephemeralKeyId , ephemeralKey , 'p256dh ' ) ;
115+ ece . saveKey ( ephemeralKeyId , ephemeralKey , 'P-256 ' ) ;
116116
117117 log ( "Sender private: " + base64 . encode ( ephemeralKey . getPrivateKey ( ) ) ) ;
118118 log ( "Sender public: " + base64 . encode ( ephemeralKey . getPublicKey ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments