webcrypto-core
Advanced tools
Comparing version 0.1.25 to 0.1.26
@@ -30,2 +30,4 @@ declare type NativeCrypto = Crypto; | ||
X25519: string; | ||
DesCBC: string; | ||
DesEdeCBC: string; | ||
}; | ||
@@ -154,3 +156,3 @@ | ||
public static decrypt(algorithm: Algorithm, key: CryptoKey, data: Uint8Array): PromiseLike<ArrayBuffer>; | ||
public static ALG_NAME: string; | ||
public static ALG_NAME: string; | ||
public static KEY_USAGES: string[]; | ||
@@ -269,2 +271,46 @@ } | ||
// DES | ||
interface DesKeyGenParams extends Algorithm { | ||
length: number; | ||
} | ||
interface DesCbcParams extends Algorithm { | ||
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; | ||
} | ||
interface DesEdeCbcParams extends Algorithm { | ||
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; | ||
} | ||
interface DesKeyDeriveParams extends Algorithm { | ||
length: number; | ||
} | ||
class Des extends BaseCrypto { | ||
public static ALG_NAME: string; | ||
public static KEY_LENGTH: number; | ||
public static KEY_USAGES: string[]; | ||
public static checkKeyUsages(keyUsages: string[]): void; | ||
public static checkAlgorithm(alg: Algorithm): void; | ||
public static checkKeyGenParams(alg: DesKeyGenParams): void; | ||
public static generateKey(algorithm: DesKeyGenParams, extractable: boolean, keyUsages: string[]): Promise<CryptoKey | CryptoKeyPair>; | ||
public static exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>; | ||
public static importKey(format: string, keyData: JsonWebKey | Uint8Array, algorithm: any, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; | ||
public static wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: Algorithm): PromiseLike<ArrayBuffer>; | ||
public static unwrapKey(format: string, wrappedKey: Uint8Array, unwrappingKey: CryptoKey, unwrapAlgorithm: Algorithm, unwrappedKeyAlgorithm: Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; | ||
public static encrypt(algorithm: Algorithm, key: CryptoKey, data: Uint8Array): PromiseLike<ArrayBuffer>; | ||
public static decrypt(algorithm: Algorithm, key: CryptoKey, data: Uint8Array): PromiseLike<ArrayBuffer>; | ||
} | ||
class DesCBC extends Des { | ||
public static ALG_NAME: string; | ||
public static checkAlgorithmParams(alg: DesCbcParams): void; | ||
} | ||
class DesEdeCBC extends DesCBC { | ||
public static ALG_NAME: string; | ||
public static KEY_LENGTH: number; | ||
} | ||
} | ||
@@ -271,0 +317,0 @@ |
{ | ||
"name": "webcrypto-core", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"description": "Common layer to be used by crypto libraries based on WebCrypto API for input validation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/webcrypto-core.js", |
@@ -0,0 +0,0 @@ [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/PeculiarVentures/webcrypto-core/master/LICENSE) |
@@ -0,0 +0,0 @@ var webcrypto = require("../"); |
@@ -0,0 +0,0 @@ var Base64Url = require("../").Base64Url; |
@@ -0,0 +0,0 @@ var webcrypto = require("../"); |
@@ -0,0 +0,0 @@ var webcrypto = require("../"); |
@@ -0,0 +0,0 @@ var helper = require("./helper"); |
@@ -0,0 +0,0 @@ var subtle = new (require("../").SubtleCrypto); |
@@ -0,0 +0,0 @@ var webcrypto = require("../"); |
@@ -0,0 +0,0 @@ var webcrypto = require("../"); |
@@ -0,0 +0,0 @@ var webcrypto = require("../"); |
@@ -0,0 +0,0 @@ var helper = require("./helper"); |
@@ -0,0 +0,0 @@ var helper = require("./helper"); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference path="../index.d.ts" /> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
295370
20
7198