Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,028 for Miller (0.32 sec)

  1. ciphers/rabin_miller.py

    # Primality Testing with the Rabin-Miller Algorithm
    
    import random
    
    
    def rabinMiller(num: int) -> bool:
        s = num - 1
        t = 0
    
        while s % 2 == 0:
            s = s // 2
            t += 1
    
        for trials 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: 2021-07-29 19:18
    - Last Modified: 2020-10-16 06:11
    - 3.2K bytes
    - Viewed (0)
  2. maths/miller_rabin.py

    Anzo Teh <******@****.***> 1577168595 -0500
    Python
    - Registered: 2021-07-29 19:18
    - Last Modified: 2019-12-24 06:23
    - 1.2K bytes
    - Viewed (1)
  3. 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: 2021-07-29 19:18
    - Last Modified: 2020-10-16 06:11
    - 4.1K bytes
    - Viewed (0)
  4. 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: 2021-07-30 12:00
    - Last Modified: 2021-06-16 23:47
    - 13.1K bytes
    - Viewed (0)
  5. src/support/asprintf.c

    /*
     * Copyright (c) 2004 Darren Tucker.
     *
     * Based originally on asprintf.c from OpenBSD:
     * Copyright (c) 1997 Todd C. Miller <Todd.Miller AT courtesan.com>
     *
     * Permission to use, copy, modify, and distribute this software for any
     * purpose with or without fee is hereby granted, provided that the above
     * copyright notice and this permission notice appear in all copies.
     *
     * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
    C
    - Registered: 2021-07-26 02:21
    - Last Modified: 2015-01-13 07:17
    - 3.1K bytes
    - Viewed (0)
  6. 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: 2021-07-25 18:27
    - Last Modified: 2018-03-05 12:33
    - 6.4K bytes
    - Viewed (0)
  7. 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: 2021-07-29 19:18
    - Last Modified: 2021-03-22 06:59
    - 2.2K bytes
    - Viewed (1)
  8. 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: 2021-07-25 18:27
    - Last Modified: 2020-11-17 08:51
    - 11.1K bytes
    - Viewed (0)
  9. benches/LICENSE

    The MIT License (MIT)
    
    Copyright (c) 2015-present Jason Miller
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    Plain Text
    - Registered: 2021-07-27 11:28
    - Last Modified: 2020-07-09 10:15
    - 1.1K bytes
    - Viewed (0)
  10. LICENSE

    The MIT License (MIT)
    
    Copyright (c) 2015-present Jason Miller
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    Plain Text
    - Registered: 2021-07-27 11:28
    - Last Modified: 2018-01-01 09:48
    - 1.1K bytes
    - Viewed (0)
Back to top