Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/jsrsasign

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jsrsasign - npm Package Compare versions

Comparing version 10.5.6 to 10.5.7

45

jsrsasign/modules/KEYUTIL.d.ts

@@ -444,4 +444,4 @@ declare namespace jsrsasign {

/**
* @param alg 'RSA' or 'EC'
* @param keylenOrCurve key length for RSA or curve name for EC
* @param alg 'RSA'
* @param keylen key length
* @return associative array of keypair which has prvKeyObj and pubKeyObj parameters

@@ -453,10 +453,7 @@ * @description

*
* - prvKeyObj - RSAKey or ECDSA object of private key
* - pubKeyObj - RSAKey or ECDSA object of public key
* - prvKeyObj - RSAKey object of private key
* - pubKeyObj - RSAKey object of public key
*
* NOTE1: As for RSA algoirthm, public exponent has fixed
* value '0x10001'.
* NOTE2: As for EC algorithm, supported names of curve are
* secp256r1, secp256k1 and secp384r1.
* NOTE3: DSA is not supported yet.
* NOTE1: public exponent has fixed value '0x10001'.
* NOTE2: DSA algorithm is not supported yet.
* @example

@@ -468,7 +465,31 @@ * var rsaKeypair = KEYUTIL.generateKeypair("RSA", 1024);

static generateKeypair(
alg: 'RSA' | 'EC',
keylenOrCurve: number | string,
): { prvKeyObj: RSAKey | KJUR.crypto.ECDSA; pubKeyObj: RSAKey | KJUR.crypto.ECDSA };
alg: 'RSA',
keylen: number,
): { prvKeyObj: RSAKey; pubKeyObj: RSAKey };
/**
* @param alg 'EC'
* @param curve curve name
* @return associative array of keypair which has prvKeyObj and pubKeyObj parameters
* @description
* This method generates a key pair of public key algorithm.
* The result will be an associative array which has following
* parameters:
*
* - prvKeyObj - ECDSA object of private key
* - pubKeyObj - ECDSA object of public key
*
* NOTE1: supported names of curve are secp256r1, secp256k1 and
* secp384r1.
* NOTE2: DSA algorithm is not supported yet.
* @example
* var ecKeypair = KEYUTIL.generateKeypair("EC", "secp256r1");
*
*/
static generateKeypair(
alg: 'EC',
curve: 'secp256r1' | 'secp256k1' | 'secp384r1',
): { prvKeyObj: KJUR.crypto.ECDSA; pubKeyObj: KJUR.crypto.ECDSA };
/**
* decrypt PEM formatted protected PKCS#5 private key with passcode

@@ -475,0 +496,0 @@ * @param sEncryptedPEM PEM formatted protected passcode protected PKCS#5 private key

{
"name": "@types/jsrsasign",
"version": "10.5.6",
"version": "10.5.7",
"description": "TypeScript definitions for jsrsasign",

@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsrsasign",

"dependencies": {},
"typesPublisherContentHash": "8c8cf7e025e025e82dcc988f9dd552920c9e4ee5cd016d8c86d597c68f2100ea",
"typesPublisherContentHash": "b4c838913dce585699df7f5c3b87c917a59187d96ecf4e7b3185c4d6c80a00be",
"typeScriptVersion": "4.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 17 Mar 2023 14:32:34 GMT
* Last updated: Fri, 17 Mar 2023 21:02:56 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `jsrsasign`, `lang`

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc