Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zenroom
Zenroom
Commits
06d508fb
Commit
06d508fb
authored
Apr 27, 2022
by
matteo-cristino
Committed by
Jaromil
May 03, 2022
Browse files
removed unused functions
parent
aabf55c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lua/zencode_qp.lua
View file @
06d508fb
...
...
@@ -74,13 +74,6 @@ local function kyber_import_kem(obj)
return
res
end
local
function
kyber_export_kem
(
obj
)
local
res
=
{}
res
.
kyber_secret
=
obj
.
kyber_secret
:
hex
()
res
.
kyber_ciphertext
=
obj
.
kyber_ciphertext
:
hex
()
return
res
end
local
function
ntrup_public_key_f
(
obj
)
local
res
=
ZEN
.
get
(
obj
,
'.'
)
ZEN
.
assert
(
...
...
@@ -115,14 +108,6 @@ local function ntrup_import_kem(obj)
return
res
end
local
function
ntrup_export_kem
(
obj
)
local
res
=
{}
res
.
ntrup_secret
=
obj
.
ntrup_secret
:
hex
()
res
.
ntrup_ciphertext
=
obj
.
ntrup_ciphertext
:
hex
()
return
res
end
-- check various locations to find the public key
-- algo can be either 'dilithium' or 'kyber'
-- Given I have a 's' from 't' --> ACK.s[t]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment