3 Commits

Auteur SHA1 Bericht Datum
  dependabot[bot] 25b66236df
Bump golang.org/x/sys in /kem/mkem (#50) 1 jaar geleden
  dependabot[bot] a7142b7412
Bump golang.org/x/sys from 0.0.0-20191120155948-bd437916bb0e to 0.1.0 (#49) 1 jaar geleden
  Jacob Appelbaum 20fffc2f35
add basic support for ppc64le, riscv64 (#48) 1 jaar geleden
9 gewijzigde bestanden met toevoegingen van 48 en 4 verwijderingen
  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 Bestand weergeven

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

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

package csidh

import (


+ 2
- 0
drbg/internal/aes/aes_test.go Bestand weergeven

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

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

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

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

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

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

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

Laden…
Annuleren
Opslaan