Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for asn1BitLength (0.2 sec)

  1. src/crypto/x509/x509_test.go

    		{[]byte{0xf0}, 4},
    		{[]byte{0x88}, 5},
    		{[]byte{0xff}, 8},
    		{[]byte{0xff, 0x80}, 9},
    		{[]byte{0xff, 0x81}, 16},
    	}
    
    	for i, test := range tests {
    		if got := asn1BitLength(test.bytes); got != test.bitLen {
    			t.Errorf("#%d: calculated bit-length of %d for %x, wanted %d", i, got, test.bytes, test.bitLen)
    		}
    	}
    }
    
    func TestVerifyEmptyCertificate(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
Back to top