Socket
Socket
Sign inDemoInstall

@stablelib/aead

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 1.0.0

12

aead.ts

@@ -5,4 +5,8 @@ // Copyright (C) 2016 Dmitry Chestnykh

/**
* Authenticated Encryption with Associated Data.
* Package aead provides interface for authentication encryption with associated data.
*/
/**
* AEAD is a common interface for authenticated encryption with associated Data.
*/
export interface AEAD {

@@ -15,3 +19,3 @@ /**

/**
* Byte length of authentication tag in the sealed ciphertext.
* Byte length of authentication tag included in the sealed ciphertext.
* Result of seal() will be longer than plaintext for this number of bytes.

@@ -33,3 +37,3 @@ */

* Authenticates ciphertext (which includes authentication tag) and
* associated data, decrypts ciphertext and returns decrypted plaintext.
* associated data, decrypts ciphertext, and returns decrypted plaintext.
*

@@ -46,5 +50,5 @@ * If authentication fails, it returns null.

* Wipes state from memory.
* This doesn't wipe the underlying block cipher state.
* Doesn't wipe the underlying block cipher state.
*/
clean(): this;
}
/**
* Authenticated Encryption with Associated Data.
* Package aead provides interface for authentication encryption with associated data.
*/
/**
* AEAD is a common interface for authenticated encryption with associated Data.
*/
export interface AEAD {

@@ -10,3 +13,3 @@ /**

/**
* Byte length of authentication tag in the sealed ciphertext.
* Byte length of authentication tag included in the sealed ciphertext.
* Result of seal() will be longer than plaintext for this number of bytes.

@@ -25,3 +28,3 @@ */

* Authenticates ciphertext (which includes authentication tag) and
* associated data, decrypts ciphertext and returns decrypted plaintext.
* associated data, decrypts ciphertext, and returns decrypted plaintext.
*

@@ -36,5 +39,5 @@ * If authentication fails, it returns null.

* Wipes state from memory.
* This doesn't wipe the underlying block cipher state.
* Doesn't wipe the underlying block cipher state.
*/
clean(): this;
}
{
"name": "@stablelib/aead",
"version": "0.5.0",
"version": "1.0.0",
"description": "AEAD interface declaration (authenticated encryption with associated data)",

@@ -14,3 +14,4 @@ "main": "./lib/aead.js",

"build": "tsc"
}
},
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc