- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for hexDecode (0.31 sec)
-
src/crypto/ecdh/ecdh_test.go
v := vectors[curve] key, err := curve.NewPrivateKey(hexDecode(t, v.PrivateKey)) if err != nil { t.Fatal(err) } if !bytes.Equal(key.PublicKey().Bytes(), hexDecode(t, v.PublicKey)) { t.Error("public key derived from the private key does not match") } peer, err := curve.NewPublicKey(hexDecode(t, v.PeerPublicKey)) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 18K bytes - Viewed (0) -
src/html/template/css.go
} // isHex reports whether the given character is a hex digit. func isHex(c byte) bool { return '0' <= c && c <= '9' || 'a' <= c && c <= 'f' || 'A' <= c && c <= 'F' } // hexDecode decodes a short hex digit sequence: "10" -> 16. func hexDecode(s []byte) rune { n := '\x00' for _, c := range s { n <<= 4 switch { case '0' <= c && c <= '9': n |= rune(c - '0') case 'a' <= c && c <= 'f':
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 02 19:38:18 UTC 2023 - 7K bytes - Viewed (0) -
src/html/template/css_test.go
func TestHexDecode(t *testing.T) { for i := 0; i < 0x200000; i += 101 /* coprime with 16 */ { s := strconv.FormatInt(int64(i), 16) if got := int(hexDecode([]byte(s))); got != i { t.Errorf("%s: want %d but got %d", s, i, got) } s = strings.ToUpper(s) if got := int(hexDecode([]byte(s))); got != i { t.Errorf("%s: want %d but got %d", s, i, got) } } } func TestSkipCSSSpace(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 02 19:38:18 UTC 2023 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/Name.java
return false; } n = (Name) obj; if ( this.scope == null && n.scope == null ) { return this.name.equals(n.name) && this.hexCode == n.hexCode; } return this.name.equals(n.name) && this.hexCode == n.hexCode && this.scope.equals(n.scope); } @Override public String toString () { StringBuffer sb = new StringBuffer();
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 7.7K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NodeStatusRequest.java
} @Override int writeBodyWireFormat ( byte[] dst, int dstIndex ) { int tmp = this.questionName.hexCode; this.questionName.hexCode = 0x00; // type has to be 0x00 for node status int result = writeQuestionSectionWireFormat(dst, dstIndex); this.questionName.hexCode = tmp; return result; } @Override int readBodyWireFormat ( byte[] src, int srcIndex ) {
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/Name.java
return false; } n = (Name)obj; if( scope == null && n.scope == null ) { return name.equals( n.name ) && hexCode == n.hexCode; } return name.equals( n.name ) && hexCode == n.hexCode && scope.equals( n.scope ); } public String toString() { StringBuffer sb = new StringBuffer(); String n = name; // fix MSBROWSE name
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 6.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NodeStatusRequest.java
isBroadcast = false; } int writeBodyWireFormat( byte[] dst, int dstIndex ) { int tmp = questionName.hexCode; questionName.hexCode = 0x00; // type has to be 0x00 for node status int result = writeQuestionSectionWireFormat( dst, dstIndex ); questionName.hexCode = tmp; return result; } int readBodyWireFormat( byte[] src, int srcIndex ) { return 0; }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NodeStatusResponse.java
*/ if ( !addrFound && this.queryAddress.hostName.hexCode == hexCode && ( this.queryAddress.hostName.isUnknown() || this.queryAddress.hostName.name.equals(n) ) ) { if ( this.queryAddress.hostName.isUnknown() ) { this.queryAddress.hostName = new Name(this.config, n, hexCode, scope); } this.queryAddress.groupName = groupName;
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 5.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
NbtAddress[] addrs; try { addrs = CLIENT.getNodeStatus( this ); if( hostName.hexCode == 0x1D ) { for( int i = 0; i < addrs.length; i++ ) { if( addrs[i].hostName.hexCode == 0x20 ) { return addrs[i].hostName.name; } } return null;
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 30.1K bytes - Viewed (0)