Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bcmlinux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Broadcom
bcmlinux
Commits
7ca9c546
Commit
7ca9c546
authored
4 years ago
by
Oskar Viljasaar
Browse files
Options
Downloads
Patches
Plain Diff
Import openwrt hack patch 260-crypto_test_dependencies.patch
parent
c74364a6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crypto/Kconfig
+7
-8
7 additions, 8 deletions
crypto/Kconfig
crypto/algboss.c
+4
-0
4 additions, 0 deletions
crypto/algboss.c
with
11 additions
and
8 deletions
crypto/Kconfig
+
7
−
8
View file @
7ca9c546
...
...
@@ -144,13 +144,13 @@ config CRYPTO_MANAGER
cbc(aes).
config CRYPTO_MANAGER2
def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
select CRYPTO_AEAD2
select CRYPTO_HASH2
select CRYPTO_BLKCIPHER2
select CRYPTO_AKCIPHER2
select CRYPTO_KPP2
select CRYPTO_ACOMP2
def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y
&& !CRYPTO_MANAGER_DISABLE_TESTS
)
select CRYPTO_AEAD2
if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_HASH2
if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_BLKCIPHER2
if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_AKCIPHER2
if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_KPP2
if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_ACOMP2
if !CRYPTO_MANAGER_DISABLE_TESTS
config CRYPTO_USER
tristate "Userspace cryptographic algorithm configuration"
...
...
@@ -163,7 +163,6 @@ config CRYPTO_USER
config CRYPTO_MANAGER_DISABLE_TESTS
bool "Disable run-time self tests"
default y
depends on CRYPTO_MANAGER2
help
Disable run-time self tests that normally take place at
algorithm registration.
...
...
This diff is collapsed.
Click to expand it.
crypto/algboss.c
+
4
−
0
View file @
7ca9c546
...
...
@@ -245,8 +245,12 @@ static int cryptomgr_schedule_test(struct crypto_alg *alg)
type
=
alg
->
cra_flags
;
/* Do not test internal algorithms. */
#ifdef CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
type
|=
CRYPTO_ALG_TESTED
;
#else
if
(
type
&
CRYPTO_ALG_INTERNAL
)
type
|=
CRYPTO_ALG_TESTED
;
#endif
param
->
type
=
type
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment