mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	pk_wrap: fix comment in ecdsa_verify_wrap
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
		@@ -689,9 +689,11 @@ static int ecdsa_verify_wrap(void *ctx_arg, mbedtls_md_type_t md_alg,
 | 
				
			|||||||
    mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT;
 | 
					    mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT;
 | 
				
			||||||
    psa_status_t status;
 | 
					    psa_status_t status;
 | 
				
			||||||
    size_t key_len;
 | 
					    size_t key_len;
 | 
				
			||||||
    /* This buffer contains first the public key (consisting of two public
 | 
					    /* This buffer will initially contain the public key and then the signature
 | 
				
			||||||
     * points plus a header byte), then the signature (consisting of two
 | 
					     * but at different points in time. For all curves except secp224k1, which
 | 
				
			||||||
     * public points). Size it for the public key which is one byte larger. */
 | 
					     * is not currently supported in PSA, the public key is one byte longer
 | 
				
			||||||
 | 
					     * (header byte + 2 numbers, while the signature is only 2 numbers),
 | 
				
			||||||
 | 
					     * so use that as the buffer size. */
 | 
				
			||||||
    unsigned char buf[MBEDTLS_PSA_MAX_EC_PUBKEY_LENGTH];
 | 
					    unsigned char buf[MBEDTLS_PSA_MAX_EC_PUBKEY_LENGTH];
 | 
				
			||||||
    unsigned char *p;
 | 
					    unsigned char *p;
 | 
				
			||||||
    psa_algorithm_t psa_sig_md = PSA_ALG_ECDSA_ANY;
 | 
					    psa_algorithm_t psa_sig_md = PSA_ALG_ECDSA_ANY;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user