mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
add qca
This commit is contained in:
parent
083306174f
commit
8f8028cb7f
86 changed files with 50519 additions and 0 deletions
30
qca/qca-nss-cfi/patches/100-remove-noise-logs.patch
Normal file
30
qca/qca-nss-cfi/patches/100-remove-noise-logs.patch
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
--- a/cryptoapi/v2.0/nss_cryptoapi_ahash.c
|
||||
+++ b/cryptoapi/v2.0/nss_cryptoapi_ahash.c
|
||||
@@ -449,9 +449,12 @@ int nss_cryptoapi_ahash_digest(struct ahash_request *req)
|
||||
int nss_cryptoapi_ahash_export(struct ahash_request *req, void *out)
|
||||
{
|
||||
struct nss_cryptoapi_ctx *ctx __attribute__((unused)) = crypto_tfm_ctx(req->base.tfm);
|
||||
+ struct nss_cryptoapi_req_ctx *rctx = ahash_request_ctx(req);
|
||||
+ struct nss_cryptoapi_req_ctx *state = out;
|
||||
+
|
||||
+ *state = *rctx;
|
||||
|
||||
- nss_cfi_warn("%px: ahash .export is not supported", ctx);
|
||||
- return -ENOSYS;
|
||||
+ return 0;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -464,7 +467,10 @@ int nss_cryptoapi_ahash_export(struct ahash_request *req, void *out)
|
||||
int nss_cryptoapi_ahash_import(struct ahash_request *req, const void *in)
|
||||
{
|
||||
struct nss_cryptoapi_ctx *ctx __attribute__((unused)) = crypto_tfm_ctx(req->base.tfm);
|
||||
+ struct nss_cryptoapi_req_ctx *rctx = ahash_request_ctx(req);
|
||||
+ const struct nss_cryptoapi_req_ctx *state = in;
|
||||
+
|
||||
+ *rctx = *state;
|
||||
|
||||
- nss_cfi_warn("%px: ahash .import is not supported", ctx);
|
||||
- return -ENOSYS;
|
||||
+ return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue