Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for paddedGHASH (0.1 sec)

  1. src/crypto/aes/gcm_ppc64x.go

    // tagMask and writes the result to out.
    func (g *gcmAsm) auth(out, ciphertext, aad []byte, tagMask *[gcmTagSize]byte) {
    	var hash [16]byte
    	g.paddedGHASH(&hash, aad)
    	g.paddedGHASH(&hash, ciphertext)
    	lens := gcmLengths(uint64(len(aad))*8, uint64(len(ciphertext))*8)
    	g.paddedGHASH(&hash, lens[:])
    
    	copy(out, hash[:])
    	for i := range out {
    		out[i] ^= tagMask[i]
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/crypto/aes/gcm_s390x.go

    func (g *gcmAsm) auth(out, ciphertext, additionalData []byte, tagMask *[gcmTagSize]byte) {
    	var hash [16]byte
    	g.paddedGHASH(&hash, additionalData)
    	g.paddedGHASH(&hash, ciphertext)
    	lens := gcmLengths(uint64(len(additionalData))*8, uint64(len(ciphertext))*8)
    	g.paddedGHASH(&hash, lens[:])
    
    	copy(out, hash[:])
    	for i := range out {
    		out[i] ^= tagMask[i]
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top