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

@eyhn/crypto

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eyhn/crypto - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

test/__snapshots__/index.ts.snap

2

package.json
{
"name": "@eyhn/crypto",
"version": "1.0.2",
"version": "1.0.3",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "types": "lib/index.d.ts",

@@ -5,2 +5,3 @@ import prng from "../rng/prng";

import { arrayBufferToBigInt } from "../bigint";
import Alea from "../rng/alea";

@@ -28,4 +29,4 @@ export function generateRandomBiting(bitlength: number, prng: (ba: TypedArray) => void): BigInt.BigInteger {

export default function pkcs1generate(bitlength: number, expt: number) {
const rng = prng();
export default function pkcs1generate(bitlength: number, expt: number, seed?: string) {
const rng = seed ? Alea(seed) : prng();
const qs = bitlength / 2;

@@ -32,0 +33,0 @@ const ee = BigInt(expt);

@@ -55,2 +55,7 @@ import crypto = require('../src/');

it('seed', () => {
const rsa = crypto.rsa.generate(1024, 65537, 'seed');
expect(rsa).toMatchSnapshot();
});
it('feature', () => {

@@ -57,0 +62,0 @@ const rsa = crypto.rsa.generate(1024, 65537);

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