Skip to content

Commit 2ad5c15

Browse files
authored
Merge pull request #57 from aldenml/opaque7
update opaque implementation to draft-irtf-cfrg-opaque-07
2 parents 34d92a8 + 7e75fba commit 2ad5c15

File tree

21 files changed

+3144
-1498
lines changed

21 files changed

+3144
-1498
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021 Alden Torres
1+
Copyright (c) 2021-2022 Alden Torres
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

bindings/gen_code.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# Copyright (c) 2021-2022, Alden Torres
3+
#
4+
# Licensed under the terms of the MIT license.
5+
# Copy of the license at https://opensource.org/licenses/MIT
6+
#
7+
18
import json
29
import re
310
import subprocess
@@ -396,6 +403,7 @@ def gen_js(headers, ignore):
396403
out += " * @return {number}\n"
397404
out += " */\n"
398405
out += "function mput(src, size) {\n"
406+
out += " if (!src) return 0;\n"
399407
out += " const pos = _ecc_malloc(size);\n"
400408
out += " arraycopy(src, 0, HEAPU8, pos, size);\n"
401409
out += " return pos;\n"
@@ -428,7 +436,7 @@ def gen_js(headers, ignore):
428436
def gen_jni_c(headers, ignore):
429437
out = ""
430438
out += "/*\n"
431-
out += " * Copyright (c) 2021, Alden Torres\n"
439+
out += " * Copyright (c) 2021-2022, Alden Torres\n"
432440
out += " *\n"
433441
out += " * Licensed under the terms of the MIT license.\n"
434442
out += " * Copy of the license at https://opensource.org/licenses/MIT\n"
@@ -473,7 +481,7 @@ def gen_jni_c(headers, ignore):
473481
def gen_jni_java(headers, ignore):
474482
out = ""
475483
out += "/*\n"
476-
out += " * Copyright (c) 2021, Alden Torres\n"
484+
out += " * Copyright (c) 2021-2022, Alden Torres\n"
477485
out += " *\n"
478486
out += " * Licensed under the terms of the MIT license.\n"
479487
out += " * Copy of the license at https://opensource.org/licenses/MIT\n"

0 commit comments

Comments
 (0)