Source file src/crypto/internal/fips140/subtle/xor_riscv64.go

     1  // Copyright 2025 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build riscv64 && !purego
     6  
     7  package subtle
     8  
     9  import (
    10  	"crypto/internal/fips140deps/cpu"
    11  )
    12  
    13  //go:noescape
    14  func xorBytesRISCV64(dst, a, b *byte, n int, hasV bool)
    15  
    16  func xorBytes(dst, a, b *byte, n int) {
    17  	xorBytesRISCV64(dst, a, b, n, cpu.RISCV64HasV)
    18  }
    19  

View as plain text