Skip to content

Commit 151dc77

Browse files
committed
Fix some old names that remained
- most in doxygen doc that was never renamed - some re-introduced in comments/doc/strings by me
1 parent 8473f87 commit 151dc77

File tree

11 files changed

+35
-35
lines changed

11 files changed

+35
-35
lines changed

configs/config-suite-b.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
/*
7373
* You should adjust this to the exact number of sources you're using: default
74-
* is the "platform_entropy_poll" source, but you may want to add other ones.
74+
* is the "mbedtls_platform_entropy_poll" source, but you may want to add other ones.
7575
* Minimum is 2 for the entropy test suite.
7676
*/
7777
#define MBEDTLS_ENTROPY_MAX_SOURCES 2

doxygen/input/doc_encdec.h

+19-19
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@
1818
* specific algorithms.
1919
*
2020
* All symmetric encryption algorithms are accessible via the generic cipher layer
21-
* (see \c cipher_init_ctx()).
21+
* (see \c mbedtls_cipher_setup()).
2222
*
2323
* The asymmetric encryptrion algorithms are accessible via the generic public
24-
* key layer (see \c pk_init()).
24+
* key layer (see \c mbedtls_pk_init()).
2525
*
2626
* The following algorithms are provided:
2727
* - Symmetric:
28-
* - AES (see \c aes_crypt_ecb(), \c aes_crypt_cbc(), \c aes_crypt_cfb128() and
29-
* \c aes_crypt_ctr()).
30-
* - ARCFOUR (see \c arc4_crypt()).
31-
* - Blowfish / BF (see \c blowfish_crypt_ecb(), \c blowfish_crypt_cbc(),
32-
* \c blowfish_crypt_cfb64() and \c blowfish_crypt_ctr())
33-
* - Camellia (see \c camellia_crypt_ecb(), \c camellia_crypt_cbc(),
34-
* \c camellia_crypt_cfb128() and \c camellia_crypt_ctr()).
35-
* - DES/3DES (see \c des_crypt_ecb(), \c des_crypt_cbc(), \c des3_crypt_ecb()
36-
* and \c des3_crypt_cbc()).
37-
* - GCM (AES-GCM and CAMELLIA-GCM) (see \c gcm_init())
38-
* - XTEA (see \c xtea_crypt_ecb()).
28+
* - AES (see \c mbedtls_aes_crypt_ecb(), \c mbedtls_aes_crypt_cbc(), \c mbedtls_aes_crypt_cfb128() and
29+
* \c mbedtls_aes_crypt_ctr()).
30+
* - ARCFOUR (see \c mbedtls_arc4_crypt()).
31+
* - Blowfish / BF (see \c mbedtls_blowfish_crypt_ecb(), \c mbedtls_blowfish_crypt_cbc(),
32+
* \c mbedtls_blowfish_crypt_cfb64() and \c mbedtls_blowfish_crypt_ctr())
33+
* - Camellia (see \c mbedtls_camellia_crypt_ecb(), \c mbedtls_camellia_crypt_cbc(),
34+
* \c mbedtls_camellia_crypt_cfb128() and \c mbedtls_camellia_crypt_ctr()).
35+
* - DES/3DES (see \c mbedtls_des_crypt_ecb(), \c mbedtls_des_crypt_cbc(), \c mbedtls_des3_crypt_ecb()
36+
* and \c mbedtls_des3_crypt_cbc()).
37+
* - GCM (AES-GCM and CAMELLIA-GCM) (see \c mbedtls_gcm_init())
38+
* - XTEA (see \c mbedtls_xtea_crypt_ecb()).
3939
* - Asymmetric:
40-
* - Diffie-Hellman-Merkle (see \c dhm_read_public(), \c dhm_make_public()
41-
* and \c dhm_calc_secret()).
42-
* - RSA (see \c rsa_public() and \c rsa_private()).
43-
* - Elliptic Curves over GF(p) (see \c ecp_point_init()).
44-
* - Elliptic Curve Digital Signature Algorithm (ECDSA) (see \c ecdsa_init()).
45-
* - Elliptic Curve Diffie Hellman (ECDH) (see \c ecdh_init()).
40+
* - Diffie-Hellman-Merkle (see \c mbedtls_dhm_read_public(), \c mbedtls_dhm_make_public()
41+
* and \c mbedtls_dhm_calc_secret()).
42+
* - RSA (see \c mbedtls_rsa_public() and \c mbedtls_rsa_private()).
43+
* - Elliptic Curves over GF(p) (see \c mbedtls_ecp_point_init()).
44+
* - Elliptic Curve Digital Signature Algorithm (ECDSA) (see \c mbedtls_ecdsa_init()).
45+
* - Elliptic Curve Diffie Hellman (ECDH) (see \c mbedtls_ecdh_init()).
4646
*
4747
* This module provides encryption/decryption which can be used to provide
4848
* secrecy.

