Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for PublicKey (0.1 sec)

  1. cmd/sftp-server.go

    }
    
    func sshPubKeyAuth(c ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
    	return authenticateSSHConnection(c, key, nil)
    }
    
    func sshPasswordAuth(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error) {
    	return authenticateSSHConnection(c, nil, pass)
    }
    
    func authenticateSSHConnection(c ssh.ConnMetadata, key ssh.PublicKey, pass []byte) (*ssh.Permissions, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

        /**
         * Sets the public/private key pair used for this certificate. If unset a key pair will be
         * generated.
         */
        fun keyPair(
          publicKey: PublicKey,
          privateKey: PrivateKey,
        ) = apply {
          keyPair(KeyPair(publicKey, privateKey))
        }
    
        /**
         * Set the certificate that will issue this certificate. If unset the certificate will be
         * self-signed.
         */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwks_test.go

    		t.Fatalf("Expected 2 keys, got %d", len(jk.Keys))
    	}
    
    	keys := make([]crypto.PublicKey, len(jk.Keys))
    	for ii, jks := range jk.Keys {
    		var err error
    		keys[ii], err = jks.DecodePublicKey()
    		if err != nil {
    			t.Fatalf("Failed to decode key %d: %v", ii, err)
    		}
    	}
    
    	//nolint:gocritic
    	if key0, ok := keys[0].(*ecdsa.PublicKey); !ok {
    		t.Fatalf("Expected ECDSA key[0], got %T", keys[0])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       *   privateKeyAlgorithm       PrivateKeyAlgorithmIdentifier,
       *   privateKey                PrivateKey,
       *   attributes            [0] Attributes OPTIONAL,
       *   ...,
       *   [[2: publicKey        [1] PublicKey OPTIONAL ]],
       *   ...
       * }
       *
       * PrivateKeyInfo ::= OneAsymmetricKey
       * ```
       */
      internal val privateKeyInfo: BasicDerAdapter<PrivateKeyInfo> =
        Adapters.sequence(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

              "Ivq32BsloQu6LlvX1wJ4YEoUCjDlPOtpht7XLbUmBnbIzN89XK4UJVM6Sqp3K88Km8z7gMrdrfTom/274wL25fICR+" +
              "yDEQ5fUVYBmJAKXZF1aoI0mIoEx0xFsQhIJ637v2MxJDupd61wIDAQAB"
          )
            .decodeBase64()!!
        val publicKey =
          keyFactory.generatePublic(
            X509EncodedKeySpec(publicKeyBytes.toByteArray()),
          )
        val privateKeyBytes =
          (
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

          )
        val keyFactory = KeyFactory.getInstance("RSA")
        val publicKey = keyFactory.generatePublic(X509EncodedKeySpec(x509PublicKey.toByteArray()))
        val privateKey = keyFactory.generatePrivate(PKCS8EncodedKeySpec(privateKeyBytes.toByteArray()))
    
        val certificate =
          HeldCertificate.Builder()
            .keyPair(publicKey, privateKey)
            .build()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

      }
    
      companion object {
        @JvmField
        val DEFAULT = Builder().build()
    
        @JvmStatic
        fun X509Certificate.sha1Hash(): ByteString = publicKey.encoded.toByteString().sha1()
    
        @JvmStatic
        fun X509Certificate.sha256Hash(): ByteString = publicKey.encoded.toByteString().sha256()
    
        /**
         * Returns the SHA-256 of `certificate`'s public key.
         *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. api/go1.4.txt

    pkg crypto, type Signer interface { Public, Sign }
    pkg crypto, type Signer interface, Public() PublicKey
    pkg crypto, type Signer interface, Sign(io.Reader, []uint8, SignerOpts) ([]uint8, error)
    pkg crypto, type SignerOpts interface { HashFunc }
    pkg crypto, type SignerOpts interface, HashFunc() Hash
    pkg crypto/ecdsa, method (*PrivateKey) Public() crypto.PublicKey
    pkg crypto/ecdsa, method (*PrivateKey) Sign(io.Reader, []uint8, crypto.SignerOpts) ([]uint8, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 12 03:01:01 UTC 2014
    - 34K bytes
    - Viewed (0)
  9. api/go1.10.txt

    pkg crypto/x509, const UnconstrainedName = 7
    pkg crypto/x509, const UnconstrainedName InvalidReason
    pkg crypto/x509, func MarshalPKCS1PublicKey(*rsa.PublicKey) []uint8
    pkg crypto/x509, func MarshalPKCS8PrivateKey(interface{}) ([]uint8, error)
    pkg crypto/x509, func ParsePKCS1PublicKey([]uint8) (*rsa.PublicKey, error)
    pkg crypto/x509, method (PublicKeyAlgorithm) String() string
    pkg crypto/x509, type Certificate struct, ExcludedEmailAddresses []string
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Feb 06 05:00:01 UTC 2018
    - 30.1K bytes
    - Viewed (0)
  10. api/go1.11.txt

    pkg crypto/cipher, func NewGCMWithTagSize(Block, int) (AEAD, error)
    pkg crypto/rsa, method (*PrivateKey) Size() int
    pkg crypto/rsa, method (*PublicKey) Size() int
    pkg crypto/tls, method (*ConnectionState) ExportKeyingMaterial(string, []uint8, int) ([]uint8, error)
    pkg database/sql, method (IsolationLevel) String() string
    pkg database/sql, type DBStats struct, Idle int
    pkg database/sql, type DBStats struct, InUse int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
Back to top