Java BigInteger Calculate getPrivateKey(BigInteger ran, BigInteger publicKey)

Here you can find the source of getPrivateKey(BigInteger ran, BigInteger publicKey)

Description

get Private Key

License

Apache License

Declaration

public static BigInteger getPrivateKey(BigInteger ran, BigInteger publicKey) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigInteger;

public class Main {

    public static BigInteger getPrivateKey(BigInteger ran, BigInteger publicKey) {
        return publicKey.modInverse(ran);
    }//  ww w  .jav  a  2s  . c  o m
}

Related

  1. getNatRouterIdFromMetadata(BigInteger metadata)
  2. getNetAddress(BigInteger ip, BigInteger netmask)
  3. getNextLexicographicalPermutation(BigInteger v)
  4. getNRightmostBits(final BigInteger in, final int n)
  5. getNumbersBetweenRange(BigInteger minValue, BigInteger maxValue)
  6. getPrivateKeyBytes(BigInteger privateKey)
  7. getQosFlowId(short tableId, BigInteger dpId, int lportTag)
  8. getRadixNumberInString(BigInteger integerNumber, int radix)
  9. getRandomBigInteger(int bits)