File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " axolotl" ,
3
3
"main" : " dist/axolotl.js" ,
4
- "version" : " 1.0 .2" ,
4
+ "version" : " 1.1 .2" ,
5
5
"authors" : [
6
6
" Joe Bandenburg <joe@bandenburg.com>"
7
7
],
Original file line number Diff line number Diff line change 291
291
}
292
292
} , $__20 , this ) ;
293
293
} ) ) ;
294
- this . generateSignedPreKeyBundle = sessionFactory . createSessionFromPreKeyBundle ;
294
+ this . createSessionFromPreKeyBundle = sessionFactory . createSessionFromPreKeyBundle ;
295
295
this . createSessionFromPreKeyWhisperMessage = sessionFactory . createSessionFromPreKeyWhisperMessage ;
296
296
this . encryptMessage = sessionCipher . encryptMessage ;
297
297
this . decryptWhisperMessage = sessionCipher . decryptWhisperMessage ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " axolotl" ,
3
- "version" : " 1.0 .2" ,
3
+ "version" : " 1.1 .2" ,
4
4
"description" : " A JavaScript port of libaxolotl. Axolotl is a ratcheting forward secrecy protocol." ,
5
5
"main" : " dist/axolotl.js" ,
6
6
"directories" : {
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ function Axolotl(crypto, store) {
194
194
* @type {PreKeyBundle } a pre-key bundle
195
195
* @returns {Promise.<Session, Error> }
196
196
*/
197
- this . generateSignedPreKeyBundle = sessionFactory . createSessionFromPreKeyBundle ;
197
+ this . createSessionFromPreKeyBundle = sessionFactory . createSessionFromPreKeyBundle ;
198
198
199
199
/**
200
200
* Create a session from a PreKeyWhisperMessage.
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ describe("Axolotl", () => {
175
175
var plaintext = crypto . randomBytes ( 10 ) ;
176
176
if ( ! receivingSession . session ) {
177
177
var bundle = ( receivingSession === bobSession ) ? bobPreKeyBundle : alicePreKeyBundle ;
178
- receivingSession . session = yield sendingAxolotl . generateSignedPreKeyBundle ( bundle ) ;
178
+ receivingSession . session = yield sendingAxolotl . createSessionFromPreKeyBundle ( bundle ) ;
179
179
}
180
180
var result = yield sendingAxolotl . encryptMessage ( receivingSession . session , plaintext ) ;
181
181
receivingSession . session = result . session ;
You can’t perform that action at this time.
0 commit comments