Yu Watanabe
2e64df07b8
openssl-util: use assert() if no side effect
2022-09-13 17:03:34 +09:00
Yu Watanabe
d39929d96d
openssl-util: drop meaningless assertion
...
As the type of 'msz' is int.
Fixes CID#1497842.
2022-09-13 17:03:18 +09:00
Lennart Poettering
e8ccb5c7e1
openssl-util: add helper for calculating fingerprint of a DER public key
2022-09-08 16:27:07 +02:00
Zbigniew Jędrzejewski-Szmek
7e8facb36b
port string_hashsum from libgcrypt to openssl^gcrypt
...
This allows resolved and importd to be built without libgcrypt.
Note that we now say either 'cryptographic library' or 'cryptolib'.
Co-authored-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl >
2021-12-01 12:36:57 +01:00
Kevin Kuehler
fc169a6fb2
basic/openssl-util: Add sha256 hash wrapper
2021-12-01 12:36:57 +01:00
Lennart Poettering
7f12adc300
openssl-util: use EVP API to get RSA bits
2021-09-29 15:04:19 +02:00
Lennart Poettering
a8fd92b5a3
openssl: make RSA struct const
...
OpenSSL 3.0 broke API there, but it doesn't hurt to add the "const",
hence add it.
Fixes : #19267
2021-04-10 20:03:06 +01:00
Zbigniew Jędrzejewski-Szmek
30e31503bd
tree-wide: add spdx header on source files
...
version.h is tiny, but the other two certainly deserve a license header.
2021-01-28 09:55:35 +01:00
Lennart Poettering
d041e4fc4a
homed: split out code that determines suitable LUKS passphrase size from RSA key
...
We can use this in cryptenroll later on, hence let's make this generic.
2020-12-17 19:58:26 +01:00
Lennart Poettering
f2d5df8a30
homed: move helper calls for RSA encryption to shared code
2020-12-17 19:57:57 +01:00