Skip to content

Commit

Permalink
prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis Erdmanis committed Sep 8, 2024
1 parent 374e322 commit 61322d9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/CodeCov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Workflow for Codecov example-julia
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Julia 1.10.0
uses: julia-actions/setup-julia@v1
with:
version: "1.10.0"
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[compat]
CryptoGroups = "0.5"
CryptoPRG = "0.1.0"
CryptoPRG = "0.1.1"
Nettle = "1"
julia = "1"

Expand Down
10 changes: 5 additions & 5 deletions src/CryptoSignatures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module CryptoSignatures
using CryptoGroups: CryptoGroups, generator, concretize_type, octet, order, PGroup
using CryptoGroups.Curves: ECPoint, gx, gy
using CryptoGroups.Specs: MODP, ECP, EC2N, Koblitz, modulus
using CryptoGroups.Utils: octet2int, int2octet
using CryptoGroups.Utils: octet2int, int2octet, @check

using CryptoPRG: bitlength
using CryptoPRG.Verificatum: PRG
Expand Down Expand Up @@ -123,8 +123,8 @@ function verify(ctx::ECDSAContext, message::Vector{UInt8}, generator::Vector{UIn
e = H(message, ctx.hasher)
n = order(P)

@assert 1 < r < n - 1
@assert 1 < s < n - 1
@check 1 < r < n - 1
@check 1 < s < n - 1

c = invmod(s, n)

Expand Down Expand Up @@ -215,8 +215,8 @@ function verify(ctx::DSAContext, message::Vector{UInt8}, generator::Vector{UInt8
e = H(message, ctx.hasher)
q = order(G)

@assert 1 < r < q - 1
@assert 1 < s < q - 1
@check 1 < r < q - 1
@check 1 < s < q - 1

w = invmod(s, q)

Expand Down

0 comments on commit 61322d9

Please sign in to comment.