Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MarshalPKCS1PublicKey (0.18 sec)

  1. docs/debugging/inspect/main.go

    	}
    	err = pem.Encode(privatePem, privateKeyBlock)
    	if err != nil {
    		fmt.Printf("error when encode private pem: %s n", err)
    		os.Exit(1)
    	}
    
    	// dump public key to file
    	publicKeyBytes := x509.MarshalPKCS1PublicKey(&privatekey.PublicKey)
    	if err != nil {
    		fmt.Printf("error when dumping publickey: %s n", err)
    		os.Exit(1)
    	}
    	publicKeyBlock := &pem.Block{
    		Type:  "PUBLIC KEY",
    		Bytes: publicKeyBytes,
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/crypto/x509/x509_test.go

    		E: 3,
    	}
    	derBytes := MarshalPKCS1PublicKey(pub)
    	pub2, err := ParsePKCS1PublicKey(derBytes)
    	if err != nil {
    		t.Errorf("ParsePKCS1PublicKey: %s", err)
    	}
    	if pub.N.Cmp(pub2.N) != 0 || pub.E != pub2.E {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
Back to top