mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-16 16:21:53 +00:00
2025-03-10 - e6ce3e6 - Add support for skcipher in NSS. 2025-02-27 - f49d024 - Addition of ahash finup operation 2025-02-24 - 6d9b018 - Update driver names for ahash 2024-09-16 - 6e8f294 - Linux 6.6 compilation fixes Signed-off-by: Sean Khan <datapronix@protonmail.com>
27 lines
754 B
Diff
27 lines
754 B
Diff
--- a/cryptoapi/v2.0/nss_cryptoapi_aead.c
|
|
+++ b/cryptoapi/v2.0/nss_cryptoapi_aead.c
|
|
@@ -97,9 +97,9 @@ int nss_cryptoapi_aead_init(struct crypt
|
|
bool need_fallback;
|
|
|
|
BUG_ON(!ctx);
|
|
- NSS_CRYPTOAPI_SET_MAGIC(ctx);
|
|
|
|
memset(ctx, 0, sizeof(struct nss_cryptoapi_ctx));
|
|
+ NSS_CRYPTOAPI_SET_MAGIC(ctx);
|
|
|
|
ctx->user = g_cryptoapi.user;
|
|
ctx->stats.init++;
|
|
--- a/cryptoapi/v2.0/nss_cryptoapi_skcipher.c
|
|
+++ b/cryptoapi/v2.0/nss_cryptoapi_skcipher.c
|
|
@@ -74,9 +74,9 @@ int nss_cryptoapi_skcipher_init(struct c
|
|
struct nss_cryptoapi_ctx *ctx = crypto_tfm_ctx(base);
|
|
|
|
BUG_ON(!ctx);
|
|
- NSS_CRYPTOAPI_SET_MAGIC(ctx);
|
|
|
|
memset(ctx, 0, sizeof(struct nss_cryptoapi_ctx));
|
|
+ NSS_CRYPTOAPI_SET_MAGIC(ctx);
|
|
|
|
ctx->user = g_cryptoapi.user;
|
|
ctx->stats.init++;
|