spogulis no
https://github.com/henrydcase/nobs.git
synced 2024-11-24 16:11:20 +00:00
Salīdzināt revīzijas
3 Revīzijas
3a8ac85da1
...
25b66236df
Autors | SHA1 | Datums | |
---|---|---|---|
|
25b66236df | ||
|
a7142b7412 | ||
|
20fffc2f35 |
11
Makefile
11
Makefile
@ -11,6 +11,17 @@ BENCH_OPTS ?= -v -bench=. -run="^_" -benchmem
|
||||
TEST_PATH ?= ./...
|
||||
DBG = 1
|
||||
OPTS_ENV =
|
||||
OPTS_TAGS ?= -tags noasm
|
||||
ARCH = $(shell uname -m)
|
||||
|
||||
ifeq ($(ARCH), ppc64le)
|
||||
NOASM+=1
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH), riscv64)
|
||||
NOASM+=1
|
||||
OPTS_TAGS+= -timeout 0
|
||||
endif
|
||||
|
||||
ifeq ($(NOASM),1)
|
||||
OPTS+=$(OPTS_TAGS)
|
||||
|
@ -1,3 +1,5 @@
|
||||
// +build noasm amd64 arm64 ppc64le riscv64
|
||||
|
||||
package csidh
|
||||
|
||||
import (
|
||||
|
@ -1,6 +1,8 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
// +build noasm amd64 arm64 ppc64le riscv64
|
||||
|
||||
|
||||
package aes
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
// +build noasm amd64 arm64 ppc64le riscv64
|
||||
|
||||
package aes
|
||||
|
||||
|
27
drbg/internal/aes/cipher_noasm.go
Parasts fails
27
drbg/internal/aes/cipher_noasm.go
Parasts fails
@ -0,0 +1,27 @@
|
||||
// +build noasm ppc64le riscv64
|
||||
|
||||
package aes
|
||||
|
||||
import(
|
||||
"errors"
|
||||
)
|
||||
|
||||
type AESAsm struct {
|
||||
}
|
||||
|
||||
func (a *AESAsm) SetKey(key []byte) error {
|
||||
panic("NotImplemented")
|
||||
return errors.New("ErrNotImplemented")
|
||||
}
|
||||
|
||||
func (a *AESAsm) Encrypt(dst, src []byte) {
|
||||
panic("NotImplemented")
|
||||
}
|
||||
|
||||
func (a *AESAsm) Decrypt(dst, src []byte) {
|
||||
panic("NotImplemented")
|
||||
}
|
||||
|
||||
func expandKey(key []byte, enc, dec []uint32) {
|
||||
expandKeyGo(key, enc, dec)
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
// +build noasm amd64 arm64 ppc64le riscv64
|
||||
|
||||
// This Go implementation is derived in part from the reference
|
||||
// ANSI C implementation, which carries the following notice:
|
||||
|
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module github.com/henrydcase/nobs
|
||||
|
||||
go 1.12
|
||||
|
||||
require golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e
|
||||
require golang.org/x/sys v0.1.0
|
||||
|
4
go.sum
4
go.sum
@ -1,2 +1,2 @@
|
||||
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e h1:N7DeIrjYszNmSW409R3frPPwglRwMkXSBzwVbkOjLLA=
|
||||
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U=
|
||||
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
|
@ -5,5 +5,5 @@ go 1.12
|
||||
require (
|
||||
github.com/dterei/gotsc v0.0.0-20160722215413-e78f872945c6
|
||||
github.com/henrydcase/nobs v0.0.0-20200516223741-2500d74484f2
|
||||
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e
|
||||
golang.org/x/sys v0.1.0 // indirect
|
||||
)
|
||||
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
Block a user