3 Commits

Author SHA1 Message Date
  dependabot[bot] 25b66236df
Bump golang.org/x/sys in /kem/mkem (#50) 1 year ago
  dependabot[bot] a7142b7412
Bump golang.org/x/sys from 0.0.0-20191120155948-bd437916bb0e to 0.1.0 (#49) 1 year ago
  Jacob Appelbaum 20fffc2f35
add basic support for ppc64le, riscv64 (#48) 1 year ago
9 changed files with 48 additions and 4 deletions
Split View
  1. +11
    -0
      Makefile
  2. +2
    -0
      dh/csidh/fp511.go
  3. +2
    -0
      drbg/internal/aes/aes_test.go
  4. +1
    -0
      drbg/internal/aes/cipher.go
  5. +27
    -0
      drbg/internal/aes/cipher_noasm.go
  6. +1
    -0
      drbg/internal/aes/generic.go
  7. +1
    -1
      go.mod
  8. +2
    -2
      go.sum
  9. +1
    -1
      kem/mkem/go.mod

+ 11
- 0
Makefile View File

@@ -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)


+ 2
- 0
dh/csidh/fp511.go View File

@@ -1,3 +1,5 @@
// +build noasm amd64 arm64 ppc64le riscv64

package csidh

import (


+ 2
- 0
drbg/internal/aes/aes_test.go View File

@@ -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
- 0
drbg/internal/aes/cipher.go View File

@@ -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
- 0
drbg/internal/aes/cipher_noasm.go View File

@@ -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
- 0
drbg/internal/aes/generic.go View File

@@ -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:


+ 1
- 1
go.mod View File

@@ -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

+ 2
- 2
go.sum View File

@@ -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=

+ 1
- 1
kem/mkem/go.mod View File

@@ -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
)

Loading…
Cancel
Save