@@ -37,9 +37,9 @@ static int linuxkm_test_ecdsa_nist_driver(const char * driver,
3737 const byte * sig , word32 sig_len ,
3838 const byte * hash , word32 hash_len );
3939
40- #if defined(HAVE_ECC192 )
40+ #if defined(LINUXKM_ECC192 )
4141static int ecdsa_nist_p192_loaded = 0 ;
42- #endif /* HAVE_ECC192 */
42+ #endif /* LINUXKM_ECC192 */
4343static int ecdsa_nist_p256_loaded = 0 ;
4444static int ecdsa_nist_p384_loaded = 0 ;
4545#if defined(HAVE_ECC521 )
@@ -60,16 +60,16 @@ static unsigned int km_ecdsa_max_size(struct crypto_akcipher *tfm);
6060static int km_ecdsa_verify (struct akcipher_request * req );
6161
6262/* ecdsa_nist_pN callbacks */
63- #if defined(HAVE_ECC192 )
63+ #if defined(LINUXKM_ECC192 )
6464static int km_ecdsa_nist_p192_init (struct crypto_akcipher * tfm );
65- #endif /* HAVE_ECC192 */
65+ #endif /* LINUXKM_ECC192 */
6666static int km_ecdsa_nist_p256_init (struct crypto_akcipher * tfm );
6767static int km_ecdsa_nist_p384_init (struct crypto_akcipher * tfm );
6868#if defined(HAVE_ECC521 )
6969static int km_ecdsa_nist_p521_init (struct crypto_akcipher * tfm );
7070#endif /* HAVE_ECC521 */
7171
72- #if defined(HAVE_ECC192 )
72+ #if defined(LINUXKM_ECC192 )
7373static struct akcipher_alg ecdsa_nist_p192 = {
7474 .base .cra_name = "ecdsa-nist-p192" ,
7575 .base .cra_driver_name = "ecdsa-nist-p192-wolfcrypt" ,
@@ -82,7 +82,7 @@ static struct akcipher_alg ecdsa_nist_p192 = {
8282 .init = km_ecdsa_nist_p192_init ,
8383 .exit = km_ecdsa_exit ,
8484};
85- #endif /* HAVE_ECC192 */
85+ #endif /* LINUXKM_ECC192 */
8686
8787static struct akcipher_alg ecdsa_nist_p256 = {
8888 .base .cra_name = "ecdsa-nist-p256" ,
@@ -145,7 +145,7 @@ static int km_ecdsa_set_pub(struct crypto_akcipher *tfm, const void *key,
145145 ctx = akcipher_tfm_ctx (tfm );
146146
147147 switch (ctx -> curve_len ) {
148- #if defined(HAVE_ECC192 )
148+ #if defined(LINUXKM_ECC192 )
149149 case 24 : /* p192 */
150150 #endif
151151 case 32 : /* p256 */
@@ -276,12 +276,12 @@ static int km_ecdsa_init(struct crypto_akcipher *tfm, int curve_id)
276276 return 0 ;
277277}
278278
279- #if defined(HAVE_ECC192 )
279+ #if defined(LINUXKM_ECC192 )
280280static int km_ecdsa_nist_p192_init (struct crypto_akcipher * tfm )
281281{
282282 return km_ecdsa_init (tfm , ECC_SECP192R1 );
283283}
284- #endif /* HAVE_ECC192 */
284+ #endif /* LINUXKM_ECC192 */
285285
286286static int km_ecdsa_nist_p256_init (struct crypto_akcipher * tfm )
287287{
@@ -393,7 +393,7 @@ static int km_ecdsa_verify(struct akcipher_request *req)
393393 return err ;
394394}
395395
396- #if defined(HAVE_ECC192 )
396+ #if defined(LINUXKM_ECC192 )
397397static int linuxkm_test_ecdsa_nist_p192 (void )
398398{
399399 int rc = 0 ;
@@ -443,7 +443,7 @@ static int linuxkm_test_ecdsa_nist_p192(void)
443443
444444 return rc ;
445445}
446- #endif /* HAVE_ECC192 */
446+ #endif /* LINUXKM_ECC192 */
447447
448448static int linuxkm_test_ecdsa_nist_p256 (void )
449449{
0 commit comments