Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
fix license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemare committed Jul 25, 2021
1 parent c418695 commit 3e0b5ff
Show file tree
Hide file tree
Showing 49 changed files with 384 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,4 @@ jobs:
-Dsonar.projectKey=bytemare_cryptotools
-Dsonar.organization=bytemare-cryptotools
-Dsonar.go.coverage.reportPaths=coverage.out
-Dsonar.test.exclusions=tests/**
-Dsonar.tests=tests/
-Dsonar.verbose=true
8 changes: 8 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

/*
Package cryptotools provides some abstract and easy-to-use interfaces to common cryptographic operations.
Expand Down
8 changes: 8 additions & 0 deletions encoding/encoding.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package encoding provides encoding and decoding capabilities for different encodings.
package encoding

Expand Down
8 changes: 8 additions & 0 deletions encoding/encoding_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package encoding

import (
Expand Down
8 changes: 8 additions & 0 deletions encoding/gob.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package encoding

import (
Expand Down
8 changes: 8 additions & 0 deletions encoding/i2osp.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package encoding

import (
Expand Down
8 changes: 8 additions & 0 deletions encoding/i2osp_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package encoding

import (
Expand Down
8 changes: 8 additions & 0 deletions encoding/json.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package encoding

import "encoding/json"
Expand Down
8 changes: 8 additions & 0 deletions encoding/msgpack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package encoding

import (
Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/curves.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package hash2curve wraps an hash-to-curve implementation and exposes functions for operations on points and scalars.
package hash2curve

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/encoding.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package hash2curve wraps an hash-to-curve implementation and exposes functions for operations on points and scalars.
package hash2curve

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package hash2curve wraps an hash-to-curve implementation and exposes functions for operations on points and scalars.
package hash2curve

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/group.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package hash2curve wraps an hash-to-curve implementation and exposes functions for operations on points and scalars.
package hash2curve

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/point.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package hash2curve wraps an hash-to-curve implementation and exposes functions for operations on points and scalars.
package hash2curve

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/point_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package hash2curve

import (
Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/scalar.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package hash2curve wraps an hash-to-curve implementation and exposes functions for operations on points and scalars.
package hash2curve

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/hash2curve/scalar_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package hash2curve

import (
Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/element.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package ristretto allows simple and abstracted operations in the Ristretto255 group
package ristretto

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package ristretto allows simple and abstracted operations in the Ristretto255 group
package ristretto

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/h2r/expander_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package h2r

import (
Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/h2r/h2r255.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package h2r provides hash-to-curve compatible hashing or arbitrary input into the Ristretto255 group.
package h2r

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/h2r/xmd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package h2r provides hash-to-curve compatible hashing or arbitrary input into the Ristretto255 group.
package h2r

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/h2r/xof.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package h2r provides hash-to-curve compatible hashing or arbitrary input into the Ristretto255 group.
package h2r

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/hash_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package ristretto

import (
Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/ristretto.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package ristretto allows simple and abstracted operations in the Ristretto255 group
package ristretto

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/ristretto_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package ristretto

import (
Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/internal/ristretto/scalar.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package ristretto allows simple and abstracted operations in the Ristretto255 group
package ristretto

Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/suites.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package ciphersuite identifies a list of prime-order elliptic curve groups coupled with hashing functions implementing
// group operations over elliptic curves, as well as HashToGroup() and HashToScalar() per Hash-to-curve.
package ciphersuite
Expand Down
8 changes: 8 additions & 0 deletions group/ciphersuite/suites_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package ciphersuite

import (
Expand Down
8 changes: 8 additions & 0 deletions group/doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package group offers an interface to operations on points and scalars of prime-order elliptic curve groups,
// with HashToCurve and HashToScalar capabilities.
package group
8 changes: 8 additions & 0 deletions group/element.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package group

// Element interface abstracts common operations on elements in a Group.
Expand Down
8 changes: 8 additions & 0 deletions group/group.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

// Package group exposes simple and abstract operations to group Elements and Scalars.
package group

Expand Down
8 changes: 8 additions & 0 deletions group/scalar.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html

package group

// Scalar interface abstracts common operations on scalars in a Group.
Expand Down
Loading

0 comments on commit 3e0b5ff

Please sign in to comment.