Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions typings/internalBinding/crypto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,12 @@ declare namespace InternalCryptoBinding {
setPrivateKey(key: ByteSource): void;
}

interface SignHandle {
interface SignBaseHandle {
init(algorithm: string): void;
update(data: ByteSource, encoding?: string): void;
}

interface SignHandle extends SignBaseHandle {
sign(
...args: [
...key: PreparedAsymmetricKeyArgs,
Expand All @@ -678,9 +681,7 @@ declare namespace InternalCryptoBinding {
): Buffer;
}

interface VerifyHandle {
init(algorithm: string): void;
update(data: ByteSource, encoding?: string): void;
interface VerifyHandle extends SignBaseHandle {
verify(
...args: [
...key: PreparedAsymmetricKeyArgs,
Expand Down
Loading