HomeSort by relevance Sort by last modified time
    Searched refs:Prime (Results 1 - 25 of 44) sorted by null

1 2

  /prebuilts/go/darwin-x86/src/crypto/rand/
util_test.go 18 p, err := rand.Prime(rand.Reader, n)
20 t.Fatalf("Can't generate %d-bit prime: %v", n, err)
26 t.Fatalf("%v is not prime", p)
31 // Test that passing bits < 2 causes Prime to return nil, error
33 if p, err := rand.Prime(rand.Reader, 1); p != nil || err == nil {
34 t.Errorf("Prime should return nil, error when called with bits < 2")
72 rand.Prime(r, 1024)
util.go 13 // smallPrimes is a list of small, prime numbers that allows us to rapidly
15 // prime. This list is truncated at the point where smallPrimesProduct exceeds
23 // to reduce a candidate prime by this number and then determine whether it's
28 // Prime returns a number, p, of the given size, such that p is prime
30 // Prime will return error for any error returned by rand.Read or if bits < 2.
31 func Prime(rand io.Reader, bits int) (p *big.Int, err error) {
33 err = errors.New("crypto/rand: prime size must be at least 2-bit")
68 // Make the value odd since an even number this large certainly isn't prime.
83 for _, prime := range smallPrimes
    [all...]
  /prebuilts/go/linux-x86/src/crypto/rand/
util_test.go 18 p, err := rand.Prime(rand.Reader, n)
20 t.Fatalf("Can't generate %d-bit prime: %v", n, err)
26 t.Fatalf("%v is not prime", p)
31 // Test that passing bits < 2 causes Prime to return nil, error
33 if p, err := rand.Prime(rand.Reader, 1); p != nil || err == nil {
34 t.Errorf("Prime should return nil, error when called with bits < 2")
72 rand.Prime(r, 1024)
util.go 13 // smallPrimes is a list of small, prime numbers that allows us to rapidly
15 // prime. This list is truncated at the point where smallPrimesProduct exceeds
23 // to reduce a candidate prime by this number and then determine whether it's
28 // Prime returns a number, p, of the given size, such that p is prime
30 // Prime will return error for any error returned by rand.Read or if bits < 2.
31 func Prime(rand io.Reader, bits int) (p *big.Int, err error) {
33 err = errors.New("crypto/rand: prime size must be at least 2-bit")
68 // Make the value odd since an even number this large certainly isn't prime.
83 for _, prime := range smallPrimes
    [all...]
  /device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/
CryptDh.c 62 Given generator g, and length of prime number p in bits, this function generates p,
69 If Prime is NULL, then return FALSE.
73 @param[in] PrimeLength Length in bits of prime to be generated.
74 @param[out] Prime Pointer to the buffer to receive the generated prime number.
78 @retval FALSE PRNG fails to generate random prime number with PrimeLength.
87 OUT UINT8 *Prime
95 if (DhContext == NULL || Prime == NULL || PrimeLength > INT_MAX) {
108 BN_bn2bin (((DH *) DhContext)->p, Prime);
114 Sets generator and prime parameters for DH.
    [all...]
CryptDhNull.c 59 @param[in] PrimeLength Length in bits of prime to be generated.
60 @param[out] Prime Pointer to the buffer to receive the generated prime number.
71 OUT UINT8 *Prime
79 Sets generator and prime parameters for DH.
85 @param[in] PrimeLength Length in bits of prime to be generated.
86 @param[in] Prime Pointer to the prime number.
97 IN CONST UINT8 *Prime
  /device/linaro/bootloader/edk2/CryptoPkg/Application/Cryptest/
DhVerify.c 31 UINT8 Prime[64];
70 Status = DhGenerateParameter (Dh1, 2, 64, Prime);
77 Status = DhSetParameter (Dh2, 2, 64, Prime);
  /device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/
CryptDhNull.c 59 @param[in] PrimeLength Length in bits of prime to be generated.
60 @param[out] Prime Pointer to the buffer to receive the generated prime number.
71 OUT UINT8 *Prime
79 Sets generator and prime parameters for DH.
85 @param[in] PrimeLength Length in bits of prime to be generated.
86 @param[in] Prime Pointer to the prime number.
97 IN CONST UINT8 *Prime
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter2/
toy.ml 13 (* Prime the first token. *)
  /external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter2/
toy.ml 13 (* Prime the first token. *)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
toy.ml 15 (* Prime the first token. *)
  /external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter3/
toy.ml 15 (* Prime the first token. *)
  /prebuilts/go/darwin-x86/src/crypto/x509/
pkcs1.go 31 Prime *big.Int
68 if a.Prime.Sign() <= 0 {
69 return nil, errors.New("x509: private key contains zero or negative prime")
71 key.Primes[i+2] = a.Prime
108 priv.AdditionalPrimes[i].Prime = key.Primes[2+i]
  /prebuilts/go/linux-x86/src/crypto/x509/
pkcs1.go 31 Prime *big.Int
68 if a.Prime.Sign() <= 0 {
69 return nil, errors.New("x509: private key contains zero or negative prime")
71 key.Primes[i+2] = a.Prime
108 priv.AdditionalPrimes[i].Prime = key.Primes[2+i]
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
toy.ml 20 (* Prime the first token. *)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
toy.ml 20 (* Prime the first token. *)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
toy.ml 20 (* Prime the first token. *)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter7/
toy.ml 21 (* Prime the first token. *)
  /external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter4/
toy.ml 20 (* Prime the first token. *)
  /external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter5/
toy.ml 20 (* Prime the first token. *)
  /external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter6/
toy.ml 20 (* Prime the first token. *)
  /external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter7/
toy.ml 21 (* Prime the first token. *)
  /external/apache-xml/src/main/java/org/apache/xml/serializer/
HTMLEntities.properties 192 prime=8242
193 Prime=8243
  /device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
IpSecCryptIo.h 643 the prime and primelenght, at end call the DhGenerateKey() to generates random
651 @param[in] PrimeLength Length in bits of prime to be generated.
652 @param[in] Prime Pointer to the buffer to receive the generated
653 prime number.
668 IN CONST UINT8 *Prime,
677 on its own context including value of prime modulus and random secret exponent.
  /device/linaro/bootloader/edk2/CryptoPkg/Include/Library/
BaseCryptLib.h 70 RsaKeyP, ///< RSA secret prime factor of Modulus (p)
71 RsaKeyQ, ///< RSA secret prime factor of Modules (q)
    [all...]

Completed in 295 milliseconds

1 2