Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cryptorand (0.12 sec)

  1. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	if keyType == kubeadmapi.EncryptionAlgorithmECDSAP256 {
    		return ecdsa.GenerateKey(elliptic.P256(), cryptorand.Reader)
    	}
    
    	rsaKeySize := rsaKeySizeFromAlgorithmType(keyType)
    	if rsaKeySize == 0 {
    		return nil, errors.Errorf("cannot obtain key size from unknown RSA algorithm: %q", keyType)
    	}
    	return rsa.GenerateKey(cryptorand.Reader, rsaKeySize)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. cluster/images/etcd/migrate/integration_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package main
    
    import (
    	"bytes"
    	cryptorand "crypto/rand"
    	"crypto/rsa"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/pem"
    	"flag"
    	"fmt"
    	"math/big"
    	"net"
    	"os"
    	"path/filepath"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"bytes"
    	"context"
    	cryptorand "crypto/rand"
    	"crypto/rsa"
    	"crypto/tls"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/base64"
    	"encoding/pem"
    	"errors"
    	"fmt"
    	"io/ioutil"
    	"math/big"
    	"net"
    	"os"
    	"path/filepath"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/math/big/alias_test.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package big_test
    
    import (
    	cryptorand "crypto/rand"
    	"math/big"
    	"math/rand"
    	"reflect"
    	"testing"
    	"testing/quick"
    )
    
    func equal(z, x *big.Int) bool {
    	return z.Cmp(x) == 0
    }
    
    type bigInt struct {
    	*big.Int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  5. src/crypto/ed25519/ed25519.go

    // 8032 private key as the “seed”.
    //
    // Operations involving private keys are implemented using constant-time
    // algorithms.
    package ed25519
    
    import (
    	"bytes"
    	"crypto"
    	"crypto/internal/edwards25519"
    	cryptorand "crypto/rand"
    	"crypto/sha512"
    	"crypto/subtle"
    	"errors"
    	"io"
    	"strconv"
    )
    
    const (
    	// PublicKeySize is the size, in bytes, of public keys as used in this package.
    	PublicKeySize = 32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top