Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for fromHex (0.28 sec)

  1. src/crypto/dsa/dsa_test.go

    	}
    
    	for i, test := range badKeys {
    		priv := PrivateKey{
    			PublicKey: PublicKey{
    				Parameters: Parameters{
    					P: fromHex(test.p),
    					Q: fromHex(test.q),
    					G: fromHex(test.g),
    				},
    				Y: fromHex(test.y),
    			},
    			X: fromHex(test.x),
    		}
    
    		hashed := []byte("testing")
    		if _, _, err := Sign(rand.Reader, &priv, hashed); err == nil {
    			t.Errorf("#%d: unexpected success", i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 15 21:04:43 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  2. src/hash/marshal_test.go

    	{"fnv32", func() hash.Hash { return fnv.New32() }, fromHex("666e760171ba3d77")},
    	{"fnv32a", func() hash.Hash { return fnv.New32a() }, fromHex("666e76027439f86f")},
    	{"fnv64", func() hash.Hash { return fnv.New64() }, fromHex("666e7603cc64e0e97692c637")},
    	{"fnv64a", func() hash.Hash { return fnv.New64a() }, fromHex("666e7604c522af9b0dede66f")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 07:45:46 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  3. src/crypto/rsa/boring_test.go

    		E: 65537,
    	}
    
    	hash := fromHex("019c5571724fb5d0e47a4260c940e9803ba05a44")
    	paddedHash := fromHex("3021300906052b0e03021a05000414019c5571724fb5d0e47a4260c940e9803ba05a44")
    
    	// signature is one byte shorter than key.N.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 00:16:30 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  4. src/mime/quotedprintable/reader.go

    }
    
    func readHexByte(v []byte) (b byte, err error) {
    	if len(v) < 2 {
    		return 0, io.ErrUnexpectedEOF
    	}
    	var hb, lb byte
    	if hb, err = fromHex(v[0]); err != nil {
    		return 0, err
    	}
    	if lb, err = fromHex(v[1]); err != nil {
    		return 0, err
    	}
    	return hb<<4 | lb, nil
    }
    
    func isQPDiscardWhitespace(r rune) bool {
    	switch r {
    	case '\n', '\r', ' ', '\t':
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 27 17:00:08 UTC 2018
    - 3.6K bytes
    - Viewed (0)
  5. src/crypto/rsa/pss_test.go

    			key.E = intFromHex(<-values)
    			// We don't care for d, p, q, dP, dQ or qInv.
    			for i := 0; i < 6; i++ {
    				<-values
    			}
    		case newSignatureMarker:
    			msg := fromHex(<-values)
    			<-values // skip salt
    			sig := fromHex(<-values)
    
    			h.Reset()
    			h.Write(msg)
    			hashed = h.Sum(hashed[:0])
    
    			if err := VerifyPSS(key, hash, hashed, sig, opts); err != nil {
    				t.Error(err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingSortedMap.java

        return delegate().lastKey();
      }
    
      @Override
      public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) {
        return delegate().subMap(fromKey, toKey);
      }
    
      @Override
      public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) {
        return delegate().tailMap(fromKey);
      }
    
      /**
       * A sensible implementation of {@link SortedMap#keySet} in terms of the methods of {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

        return delegate().lastKey();
      }
    
      @Override
      public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) {
        return delegate().subMap(fromKey, toKey);
      }
    
      @Override
      public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) {
        return delegate().tailMap(fromKey);
      }
    
      /**
       * A sensible implementation of {@link SortedMap#keySet} in terms of the methods of {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        return new SafeTreeMap<>(
            delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive));
      }
    
      @Override
      public SortedMap<K, V> subMap(K fromKey, K toKey) {
        return subMap(fromKey, true, toKey, false);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/StandardRowSortedTable.java

        @Override
        public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) {
          checkNotNull(fromKey);
          checkNotNull(toKey);
          return new StandardRowSortedTable<R, C, V>(sortedBackingMap().subMap(fromKey, toKey), factory)
              .rowMap();
        }
    
        @Override
        public SortedMap<R, Map<C, V>> tailMap(R fromKey) {
          checkNotNull(fromKey);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jul 15 15:41:16 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        return new SafeTreeMap<>(
            delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive));
      }
    
      @Override
      public SortedMap<K, V> subMap(K fromKey, K toKey) {
        return subMap(fromKey, true, toKey, false);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top