Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for gcmDouble (0.48 sec)

  1. src/crypto/cipher/gcm.go

    func gcmAdd(x, y *gcmFieldElement) gcmFieldElement {
    	// Addition in a characteristic 2 field is just XOR.
    	return gcmFieldElement{x.low ^ y.low, x.high ^ y.high}
    }
    
    // gcmDouble returns the result of doubling an element of GF(2¹²⁸).
    func gcmDouble(x *gcmFieldElement) (double gcmFieldElement) {
    	msbSet := x.high&1 == 1
    
    	// Because of the bit-ordering, doubling is actually a right shift.
    	double.high = x.high >> 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top