Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 186 for Hex (0.02 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes_test.go

    				switch {
    				case l == 0:
    					if len(result) != 0 {
    						t.Errorf("Round trip failed len=%d\noriginal:\n%s\nresult:\n%s", l, hex.Dump(original), hex.Dump(result))
    					}
    				case !reflect.DeepEqual(original, result):
    					t.Errorf("Round trip failed len=%d\noriginal:\n%s\nresult:\n%s", l, hex.Dump(original), hex.Dump(result))
    				}
    			}
    		})
    	}
    }
    
    type namedTransformerFunc struct {
    	name string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    import okio.Buffer
    
    /**
     * Quick and dirty pattern to differentiate IP addresses from hostnames. This is an approximation
     * of Android's private InetAddress#isNumeric API.
     *
     * This matches IPv6 addresses as a hex string containing at least one colon, and possibly
     * including dots after the first colon. It matches IPv4 addresses as strings containing only
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. src/crypto/ecdh/ecdh_test.go

    				sha256.Sum256(hexDecode(t, v.SharedSecret)))
    		}
    	})
    }
    
    func hexDecode(t *testing.T, s string) []byte {
    	b, err := hex.DecodeString(s)
    	if err != nil {
    		t.Fatal("invalid hex string:", s)
    	}
    	return b
    }
    
    func TestString(t *testing.T) {
    	testAllCurves(t, func(t *testing.T, curve ecdh.Curve) {
    		s := fmt.Sprintf("%s", curve)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 18K bytes
    - Viewed (0)
  4. src/fmt/example_test.go

    	// Booleans print as "true" or "false" with %v or %t.
    	truth := true
    	fmt.Printf("%v %t\n", truth, truth)
    	// Result: true true
    
    	// Integers print as decimals with %v and %d,
    	// or in hex with %x, octal with %o, or binary with %b.
    	answer := 42
    	fmt.Printf("%v %d %x %o %b\n", answer, answer, answer, answer, answer)
    	// Result: 42 42 2a 52 101010
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 21:03:10 UTC 2019
    - 11.8K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe_test.go

    // license that can be found in the LICENSE file.
    
    package field
    
    import (
    	"bytes"
    	"crypto/rand"
    	"encoding/hex"
    	"io"
    	"math/big"
    	"math/bits"
    	mathrand "math/rand"
    	"reflect"
    	"testing"
    	"testing/quick"
    )
    
    func (v Element) String() string {
    	return hex.EncodeToString(v.Bytes())
    }
    
    // quickCheckConfig returns a quick.Config that scales the max count by the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    				t.Fatal(cmp.Diff(tt.wantHeaders, result.Header))
    			}
    			body, _ := ioutil.ReadAll(result.Body)
    			if !bytes.Equal(tt.wantBody, body) {
    				t.Fatalf("wanted:\n%s\ngot:\n%s", hex.Dump(tt.wantBody), hex.Dump(body))
    			}
    		})
    	}
    }
    
    func randTime(t *time.Time, r *rand.Rand) {
    	*t = time.Unix(r.Int63n(1000*365*24*60*60), r.Int63())
    }
    
    func randIP(s *string, r *rand.Rand) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package imagelocality
    
    import (
    	"context"
    	"crypto/sha256"
    	"encoding/hex"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 06:17:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

        assertThat(body.string()).isEqualTo(text)
      }
    
      companion object {
        @JvmOverloads
        fun body(
          hex: String,
          charset: String? = null,
        ): ResponseBody {
          val mediaType = if (charset == null) null else "any/thing; charset=$charset".toMediaType()
          return hex.decodeHex().toResponseBody(mediaType)
        }
    
        fun exhaust(reader: Reader): String {
          val builder = StringBuilder()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. src/cmd/go/internal/cache/cache.go

    	}
    	return fmt.Sprintf("cache entry not found: %v", e.Err)
    }
    
    func (e *entryNotFoundError) Unwrap() error {
    	return e.Err
    }
    
    const (
    	// action entry file is "v1 <hex id> <hex out> <decimal size space-padded to 20 bytes> <unixnano space-padded to 20 bytes>\n"
    	hexSize   = HashSize * 2
    	entrySize = 2 + 1 + hexSize + 1 + hexSize + 1 + 20 + 1 + 20 + 1
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package x509
    
    import (
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/hex"
    	"fmt"
    	"net/http"
    	"strings"
    	"time"
    
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apiserver/pkg/authentication/authenticator"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 01:31:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top