@stellot/crypto
Version:
Crypto libraries for front and backend
9 lines (8 loc) • 395 B
TypeScript
import { BigInteger as BigInt } from 'jsbn';
import EncryptedValue from './encryptedValue';
import EncryptionElGamal from './encryption';
export default class DecryptionElGamal extends EncryptionElGamal {
x: BigInt;
constructor(p: BigInt | string | number, g: BigInt | string | number, y: BigInt | string | number, x: BigInt | string | number);
decrypt(m: EncryptedValue): BigInt;
}