@@ -2144,7 +2144,7 @@ static struct skcipher_alg crypto_algs[] = {
21442144 .base .cra_name = "ecb(aes)" ,
21452145 .base .cra_driver_name = "stm32-ecb-aes" ,
21462146 .base .cra_priority = 1200 ,
2147- .base .cra_flags = CRYPTO_ALG_ASYNC ,
2147+ .base .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
21482148 .base .cra_blocksize = AES_BLOCK_SIZE ,
21492149 .base .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
21502150 .base .cra_alignmask = 0 ,
@@ -2161,7 +2161,7 @@ static struct skcipher_alg crypto_algs[] = {
21612161 .base .cra_name = "cbc(aes)" ,
21622162 .base .cra_driver_name = "stm32-cbc-aes" ,
21632163 .base .cra_priority = 1200 ,
2164- .base .cra_flags = CRYPTO_ALG_ASYNC ,
2164+ .base .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
21652165 .base .cra_blocksize = AES_BLOCK_SIZE ,
21662166 .base .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
21672167 .base .cra_alignmask = 0 ,
@@ -2179,7 +2179,7 @@ static struct skcipher_alg crypto_algs[] = {
21792179 .base .cra_name = "ctr(aes)" ,
21802180 .base .cra_driver_name = "stm32-ctr-aes" ,
21812181 .base .cra_priority = 1200 ,
2182- .base .cra_flags = CRYPTO_ALG_ASYNC ,
2182+ .base .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
21832183 .base .cra_blocksize = 1 ,
21842184 .base .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
21852185 .base .cra_alignmask = 0 ,
@@ -2197,7 +2197,7 @@ static struct skcipher_alg crypto_algs[] = {
21972197 .base .cra_name = "ecb(des)" ,
21982198 .base .cra_driver_name = "stm32-ecb-des" ,
21992199 .base .cra_priority = 1200 ,
2200- .base .cra_flags = CRYPTO_ALG_ASYNC ,
2200+ .base .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
22012201 .base .cra_blocksize = DES_BLOCK_SIZE ,
22022202 .base .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
22032203 .base .cra_alignmask = 0 ,
@@ -2214,7 +2214,7 @@ static struct skcipher_alg crypto_algs[] = {
22142214 .base .cra_name = "cbc(des)" ,
22152215 .base .cra_driver_name = "stm32-cbc-des" ,
22162216 .base .cra_priority = 1200 ,
2217- .base .cra_flags = CRYPTO_ALG_ASYNC ,
2217+ .base .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
22182218 .base .cra_blocksize = DES_BLOCK_SIZE ,
22192219 .base .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
22202220 .base .cra_alignmask = 0 ,
@@ -2232,7 +2232,7 @@ static struct skcipher_alg crypto_algs[] = {
22322232 .base .cra_name = "ecb(des3_ede)" ,
22332233 .base .cra_driver_name = "stm32-ecb-des3" ,
22342234 .base .cra_priority = 1200 ,
2235- .base .cra_flags = CRYPTO_ALG_ASYNC ,
2235+ .base .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
22362236 .base .cra_blocksize = DES_BLOCK_SIZE ,
22372237 .base .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
22382238 .base .cra_alignmask = 0 ,
@@ -2249,7 +2249,7 @@ static struct skcipher_alg crypto_algs[] = {
22492249 .base .cra_name = "cbc(des3_ede)" ,
22502250 .base .cra_driver_name = "stm32-cbc-des3" ,
22512251 .base .cra_priority = 1200 ,
2252- .base .cra_flags = CRYPTO_ALG_ASYNC ,
2252+ .base .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
22532253 .base .cra_blocksize = DES_BLOCK_SIZE ,
22542254 .base .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
22552255 .base .cra_alignmask = 0 ,
@@ -2279,7 +2279,7 @@ static struct aead_alg aead_algs[] = {
22792279 .cra_name = "gcm(aes)" ,
22802280 .cra_driver_name = "stm32-gcm-aes" ,
22812281 .cra_priority = 200 ,
2282- .cra_flags = CRYPTO_ALG_ASYNC ,
2282+ .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
22832283 .cra_blocksize = 1 ,
22842284 .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
22852285 .cra_alignmask = 0 ,
@@ -2299,7 +2299,7 @@ static struct aead_alg aead_algs[] = {
22992299 .cra_name = "ccm(aes)" ,
23002300 .cra_driver_name = "stm32-ccm-aes" ,
23012301 .cra_priority = 200 ,
2302- .cra_flags = CRYPTO_ALG_ASYNC ,
2302+ .cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY ,
23032303 .cra_blocksize = 1 ,
23042304 .cra_ctxsize = sizeof (struct stm32_cryp_ctx ),
23052305 .cra_alignmask = 0 ,
0 commit comments