mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-01 04:01:13 -04:00 
			
		
		
		
	Reorganize ccm context structure.
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
This commit is contained in:
		
							parent
							
								
									de7a83da0d
								
							
						
					
					
						commit
						4df9ac4882
					
				| @ -76,19 +76,19 @@ extern "C" { | ||||
|  */ | ||||
| typedef struct mbedtls_ccm_context | ||||
| { | ||||
|     mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx);    /*!< The cipher context used. */ | ||||
|     unsigned char MBEDTLS_PRIVATE(y)[16];    /*!< The Y working buffer */ | ||||
|     unsigned char MBEDTLS_PRIVATE(ctr)[16];  /*!< The counter buffer */ | ||||
|     unsigned char MBEDTLS_PRIVATE(q);        /*!< The Q working value */ | ||||
|     mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx);    /*!< The cipher context used. */ | ||||
|     size_t MBEDTLS_PRIVATE(plaintext_len);   /*!< Total plaintext length */ | ||||
|     size_t MBEDTLS_PRIVATE(add_len);         /*!< Total authentication data length */ | ||||
|     size_t MBEDTLS_PRIVATE(tag_len);         /*!< Total tag length */ | ||||
|     size_t MBEDTLS_PRIVATE(processed);       /*!< How many bytes of input data were processed (chunked input) */ | ||||
|     int MBEDTLS_PRIVATE(mode);               /*!< The operation to perform:
 | ||||
|                                                 #MBEDTLS_CCM_ENCRYPT or | ||||
|                                                 #MBEDTLS_CCM_DECRYPT or | ||||
|                                                 #MBEDTLS_CCM_STAR_ENCRYPT or | ||||
|                                                 #MBEDTLS_CCM_STAR_DECRYPT. */ | ||||
|     unsigned char MBEDTLS_PRIVATE(q);        /*!< The Q working value */ | ||||
|     unsigned char MBEDTLS_PRIVATE(mode);     /*!< The operation to perform:
 | ||||
|                                                   #MBEDTLS_CCM_ENCRYPT or | ||||
|                                                   #MBEDTLS_CCM_DECRYPT or | ||||
|                                                   #MBEDTLS_CCM_STAR_ENCRYPT or | ||||
|                                                   #MBEDTLS_CCM_STAR_DECRYPT. */ | ||||
|     int MBEDTLS_PRIVATE(state);              /*!< Working value holding context's
 | ||||
|                                                   state. Used for chunked data | ||||
|                                                   input */ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Mateusz Starzyk
						Mateusz Starzyk