Skip to content

Commit bb98929

Browse files
committed
add sbkeysync tool
Signed-off-by: Stephan Mueller <smueller@chronox.de>
1 parent 8d28c54 commit bb98929

File tree

8 files changed

+1383
-17
lines changed

8 files changed

+1383
-17
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Changes 1.7.0-prerelease
3737

3838
* Add support of PEM
3939

40-
* Add sbsign, sbverify, sbsiglist, sbvarsign tools as a drop-in replacement for the one provided with http://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git
40+
* Add sbsign, sbverify, sbsiglist, sbvarsign, sbkeysync (currently untested as its usage is not fully clear) tools as a drop-in replacement for the one provided with http://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git
4141

4242
* PKCS7 generator: support altering the generation process (allow content type setting, additional authenticated attributes)
4343

TODO

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@
2828
- Linux kernel: x86 accelerated implementations of xts, chacha20, gcm(aes), rfc4106(gcm(aes)), rfc7539(chacha20,poly1305), rfc7539esp(chacha20,poly1305) do not pass the extended/full kernel self tests. The issue is that the the test harness creates SGLs which are not aligned to cra_blocksize. Thus I am not sure whether the test harness is broken or whether leancrypto should handle such very strange (and not real-life scenarios).
2929

3030
- lc_get_time in the kernel: return proper n_sec
31+
32+
- sbkeysync: develop proper tests and verify

apps/src/meson.build

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,20 @@ if (host_machine.system() != 'windows' and
194194
install: true,
195195
install_dir: get_option('libexecdir') / meson.project_name()
196196
)
197+
198+
sbkeysync_files = internal_src
199+
sbkeysync_files += files([
200+
'lc_x509_generator_file_helper.c',
201+
'sbkeysync.c',
202+
])
203+
204+
sbkeysync = executable('sbkeysync',
205+
[ sbkeysync_files ],
206+
include_directories: [ include_internal_dirs ],
207+
dependencies: leancrypto,
208+
install: true,
209+
install_dir: get_option('libexecdir') / meson.project_name()
210+
)
197211
endif
198212

199213
endif

0 commit comments

Comments
 (0)