Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewPrivateKeyRSA (1.22 sec)

  1. src/crypto/rsa/boring.go

    	D = b.orig.D
    	if len(b.orig.Primes) == 2 {
    		P = b.orig.Primes[0]
    		Q = b.orig.Primes[1]
    		Dp = b.orig.Precomputed.Dp
    		Dq = b.orig.Precomputed.Dq
    		Qinv = b.orig.Precomputed.Qinv
    	}
    	key, err := boring.NewPrivateKeyRSA(bbig.Enc(N), bbig.Enc(E), bbig.Enc(D), bbig.Enc(P), bbig.Enc(Q), bbig.Enc(Dp), bbig.Enc(Dq), bbig.Enc(Qinv))
    	if err != nil {
    		return nil, err
    	}
    	b.key = key
    	privCache.Put(priv, b)
    	return key, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/notboring.go

    	panic("boringcrypto: not available")
    }
    func GenerateKeyRSA(bits int) (N, E, D, P, Q, Dp, Dq, Qinv BigInt, err error) {
    	panic("boringcrypto: not available")
    }
    func NewPrivateKeyRSA(N, E, D, P, Q, Dp, Dq, Qinv BigInt) (*PrivateKeyRSA, error) {
    	panic("boringcrypto: not available")
    }
    func NewPublicKeyRSA(N, E BigInt) (*PublicKeyRSA, error) { panic("boringcrypto: not available") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/crypto/internal/boring/rsa.go

    	defer runtime.KeepAlive(k)
    	return f(k._key)
    }
    
    type PrivateKeyRSA struct {
    	// _key MUST NOT be accessed directly. Instead, use the withKey method.
    	_key *C.GO_RSA
    }
    
    func NewPrivateKeyRSA(N, E, D, P, Q, Dp, Dq, Qinv BigInt) (*PrivateKeyRSA, error) {
    	key := C._goboringcrypto_RSA_new()
    	if key == nil {
    		return nil, fail("RSA_new")
    	}
    	if !bigToBn(&key.n, N) ||
    		!bigToBn(&key.e, E) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 23:38:03 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top