Skip to content

Commit 663143d

Browse files
committed
uint8 convertion
1 parent 8b647e6 commit 663143d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/comms/isocket-comms.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ class ISocketComms extends EventEmitter {
9797
async decrypt(reply, sender){
9898
if(this.aesStream){
9999
debug('decrypting quantum aes')
100+
console.log(reply, typeof reply)
100101

101-
const contentBSON = await this.aesStream.decrypt( reply.data )
102+
const contentBSON = await this.aesStream.decrypt( new Uint8Array(reply.data) )
102103
const content = Routines.BSON.parseObject(new Routines.BSON.BaseParser( contentBSON ))
103104

104105
return content

0 commit comments

Comments
 (0)