doxygen/input/doc_rng.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* The block-cipher counter-mode based deterministic random
1313
* bit generator (CTR_DBRG) as specified in NIST SP800-90. It needs an external
14-
* source of entropy. For these purposes \c entropy_func() can be used. This is
14+
* source of entropy. For these purposes \c mbedtls_entropy_func() can be used. This is
1515
* an implementation based on a simple entropy accumulator design.
1616
*
1717
* The other number generator that is included is less strong and uses the HAVEGE

doxygen/input/doc_ssltls.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
* communication channel.
1111
*
1212
* The basic provisions are:
13-
* - initialise an SSL/TLS context (see \c ssl_init()).
14-
* - perform an SSL/TLS handshake (see \c ssl_handshake()).
15-
* - read/write (see \c ssl_read() and \c ssl_write()).
16-
* - notify a peer that connection is being closed (see \c ssl_close_notify()).
13+
* - initialise an SSL/TLS context (see \c mbedtls_ssl_init()).
14+
* - perform an SSL/TLS handshake (see \c mbedtls_ssl_handshake()).
15+
* - read/write (see \c mbedtls_ssl_read() and \c mbedtls_ssl_write()).
16+
* - notify a peer that connection is being closed (see \c mbedtls_ssl_close_notify()).
1717
*
1818
* Many aspects of such a channel are set through parameters and callback
1919
* functions:

doxygen/input/doc_tcpip.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
* (or Host-to-host) layer.
1414
* SSL/TLS resides on top of that, in the Application layer, and makes use of
1515
* its basic provisions:
16-
* - listening on a port (see \c net_bind()).
17-
* - accepting a connection (through \c net_accept()).
18-
* - read/write (through \c net_recv()/\c net_send()).
19-
* - close a connection (through \c net_close()).
16+
* - listening on a port (see \c mbedtls_net_bind()).
17+
* - accepting a connection (through \c mbedtls_net_accept()).
18+
* - read/write (through \c mbedtls_net_recv()/\c mbedtls_net_send()).
19+
* - close a connection (through \c mbedtls_net_close()).
2020
*
2121
* This way you have the means to, for example, implement and use an UDP or
2222
* IPSec communication solution as a basis.

doxygen/input/doc_x509.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* \c x509parse_keyfile()).
1616
* - X.509 certificate signature verification (see \c x509parse_verify())
1717
* - X.509 certificate writing and certificate request writing (see
18-
* \c x509write_crt_der() and \c x509write_csr_der()).
18+
* \c mbedtls_x509write_crt_der() and \c mbedtls_x509write_csr_der()).
1919
*
2020
* This module can be used to build a certificate authority (CA) chain and
2121
* verify its signature. It is also used to generate Certificate Signing

include/mbedtls/ecp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ int mbedtls_ecp_mul( mbedtls_ecp_group *grp, mbedtls_ecp_point *R,
516516
* R = m * P + n * Q
517517
* (Not thread-safe to use same group in multiple threads)
518518
*
519-
* \note In contrast to ecp_mul(), this function does not guarantee
519+
* \note In contrast to mbedtls_ecp_mul(), this function does not guarantee
520520
* a constant execution flow and timing.
521521
*
522522
* \param grp ECP group

include/mbedtls/ssl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ void mbedtls_ssl_init( mbedtls_ssl_context *ssl );
11541154
* \brief Set up an SSL context for use
11551155
*
11561156
* \note No copy of the configuration context is made, it can be
1157-
* shared by many ssl_context structures.
1157+
* shared by many mbedtls_ssl_context structures.
11581158
*
11591159
* \warning Modifying the conf structure after is has been used in this
11601160
* function is unsupported!

library/ssl_tls.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6402,7 +6402,7 @@ int mbedtls_ssl_write( mbedtls_ssl_context *ssl, const unsigned char *buf, size_
64026402
{
64036403
if( ( ret = mbedtls_ssl_handshake( ssl ) ) != 0 )
64046404
{
6405-
MBEDTLS_SSL_DEBUG_RET( 1, "ssl_handshake", ret );
6405+
MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_handshake", ret );
64066406
return( ret );
64076407
}
64086408
}

programs/ssl/dtls_server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ int main( void )
281281
sizeof( client_ip ) ) ) != 0 )
282282
{
283283
printf( " failed\n ! "
284-
"ssl_set_client_transport_id() returned -0x%x\n\n", -ret );
284+
"mbedtls_ssl_set_client_transport_id() returned -0x%x\n\n", -ret );
285285
goto exit;
286286
}
287287

programs/ssl/ssl_server2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ int main( int argc, char *argv[] )
18261826
sizeof( client_ip ) ) ) != 0 )
18271827
{
18281828
mbedtls_printf( " failed\n ! "
1829-
"ssl_set_client_transport_id() returned -0x%x\n\n", -ret );
1829+
"mbedtls_ssl_set_client_transport_id() returned -0x%x\n\n", -ret );
18301830
goto exit;
18311831
}
18321832
}

0 commit comments

Comments
 (0)