Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for supportsAES (0.08 sec)

  1. src/crypto/aes/cipher_asm.go

    // the gcmAble implementation is in aes_gcm.go.
    type aesCipherGCM struct {
    	aesCipherAsm
    }
    
    var supportsAES = cpu.X86.HasAES || cpu.ARM64.HasAES || goarch.IsPpc64 == 1 || goarch.IsPpc64le == 1
    var supportsGFMUL = cpu.X86.HasPCLMULQDQ || cpu.ARM64.HasPMULL
    
    func newCipher(key []byte) (cipher.Block, error) {
    	if !supportsAES {
    		return newCipherGeneric(key)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top