Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for saltLen (0.13 sec)

  1. src/crypto/internal/boring/rsa.go

    	// case convert to the BoringSSL version.
    	if saltLen == 0 {
    		saltLen = -2
    	}
    
    	var out []byte
    	var outLen C.size_t
    	if priv.withKey(func(key *C.GO_RSA) C.int {
    		out = make([]byte, C._goboringcrypto_RSA_size(key))
    		return C._goboringcrypto_RSA_sign_pss_mgf1(key, &outLen, base(out), C.size_t(len(out)),
    			base(hashed), C.size_t(len(hashed)), md, nil, C.int(saltLen))
    	}) == 0 {
    		return nil, fail("RSA_sign_pss_mgf1")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 23:38:03 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/notboring.go

    }
    func SignRSAPSS(priv *PrivateKeyRSA, h crypto.Hash, hashed []byte, saltLen int) ([]byte, error) {
    	panic("boringcrypto: not available")
    }
    func VerifyRSAPKCS1v15(pub *PublicKeyRSA, h crypto.Hash, hashed, sig []byte) error {
    	panic("boringcrypto: not available")
    }
    func VerifyRSAPSS(pub *PublicKeyRSA, h crypto.Hash, hashed, sig []byte, saltLen int) 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/syscall/sockcmsg_dragonfly.go

    package syscall
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := sizeofPtr
    	if sizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) {
    		// 64-bit Dragonfly before the September 2019 ABI changes still requires
    		// 32-bit aligned access to network subsystem.
    		salign = 4
    	}
    	return (salen + salign - 1) & ^(salign - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 20 19:33:07 UTC 2019
    - 547 bytes
    - Viewed (0)
  4. src/net/cgo_resold.go

    package net
    
    /*
    #include <sys/types.h>
    #include <sys/socket.h>
    
    #include <netdb.h>
    */
    import "C"
    
    import "unsafe"
    
    func cgoNameinfoPTR(b []byte, sa *C.struct_sockaddr, salen C.socklen_t) (int, error) {
    	gerrno, err := C.getnameinfo(sa, salen, (*C.char)(unsafe.Pointer(&b[0])), C.size_t(len(b)), nil, 0, C.NI_NAMEREQD)
    	return int(gerrno), err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 579 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go

    package unix
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := SizeofPtr
    	if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) {
    		// 64-bit Dragonfly before the September 2019 ABI changes still requires
    		// 32-bit aligned access to network subsystem.
    		salign = 4
    	}
    	return (salen + salign - 1) & ^(salign - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 21:26:10 UTC 2020
    - 544 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go

    //go:build aix || darwin || freebsd || linux || netbsd || openbsd || solaris || zos
    
    package unix
    
    import (
    	"runtime"
    )
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := SizeofPtr
    
    	// dragonfly needs to check ABI version at runtime, see cmsgAlignOf in
    	// sockcmsg_dragonfly.go
    	switch runtime.GOOS {
    	case "aix":
    		// There is no alignment on AIX.
    		salign = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. src/syscall/sockcmsg_unix_other.go

    //go:build aix || darwin || freebsd || linux || netbsd || openbsd || solaris
    
    package syscall
    
    import (
    	"runtime"
    )
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := sizeofPtr
    
    	// dragonfly needs to check ABI version at runtime, see cmsgAlignOf in
    	// sockcmsg_dragonfly.go
    	switch runtime.GOOS {
    	case "aix":
    		// There is no alignment on AIX.
    		salign = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  8. src/net/cgo_aix.go

    #include <sys/socket.h>
    
    #include <netdb.h>
    */
    import "C"
    
    import "unsafe"
    
    const cgoAddrInfoFlags = C.AI_CANONNAME
    
    func cgoNameinfoPTR(b []byte, sa *C.struct_sockaddr, salen C.socklen_t) (int, error) {
    	gerrno, err := C.getnameinfo(sa, C.size_t(salen), (*C.char)(unsafe.Pointer(&b[0])), C.size_t(len(b)), nil, 0, C.NI_NAMEREQD)
    	return int(gerrno), err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 582 bytes
    - Viewed (0)
  9. src/net/cgo_resnew.go

    package net
    
    /*
    #include <sys/types.h>
    #include <sys/socket.h>
    
    #include <netdb.h>
    */
    import "C"
    
    import "unsafe"
    
    func cgoNameinfoPTR(b []byte, sa *C.struct_sockaddr, salen C.socklen_t) (int, error) {
    	gerrno, err := C.getnameinfo(sa, salen, (*C.char)(unsafe.Pointer(&b[0])), C.socklen_t(len(b)), nil, 0, C.NI_NAMEREQD)
    	return int(gerrno), err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 14:05:39 UTC 2022
    - 580 bytes
    - Viewed (0)
  10. src/syscall/syscall_unix.go

    	var ptr unsafe.Pointer
    	var salen _Socklen
    	if to != nil {
    		ptr, salen, err = to.sockaddr()
    		if err != nil {
    			return 0, err
    		}
    	}
    	return sendmsgN(fd, p, oob, ptr, salen, flags)
    }
    
    func sendmsgNInet4(fd int, p, oob []byte, to *SockaddrInet4, flags int) (n int, err error) {
    	ptr, salen, err := to.sockaddr()
    	if err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top