Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for ed25519 (0.15 sec)

  1. src/crypto/ed25519/ed25519.go

    			return errors.New("ed25519: invalid signature")
    		}
    		return nil
    	default:
    		return errors.New("ed25519: expected opts.Hash zero (unhashed message, for standard Ed25519) or SHA-512 (for Ed25519ph)")
    	}
    }
    
    func verify(publicKey PublicKey, message, sig []byte, domPrefix, context string) bool {
    	if l := len(publicKey); l != PublicKeySize {
    		panic("ed25519: bad public key length: " + strconv.Itoa(l))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/crypto/tls/testdata/Server-TLSv12-Ed25519

    Filippo Valsorda <******@****.***> 1684886145 +0200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:13:30 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/crypto/tls/testdata/Server-TLSv13-Ed25519

    Filippo Valsorda <******@****.***> 1684936196 +0200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:14:50 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. src/crypto/tls/testdata/Client-TLSv13-Ed25519

    Roland Shoemaker <******@****.***> 1715710936 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/crypto/tls/testdata/Client-TLSv12-Ed25519

    Roland Shoemaker <******@****.***> 1715710936 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/crypto/tls/testdata/Client-TLSv13-ClientCert-Ed25519

    Roland Shoemaker <******@****.***> 1715710936 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. src/crypto/tls/testdata/Client-TLSv12-ClientCert-Ed25519

    Roland Shoemaker <******@****.***> 1715710936 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. src/crypto/x509/pkcs8.go

    			return nil, errors.New("x509: invalid Ed25519 private key parameters")
    		}
    		var curvePrivateKey []byte
    		if _, err := asn1.Unmarshal(privKey.PrivateKey, &curvePrivateKey); err != nil {
    			return nil, fmt.Errorf("x509: invalid Ed25519 private key: %v", err)
    		}
    		if l := len(curvePrivateKey); l != ed25519.SeedSize {
    			return nil, fmt.Errorf("x509: invalid Ed25519 private key length: %d", l)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/crypto/tls/auth.go

    			return errors.New("ECDSA verification failure")
    		}
    	case signatureEd25519:
    		pubKey, ok := pubkey.(ed25519.PublicKey)
    		if !ok {
    			return fmt.Errorf("expected an Ed25519 public key, got %T", pubkey)
    		}
    		if !ed25519.Verify(pubKey, signed, sig) {
    			return errors.New("Ed25519 verification failure")
    		}
    	case signaturePKCS1v15:
    		pubKey, ok := pubkey.(*rsa.PublicKey)
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. src/crypto/tls/generate_cert.go

    	ed25519Key = flag.Bool("ed25519", false, "Generate an Ed25519 key")
    )
    
    func publicKey(priv any) any {
    	switch k := priv.(type) {
    	case *rsa.PrivateKey:
    		return &k.PublicKey
    	case *ecdsa.PrivateKey:
    		return &k.PublicKey
    	case ed25519.PrivateKey:
    		return k.Public().(ed25519.PublicKey)
    	default:
    		return nil
    	}
    }
    
    func main() {
    	flag.Parse()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 15:22:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top