Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 910 for Miller (0.54 sec)

  1. ciphers/rabin_miller.py

    # Primality Testing with the Rabin-Miller Algorithm
    
    import random
    
    
    def rabin_miller(num: int) -> bool:
        s = num - 1
        t = 0
    
        while s % 2 == 0:
            s = s // 2
            t += 1
    
        for _ in range(5):
            a = random.randrange(2, num - 1)
            v = pow(a, s, num)
            if v != 1:
                i = 0
                while v != (num - 1):
                    if i == t - 1:
                        return False
    Python
    - Registered: 2022-12-01 19:18
    - Last Modified: 2022-10-13 16:03
    - 3.2K bytes
    - Viewed (0)
  2. ciphers/deterministic_miller_rabin.py

        assert not miller_rabin(3_078_386_641)
        assert miller_rabin(3_078_386_653)
        # 3_215_031_751
    
        assert not miller_rabin(1_713_045_574_801)
        assert miller_rabin(1_713_045_574_819)
        # 2_152_302_898_747
    
        assert not miller_rabin(2_779_799_728_307)
        assert miller_rabin(2_779_799_728_327)
        # 3_474_749_660_383
    
        assert not miller_rabin(113_850_023_909_441)
        assert miller_rabin(113_850_023_909_527)
    Python
    - Registered: 2022-12-01 19:18
    - Last Modified: 2022-01-30 19:29
    - 4.1K bytes
    - Viewed (0)
  3. maths/miller_rabin.py

    Caeden <******@****.***> 1665676986 +0100
    Python
    - Registered: 2022-12-01 19:18
    - Last Modified: 2022-10-13 16:03
    - 1.3K bytes
    - Viewed (1)
  4. plugins/jquery-mapael/maps/world_countries_miller.js

     * Requires Mapael
     *
     * Map of World by country
     * Miller projection
     *
     * @source http://code.highcharts.com/mapdata/
     *
     * @deprecated : this map will be definitely moved to 'mapael-maps' repository starting from the next major release (3.0.0).
     * You can use instead https://github.com/neveldo/mapael-maps/blob/master/world/world_countries_miller.js
     */
    (function (factory) {
        if (typeof exports === 'object') {
    JavaScript
    - Registered: 2022-12-05 07:18
    - Last Modified: 2019-06-14 07:33
    - 84.6K bytes
    - Viewed (1)
  5. plugins/jquery-mapael/maps/world_countries_miller.min.js

    !function(a){"object"==typeof exports?module.exports=a(require("jquery"),require("jquery-mapael")):"function"==typeof define&&define.amd?define(["jquery","mapael"],a):a(jQuery,jQuery.mapael)}(function(a,b){"use strict";return a.extend(!0,b,{maps:{world_countries_miller:{width:700.9375,height:337.375,leftLongitude:-175,rightLongitude:190,topLatitude:84,bottomLatitude:-56,_projectLongitude:function(a){return a*Math.PI/180},_projectLatitude:function(a){var b=a*Math.PI/180;return 1.25*Math.log(Math.tan(Math.PI/4+.4...
    JavaScript
    - Registered: 2022-12-05 07:18
    - Last Modified: 2019-06-14 07:33
    - 76K bytes
    - Viewed (0)
  6. core/src/test/java/com/alibaba/druid/bvt/sql/mysql/param/MySqlParamTest.java

    0b853c4a26094480140194289e3d24/0.1.1.2.1//2e3b9cf7/ */select `miller_cart`.`CART_ID`,`miller_cart`.`SKU_ID`,`miller_cart`.`ITEM_ID`,`miller_cart`.`QUANTITY`,`miller_cart`.`USER_ID`,`miller_cart`.`SELLER_ID`,`miller_cart`.`STATUS`,`miller_cart`.`EXT_STATUS`,`miller_cart`.`TYPE`,`miller_cart`.`SUB_TYPE`,`miller_cart`.`GMT_CREATE`,`miller_cart`.`GMT_MODIFIED`,`miller_cart`.`ATTRIBUTE`,`miller_cart`.`ATTRIBUTE_CC`,`miller_cart`.`EX2` from `miller_cart_0304` `miller_cart` where ((`miller_cart`.`USER_ID` =...
    Java
    - Registered: 2022-12-05 07:39
    - Last Modified: 2022-09-12 01:19
    - 2.1K bytes
    - Viewed (0)
  7. enterprise/backend/test/metabase_enterprise/enhancements/integrations/ldap_test.clj

            (is (= {:dn         "cn=Jane Miller,ou=People,dc=metabase,dc=com"
                    :first-name nil
                    :last-name  "Miller"
                    :email      "jane.miller@metabase.com"
                    :attributes {:uid       "jmiller"
                                 :mail      "jane.miller@metabase.com"
                                 :cn        "Jane Miller"
                                 :sn        "Miller"}
    Others
    - Registered: 2022-11-25 12:00
    - Last Modified: 2022-09-30 01:18
    - 13.3K bytes
    - Viewed (0)
  8. crypto/bn256/cloudflare/optate.go

    	1, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0, 0, 1,
    	1, 0, 0, -1, 0, 0, 0, 1, 1, 0, -1, 0, 0, 1, 0, 1, 1}
    
    // miller implements the Miller loop for calculating the Optimal Ate pairing.
    // See algorithm 1 from http://cryptojedi.org/papers/dclxvi-20100714.pdf
    func miller(q *twistPoint, p *curvePoint) *gfP12 {
    	ret := (&gfP12{}).SetOne()
    
    	aAffine := &twistPoint{}
    	aAffine.Set(q)
    	aAffine.MakeAffine()
    
    Go
    - Registered: 2022-12-04 18:27
    - Last Modified: 2018-03-05 12:33
    - 6.4K bytes
    - Viewed (0)
  9. ciphers/elgamal_key_generator.py

    import os
    import random
    import sys
    
    from . import cryptomath_module as cryptomath
    from . import rabin_miller
    
    min_primitive_root = 3
    
    
    # I have written my code naively same as definition of primitive root
    # however every time I run this program, memory exceeded...
    # so I used 4.80 Algorithm in
    # Handbook of Applied Cryptography(CRC Press, ISBN : 0-8493-8523-7, October 1996)
    # and it seems to run nicely!
    Python
    - Registered: 2022-12-01 19:18
    - Last Modified: 2022-10-16 20:50
    - 2.1K bytes
    - Viewed (1)
  10. crypto/bn256/cloudflare/bn256.go

    			continue
    		}
    		acc.Mul(acc, miller(b[i].p, a[i].p))
    	}
    	return finalExponentiation(acc).IsOne()
    }
    
    // Miller applies Miller's algorithm, which is a bilinear function from the
    // source groups to F_p^12. Miller(g1, g2).Finalize() is equivalent to Pair(g1,
    // g2).
    func Miller(g1 *G1, g2 *G2) *GT {
    	return &GT{miller(g2.p, g1.p)}
    }
    
    func (g *GT) String() string {
    Go
    - Registered: 2022-12-04 18:27
    - Last Modified: 2020-11-17 08:51
    - 11.1K bytes
    - Viewed (0)
Back to top