mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 18:12:33 +00:00
fixo
This commit is contained in:
parent
741f6c9788
commit
3f8feee67c
@ -5,7 +5,7 @@ import {bytes, bytes32, uint32} from "../@types/basic";
|
|||||||
import {CipherState, MessageBuffer, SymmetricState} from "../@types/handshake";
|
import {CipherState, MessageBuffer, SymmetricState} from "../@types/handshake";
|
||||||
import {getHkdf} from "../utils";
|
import {getHkdf} from "../utils";
|
||||||
|
|
||||||
export class AbstractHandshake {
|
export abstract class AbstractHandshake {
|
||||||
protected minNonce = 0;
|
protected minNonce = 0;
|
||||||
|
|
||||||
public encryptWithAd(cs: CipherState, ad: bytes, plaintext: bytes): bytes {
|
public encryptWithAd(cs: CipherState, ad: bytes, plaintext: bytes): bytes {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user