Skip to content

Commit

Permalink
release 1.1.0 (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml authored Oct 8, 2023
1 parent df92108 commit fedffd5
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else()
set(BUILD_SHARED_LIBS ON)
endif()

project(ecc VERSION 1.0.23)
project(ecc VERSION 1.1.0)
project(ecc LANGUAGES C)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
Expand Down
4 changes: 2 additions & 2 deletions bindings/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aldenml/ecc",
"version": "1.0.23",
"version": "1.1.0",
"description": "elliptic curves crypto functions",
"main": "index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion bindings/js/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("util",() => {
await libecc_promise;

const v = version();
assert.strictEqual(v, "1.0.23");
assert.strictEqual(v, "1.1.0");
});
});

Expand Down
2 changes: 1 addition & 1 deletion bindings/jvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "org.ssohub"
version = "1.0.23"
version = "1.1.0"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ void test_ecc_randombytes() {
@Test
void test_version() {
String v = version();
assertEquals("1.0.23", v);
assertEquals("1.1.0", v);
}
}
2 changes: 1 addition & 1 deletion bindings/python/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = libecc
version = 1.0.23
version = 1.1.0
author = Alden Torres
author_email = [email protected]
description = elliptic curves crypto functions
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_ecc_version(self):
buf = bytearray(10)
v_len = libecc.ecc_version(buf, len(buf))
v = buf[0:v_len].decode()
self.assertEqual(v, "1.0.23")
self.assertEqual(v, "1.1.0")


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonar.projectName=ecc
sonar.projectKey=aldenml_ecc
sonar.organization=aldenml
sonar.projectVersion=1.0.23
sonar.projectVersion=1.1.0

sonar.sources=src
sonar.sourceEncoding=UTF-8
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int ecc_is_zero(const byte_t *n, const int len) {
}

int ecc_version(byte_t *out, const int len) {
const char *v = "1.0.23";
const char *v = "1.1.0";
const int v_len = (int) strlen(v);

memcpy(out, v, (size_t) (v_len < len ? v_len : len));
Expand Down
6 changes: 3 additions & 3 deletions test/test_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,17 @@ static void test_ecc_version(void **state) {

byte_t buf1[2];
const int len = ecc_version(buf1, sizeof buf1);
assert_int_equal(len, 6);
assert_int_equal(len, 5);
assert_int_equal(buf1[0], '1');
assert_int_equal(buf1[1], '.');

byte_t buf2[7];
ecc_version(buf2, sizeof buf2);
assert_string_equal(buf2, "1.0.23");
assert_string_equal(buf2, "1.1.0");

byte_t buf3[10];
ecc_version(buf3, sizeof buf3);
assert_string_equal(buf3, "1.0.23");
assert_string_equal(buf3, "1.1.0");
}

static void test_ecc_malloc(void **state) {
Expand Down

0 comments on commit fedffd5

Please sign in to comment.