lib/auth/request-pq.js
function findPAndQ(context) {
    var pqFinder = new security.PQFinder(context.resPQ.pq);
    if (logger.isDebugEnabled()) {
        logger.debug('Start finding P and Q, with PQ = %s', pqFinder.getPQPairNumber());
    }
    var pq = pqFinder.findPQ();
    if (logger.isDebugEnabled()) {
        logger.debug('Found P = %s and Q = %s', pq[0], pq[1]);
    }
    context.pBuffer = pqFinder.getPQAsBuffer()[0];
    context.qBuffer = pqFinder.getPQAsBuffer()[1];
    return context;
}
function findPAndQ(context) {
    var pqFinder = new security.PQFinder(context.resPQ.pq);
    if (logger.isDebugEnabled()) {
        logger.debug('Start finding P and Q, with PQ = %s', pqFinder.getPQPairNumber());
    }
    var pq = pqFinder.findPQ();
    if (logger.isDebugEnabled()) {
        logger.debug('Found P = %s and Q = %s', pq[0], pq[1]);
    }
    context.pBuffer = pqFinder.getPQAsBuffer()[0];
    context.qBuffer = pqFinder.getPQAsBuffer()[1];
    return context;
}
function findPAndQ ( context ) { var pqFinder = new security . PQFinder ( context . resPQ . pq ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( 'Start finding P and Q, with PQ = %s' , pqFinder . getPQPairNumber ( ) ) ; } var pq = pqFinder . findPQ ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( 'Found P = %s and Q = %s' , pq [ 0 ] , pq [ 1 ] ) ; } context . pBuffer = pqFinder . getPQAsBuffer ( ) [ 0 ] ; context . qBuffer = pqFinder . getPQAsBuffer ( ) [ 1 ] ; return context ; }
Find the P and Q prime numbers
Find the P and Q prime numbers