| 
					
				 | 
			
			
				@@ -8,34 +8,34 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include <stdint.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include "trunnel.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct cell_extension_st; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct trn_cell_extension_st; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 struct link_specifier_st; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #define TRUNNEL_SHA1_LEN 20 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #define TRUNNEL_REND_COOKIE_LEN 20 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_HS_CELL_INTRODUCE1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct hs_cell_introduce1_st { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_TRN_CELL_INTRODUCE1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct trn_cell_introduce1_st { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint8_t legacy_key_id[TRUNNEL_SHA1_LEN]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint8_t auth_key_type; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint16_t auth_key_len; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   TRUNNEL_DYNARRAY_HEAD(, uint8_t) auth_key; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  struct cell_extension_st *extensions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  struct trn_cell_extension_st *extensions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   TRUNNEL_DYNARRAY_HEAD(, uint8_t) encrypted; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint8_t trunnel_error_code_; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-typedef struct hs_cell_introduce1_st hs_cell_introduce1_t; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_HS_CELL_INTRODUCE_ACK) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct hs_cell_introduce_ack_st { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+typedef struct trn_cell_introduce1_st trn_cell_introduce1_t; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_TRN_CELL_INTRODUCE_ACK) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct trn_cell_introduce_ack_st { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint16_t status; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  struct cell_extension_st *extensions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  struct trn_cell_extension_st *extensions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint8_t trunnel_error_code_; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-typedef struct hs_cell_introduce_ack_st hs_cell_introduce_ack_t; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_HS_CELL_INTRODUCE_ENCRYPTED) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct hs_cell_introduce_encrypted_st { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+typedef struct trn_cell_introduce_ack_st trn_cell_introduce_ack_t; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_TRN_CELL_INTRODUCE_ENCRYPTED) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct trn_cell_introduce_encrypted_st { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint8_t rend_cookie[TRUNNEL_REND_COOKIE_LEN]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  struct cell_extension_st *extensions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  struct trn_cell_extension_st *extensions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint8_t onion_key_type; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint16_t onion_key_len; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   TRUNNEL_DYNARRAY_HEAD(, uint8_t) onion_key; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -45,449 +45,449 @@ struct hs_cell_introduce_encrypted_st { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uint8_t trunnel_error_code_; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-typedef struct hs_cell_introduce_encrypted_st hs_cell_introduce_encrypted_t; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Return a newly allocated hs_cell_introduce1 with all elements set 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+typedef struct trn_cell_introduce_encrypted_st trn_cell_introduce_encrypted_t; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Return a newly allocated trn_cell_introduce1 with all elements set 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * to zero. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-hs_cell_introduce1_t *hs_cell_introduce1_new(void); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Release all storage held by the hs_cell_introduce1 in 'victim'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+trn_cell_introduce1_t *trn_cell_introduce1_new(void); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Release all storage held by the trn_cell_introduce1 in 'victim'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * (Do nothing if 'victim' is NULL.) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-void hs_cell_introduce1_free(hs_cell_introduce1_t *victim); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Try to parse a hs_cell_introduce1 from the buffer in 'input', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+void trn_cell_introduce1_free(trn_cell_introduce1_t *victim); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Try to parse a trn_cell_introduce1 from the buffer in 'input', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * using up to 'len_in' bytes from the input buffer. On success, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return the number of bytes consumed and set *output to the newly 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * allocated hs_cell_introduce1_t. On failure, return -2 if the input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * allocated trn_cell_introduce1_t. On failure, return -2 if the input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * appears truncated, and -1 if the input is otherwise invalid. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce1_parse(hs_cell_introduce1_t **output, const uint8_t *input, const size_t len_in); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce1_parse(trn_cell_introduce1_t **output, const uint8_t *input, const size_t len_in); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the number of bytes we expect to need to encode the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce1 in 'obj'. On failure, return a negative value. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce1 in 'obj'. On failure, return a negative value. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * Note that this value may be an overestimate, and can even be an 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * underestimate for certain unencodeable objects. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce1_encoded_len(const hs_cell_introduce1_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Try to encode the hs_cell_introduce1 from 'input' into the buffer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce1_encoded_len(const trn_cell_introduce1_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Try to encode the trn_cell_introduce1 from 'input' into the buffer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * at 'output', using up to 'avail' bytes of the output buffer. On 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * success, return the number of bytes used. On failure, return -2 if 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * the buffer was not long enough, and -1 if the input was invalid. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce1_encode(uint8_t *output, size_t avail, const hs_cell_introduce1_t *input); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Check whether the internal state of the hs_cell_introduce1 in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce1_encode(uint8_t *output, size_t avail, const trn_cell_introduce1_t *input); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Check whether the internal state of the trn_cell_introduce1 in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'obj' is consistent. Return NULL if it is, and a short message if 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * it is not. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const char *hs_cell_introduce1_check(const hs_cell_introduce1_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const char *trn_cell_introduce1_check(const trn_cell_introduce1_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Clear any errors that were set on the object 'obj' by its setter 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * functions. Return true iff errors were cleared. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_clear_errors(hs_cell_introduce1_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_clear_errors(trn_cell_introduce1_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the (constant) length of the array holding the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * legacy_key_id field of the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * legacy_key_id field of the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-size_t hs_cell_introduce1_getlen_legacy_key_id(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+size_t trn_cell_introduce1_getlen_legacy_key_id(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the element at position 'idx' of the fixed array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * legacy_key_id of the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * legacy_key_id of the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce1_get_legacy_key_id(hs_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_get_legacy_key_id, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce1_get_legacy_key_id(trn_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_get_legacy_key_id, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce1_getconst_legacy_key_id(const hs_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce1_getconst_legacy_key_id(const trn_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the element at position 'idx' of the fixed array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * legacy_key_id of the hs_cell_introduce1_t in 'inp', so that it will 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * legacy_key_id of the trn_cell_introduce1_t in 'inp', so that it 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * will hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_set_legacy_key_id(hs_cell_introduce1_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_set_legacy_key_id(trn_cell_introduce1_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return a pointer to the TRUNNEL_SHA1_LEN-element array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * legacy_key_id of 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t * hs_cell_introduce1_getarray_legacy_key_id(hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_get_legacy_key_id, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t * trn_cell_introduce1_getarray_legacy_key_id(trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_get_legacy_key_id, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const uint8_t  * hs_cell_introduce1_getconstarray_legacy_key_id(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const uint8_t  * trn_cell_introduce1_getconstarray_legacy_key_id(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the auth_key_type field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce1_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce1_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce1_get_auth_key_type(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce1_get_auth_key_type(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Set the value of the auth_key_type field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce1_t in 'inp' to 'val'. Return 0 on success; return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce1_t in 'inp' to 'val'. Return 0 on success; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_set_auth_key_type(hs_cell_introduce1_t *inp, uint8_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_set_auth_key_type(trn_cell_introduce1_t *inp, uint8_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the auth_key_len field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce1_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce1_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint16_t hs_cell_introduce1_get_auth_key_len(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint16_t trn_cell_introduce1_get_auth_key_len(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Set the value of the auth_key_len field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce1_t in 'inp' to 'val'. Return 0 on success; return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce1_t in 'inp' to 'val'. Return 0 on success; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_set_auth_key_len(hs_cell_introduce1_t *inp, uint16_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_set_auth_key_len(trn_cell_introduce1_t *inp, uint16_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the length of the dynamic array holding the auth_key field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * of the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * of the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-size_t hs_cell_introduce1_getlen_auth_key(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+size_t trn_cell_introduce1_getlen_auth_key(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * auth_key of the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * auth_key of the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce1_get_auth_key(hs_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_get_auth_key, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce1_get_auth_key(trn_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_get_auth_key, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce1_getconst_auth_key(const hs_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce1_getconst_auth_key(const trn_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * auth_key of the hs_cell_introduce1_t in 'inp', so that it will hold 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * auth_key of the trn_cell_introduce1_t in 'inp', so that it will 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_set_auth_key(hs_cell_introduce1_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_set_auth_key(trn_cell_introduce1_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Append a new element 'elt' to the dynamic array field auth_key of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_add_auth_key(hs_cell_introduce1_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_add_auth_key(trn_cell_introduce1_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return a pointer to the variable-length array field auth_key of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t * hs_cell_introduce1_getarray_auth_key(hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_get_auth_key, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t * trn_cell_introduce1_getarray_auth_key(trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_get_auth_key, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const uint8_t  * hs_cell_introduce1_getconstarray_auth_key(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const uint8_t  * trn_cell_introduce1_getconstarray_auth_key(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the length of the variable-length array field auth_key of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp' to 'newlen'.Fill extra elements with 0. Return 0 on success; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_setlen_auth_key(hs_cell_introduce1_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_setlen_auth_key(trn_cell_introduce1_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the extensions field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce1_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce1_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct cell_extension_st * hs_cell_introduce1_get_extensions(hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_get_extensions, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct trn_cell_extension_st * trn_cell_introduce1_get_extensions(trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_get_extensions, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const struct cell_extension_st * hs_cell_introduce1_getconst_extensions(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Set the value of the extensions field of the hs_cell_introduce1_t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const struct trn_cell_extension_st * trn_cell_introduce1_getconst_extensions(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Set the value of the extensions field of the trn_cell_introduce1_t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * in 'inp' to 'val'. Free the old value if any. Steals the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * referenceto 'val'.Return 0 on success; return -1 and set the error 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_set_extensions(hs_cell_introduce1_t *inp, struct cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_set_extensions, but does not free the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_set_extensions(trn_cell_introduce1_t *inp, struct trn_cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_set_extensions, but does not free the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * previous value. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_set0_extensions(hs_cell_introduce1_t *inp, struct cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_set0_extensions(trn_cell_introduce1_t *inp, struct trn_cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the length of the dynamic array holding the encrypted field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * of the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * of the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-size_t hs_cell_introduce1_getlen_encrypted(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+size_t trn_cell_introduce1_getlen_encrypted(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * encrypted of the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * encrypted of the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce1_get_encrypted(hs_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_get_encrypted, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce1_get_encrypted(trn_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_get_encrypted, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce1_getconst_encrypted(const hs_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce1_getconst_encrypted(const trn_cell_introduce1_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * encrypted of the hs_cell_introduce1_t in 'inp', so that it will 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * encrypted of the trn_cell_introduce1_t in 'inp', so that it will 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_set_encrypted(hs_cell_introduce1_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_set_encrypted(trn_cell_introduce1_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Append a new element 'elt' to the dynamic array field encrypted of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * the hs_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * the trn_cell_introduce1_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_add_encrypted(hs_cell_introduce1_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_add_encrypted(trn_cell_introduce1_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return a pointer to the variable-length array field encrypted of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t * hs_cell_introduce1_getarray_encrypted(hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce1_get_encrypted, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t * trn_cell_introduce1_getarray_encrypted(trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce1_get_encrypted, but take and return a const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const uint8_t  * hs_cell_introduce1_getconstarray_encrypted(const hs_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const uint8_t  * trn_cell_introduce1_getconstarray_encrypted(const trn_cell_introduce1_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the length of the variable-length array field encrypted of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp' to 'newlen'.Fill extra elements with 0. Return 0 on success; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce1_setlen_encrypted(hs_cell_introduce1_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Return a newly allocated hs_cell_introduce_ack with all elements 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce1_setlen_encrypted(trn_cell_introduce1_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Return a newly allocated trn_cell_introduce_ack with all elements 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * set to zero. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-hs_cell_introduce_ack_t *hs_cell_introduce_ack_new(void); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Release all storage held by the hs_cell_introduce_ack in 'victim'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * (Do nothing if 'victim' is NULL.) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+trn_cell_introduce_ack_t *trn_cell_introduce_ack_new(void); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Release all storage held by the trn_cell_introduce_ack in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 'victim'. (Do nothing if 'victim' is NULL.) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-void hs_cell_introduce_ack_free(hs_cell_introduce_ack_t *victim); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Try to parse a hs_cell_introduce_ack from the buffer in 'input', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+void trn_cell_introduce_ack_free(trn_cell_introduce_ack_t *victim); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Try to parse a trn_cell_introduce_ack from the buffer in 'input', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * using up to 'len_in' bytes from the input buffer. On success, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return the number of bytes consumed and set *output to the newly 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * allocated hs_cell_introduce_ack_t. On failure, return -2 if the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * allocated trn_cell_introduce_ack_t. On failure, return -2 if the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * input appears truncated, and -1 if the input is otherwise invalid. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce_ack_parse(hs_cell_introduce_ack_t **output, const uint8_t *input, const size_t len_in); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce_ack_parse(trn_cell_introduce_ack_t **output, const uint8_t *input, const size_t len_in); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the number of bytes we expect to need to encode the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_ack in 'obj'. On failure, return a negative 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_ack in 'obj'. On failure, return a negative 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * value. Note that this value may be an overestimate, and can even be 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * an underestimate for certain unencodeable objects. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce_ack_encoded_len(const hs_cell_introduce_ack_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Try to encode the hs_cell_introduce_ack from 'input' into the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce_ack_encoded_len(const trn_cell_introduce_ack_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Try to encode the trn_cell_introduce_ack from 'input' into the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * buffer at 'output', using up to 'avail' bytes of the output buffer. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * On success, return the number of bytes used. On failure, return -2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * if the buffer was not long enough, and -1 if the input was invalid. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce_ack_encode(uint8_t *output, size_t avail, const hs_cell_introduce_ack_t *input); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Check whether the internal state of the hs_cell_introduce_ack in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce_ack_encode(uint8_t *output, size_t avail, const trn_cell_introduce_ack_t *input); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Check whether the internal state of the trn_cell_introduce_ack in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'obj' is consistent. Return NULL if it is, and a short message if 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * it is not. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const char *hs_cell_introduce_ack_check(const hs_cell_introduce_ack_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const char *trn_cell_introduce_ack_check(const trn_cell_introduce_ack_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Clear any errors that were set on the object 'obj' by its setter 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * functions. Return true iff errors were cleared. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_ack_clear_errors(hs_cell_introduce_ack_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_ack_clear_errors(trn_cell_introduce_ack_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the status field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_ack_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_ack_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint16_t hs_cell_introduce_ack_get_status(const hs_cell_introduce_ack_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Set the value of the status field of the hs_cell_introduce_ack_t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint16_t trn_cell_introduce_ack_get_status(const trn_cell_introduce_ack_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Set the value of the status field of the trn_cell_introduce_ack_t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * in 'inp' to 'val'. Return 0 on success; return -1 and set the error 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_ack_set_status(hs_cell_introduce_ack_t *inp, uint16_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_ack_set_status(trn_cell_introduce_ack_t *inp, uint16_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the extensions field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_ack_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_ack_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct cell_extension_st * hs_cell_introduce_ack_get_extensions(hs_cell_introduce_ack_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_ack_get_extensions, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct trn_cell_extension_st * trn_cell_introduce_ack_get_extensions(trn_cell_introduce_ack_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_ack_get_extensions, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const struct cell_extension_st * hs_cell_introduce_ack_getconst_extensions(const hs_cell_introduce_ack_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const struct trn_cell_extension_st * trn_cell_introduce_ack_getconst_extensions(const trn_cell_introduce_ack_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Set the value of the extensions field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_ack_t in 'inp' to 'val'. Free the old value if 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_ack_t in 'inp' to 'val'. Free the old value if 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * any. Steals the referenceto 'val'.Return 0 on success; return -1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_ack_set_extensions(hs_cell_introduce_ack_t *inp, struct cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_ack_set_extensions, but does not free the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_ack_set_extensions(trn_cell_introduce_ack_t *inp, struct trn_cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_ack_set_extensions, but does not free the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * previous value. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_ack_set0_extensions(hs_cell_introduce_ack_t *inp, struct cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Return a newly allocated hs_cell_introduce_encrypted with all 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_ack_set0_extensions(trn_cell_introduce_ack_t *inp, struct trn_cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Return a newly allocated trn_cell_introduce_encrypted with all 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * elements set to zero. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-hs_cell_introduce_encrypted_t *hs_cell_introduce_encrypted_new(void); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Release all storage held by the hs_cell_introduce_encrypted in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+trn_cell_introduce_encrypted_t *trn_cell_introduce_encrypted_new(void); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Release all storage held by the trn_cell_introduce_encrypted in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'victim'. (Do nothing if 'victim' is NULL.) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-void hs_cell_introduce_encrypted_free(hs_cell_introduce_encrypted_t *victim); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Try to parse a hs_cell_introduce_encrypted from the buffer in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+void trn_cell_introduce_encrypted_free(trn_cell_introduce_encrypted_t *victim); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Try to parse a trn_cell_introduce_encrypted from the buffer in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'input', using up to 'len_in' bytes from the input buffer. On 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * success, return the number of bytes consumed and set *output to the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * newly allocated hs_cell_introduce_encrypted_t. On failure, return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * newly allocated trn_cell_introduce_encrypted_t. On failure, return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * -2 if the input appears truncated, and -1 if the input is otherwise 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * invalid. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce_encrypted_parse(hs_cell_introduce_encrypted_t **output, const uint8_t *input, const size_t len_in); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce_encrypted_parse(trn_cell_introduce_encrypted_t **output, const uint8_t *input, const size_t len_in); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the number of bytes we expect to need to encode the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted in 'obj'. On failure, return a negative 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * value. Note that this value may be an overestimate, and can even be 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * an underestimate for certain unencodeable objects. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted in 'obj'. On failure, return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * negative value. Note that this value may be an overestimate, and 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * can even be an underestimate for certain unencodeable objects. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce_encrypted_encoded_len(const hs_cell_introduce_encrypted_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** Try to encode the hs_cell_introduce_encrypted from 'input' into 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce_encrypted_encoded_len(const trn_cell_introduce_encrypted_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** Try to encode the trn_cell_introduce_encrypted from 'input' into 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * the buffer at 'output', using up to 'avail' bytes of the output 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * buffer. On success, return the number of bytes used. On failure, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return -2 if the buffer was not long enough, and -1 if the input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * was invalid. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ssize_t hs_cell_introduce_encrypted_encode(uint8_t *output, size_t avail, const hs_cell_introduce_encrypted_t *input); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ssize_t trn_cell_introduce_encrypted_encode(uint8_t *output, size_t avail, const trn_cell_introduce_encrypted_t *input); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Check whether the internal state of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted in 'obj' is consistent. Return NULL if 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted in 'obj' is consistent. Return NULL if 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * it is, and a short message if it is not. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const char *hs_cell_introduce_encrypted_check(const hs_cell_introduce_encrypted_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const char *trn_cell_introduce_encrypted_check(const trn_cell_introduce_encrypted_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Clear any errors that were set on the object 'obj' by its setter 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * functions. Return true iff errors were cleared. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_clear_errors(hs_cell_introduce_encrypted_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_clear_errors(trn_cell_introduce_encrypted_t *obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the (constant) length of the array holding the rend_cookie 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * field of the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * field of the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-size_t hs_cell_introduce_encrypted_getlen_rend_cookie(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+size_t trn_cell_introduce_encrypted_getlen_rend_cookie(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the element at position 'idx' of the fixed array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * rend_cookie of the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * rend_cookie of the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_get_rend_cookie(hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_rend_cookie, but take and 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_get_rend_cookie(trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_rend_cookie, but take and 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return a const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_getconst_rend_cookie(const hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_getconst_rend_cookie(const trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the element at position 'idx' of the fixed array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * rend_cookie of the hs_cell_introduce_encrypted_t in 'inp', so that 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * rend_cookie of the trn_cell_introduce_encrypted_t in 'inp', so that 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * it will hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_rend_cookie(hs_cell_introduce_encrypted_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_rend_cookie(trn_cell_introduce_encrypted_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return a pointer to the TRUNNEL_REND_COOKIE_LEN-element array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * field rend_cookie of 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t * hs_cell_introduce_encrypted_getarray_rend_cookie(hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_rend_cookie, but take and 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t * trn_cell_introduce_encrypted_getarray_rend_cookie(trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_rend_cookie, but take and 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return a const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const uint8_t  * hs_cell_introduce_encrypted_getconstarray_rend_cookie(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const uint8_t  * trn_cell_introduce_encrypted_getconstarray_rend_cookie(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the extensions field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct cell_extension_st * hs_cell_introduce_encrypted_get_extensions(hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_extensions, but take and return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * a const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct trn_cell_extension_st * trn_cell_introduce_encrypted_get_extensions(trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_extensions, but take and 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * return a const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const struct cell_extension_st * hs_cell_introduce_encrypted_getconst_extensions(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const struct trn_cell_extension_st * trn_cell_introduce_encrypted_getconst_extensions(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Set the value of the extensions field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' to 'val'. Free the old value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * if any. Steals the referenceto 'val'.Return 0 on success; return -1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' to 'val'. Free the old 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * value if any. Steals the referenceto 'val'.Return 0 on success; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_extensions(hs_cell_introduce_encrypted_t *inp, struct cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_set_extensions, but does not free 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_extensions(trn_cell_introduce_encrypted_t *inp, struct trn_cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_set_extensions, but does not free 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * the previous value. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set0_extensions(hs_cell_introduce_encrypted_t *inp, struct cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set0_extensions(trn_cell_introduce_encrypted_t *inp, struct trn_cell_extension_st *val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the onion_key_type field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_get_onion_key_type(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_get_onion_key_type(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Set the value of the onion_key_type field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * success; return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_onion_key_type(hs_cell_introduce_encrypted_t *inp, uint8_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_onion_key_type(trn_cell_introduce_encrypted_t *inp, uint8_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the onion_key_len field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint16_t hs_cell_introduce_encrypted_get_onion_key_len(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint16_t trn_cell_introduce_encrypted_get_onion_key_len(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Set the value of the onion_key_len field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * success; return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_onion_key_len(hs_cell_introduce_encrypted_t *inp, uint16_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_onion_key_len(trn_cell_introduce_encrypted_t *inp, uint16_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the length of the dynamic array holding the onion_key field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * of the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * of the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-size_t hs_cell_introduce_encrypted_getlen_onion_key(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+size_t trn_cell_introduce_encrypted_getlen_onion_key(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * onion_key of the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * onion_key of the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_get_onion_key(hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_onion_key, but take and return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_get_onion_key(trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_onion_key, but take and return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * a const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_getconst_onion_key(const hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_getconst_onion_key(const trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * onion_key of the hs_cell_introduce_encrypted_t in 'inp', so that it 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * will hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * onion_key of the trn_cell_introduce_encrypted_t in 'inp', so that 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * it will hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_onion_key(hs_cell_introduce_encrypted_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_onion_key(trn_cell_introduce_encrypted_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Append a new element 'elt' to the dynamic array field onion_key of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_add_onion_key(hs_cell_introduce_encrypted_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_add_onion_key(trn_cell_introduce_encrypted_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return a pointer to the variable-length array field onion_key of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t * hs_cell_introduce_encrypted_getarray_onion_key(hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_onion_key, but take and return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t * trn_cell_introduce_encrypted_getarray_onion_key(trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_onion_key, but take and return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * a const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const uint8_t  * hs_cell_introduce_encrypted_getconstarray_onion_key(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const uint8_t  * trn_cell_introduce_encrypted_getconstarray_onion_key(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the length of the variable-length array field onion_key of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp' to 'newlen'.Fill extra elements with 0. Return 0 on success; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_setlen_onion_key(hs_cell_introduce_encrypted_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_setlen_onion_key(trn_cell_introduce_encrypted_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the value of the nspec field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_get_nspec(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_get_nspec(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Set the value of the nspec field of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * success; return -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_nspec(hs_cell_introduce_encrypted_t *inp, uint8_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_nspec(trn_cell_introduce_encrypted_t *inp, uint8_t val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the length of the dynamic array holding the nspecs field of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-size_t hs_cell_introduce_encrypted_getlen_nspecs(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+size_t trn_cell_introduce_encrypted_getlen_nspecs(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * nspecs of the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * nspecs of the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct link_specifier_st * hs_cell_introduce_encrypted_get_nspecs(hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_nspecs, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct link_specifier_st * trn_cell_introduce_encrypted_get_nspecs(trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_nspecs, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- const struct link_specifier_st * hs_cell_introduce_encrypted_getconst_nspecs(const hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ const struct link_specifier_st * trn_cell_introduce_encrypted_getconst_nspecs(const trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * nspecs of the hs_cell_introduce_encrypted_t in 'inp', so that it 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * nspecs of the trn_cell_introduce_encrypted_t in 'inp', so that it 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * will hold the value 'elt'. Free the previous value, if any. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_nspecs(hs_cell_introduce_encrypted_t *inp, size_t idx, struct link_specifier_st * elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_set_nspecs, but does not free the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_nspecs(trn_cell_introduce_encrypted_t *inp, size_t idx, struct link_specifier_st * elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_set_nspecs, but does not free the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * previous value. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set0_nspecs(hs_cell_introduce_encrypted_t *inp, size_t idx, struct link_specifier_st * elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set0_nspecs(trn_cell_introduce_encrypted_t *inp, size_t idx, struct link_specifier_st * elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Append a new element 'elt' to the dynamic array field nspecs of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_add_nspecs(hs_cell_introduce_encrypted_t *inp, struct link_specifier_st * elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_add_nspecs(trn_cell_introduce_encrypted_t *inp, struct link_specifier_st * elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return a pointer to the variable-length array field nspecs of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-struct link_specifier_st * * hs_cell_introduce_encrypted_getarray_nspecs(hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_nspecs, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+struct link_specifier_st * * trn_cell_introduce_encrypted_getarray_nspecs(trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_nspecs, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const struct link_specifier_st *  const  * hs_cell_introduce_encrypted_getconstarray_nspecs(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const struct link_specifier_st *  const  * trn_cell_introduce_encrypted_getconstarray_nspecs(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the length of the variable-length array field nspecs of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp' to 'newlen'.Fill extra elements with NULL; free removed 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * elements. Return 0 on success; return -1 and set the error code on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_setlen_nspecs(hs_cell_introduce_encrypted_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_setlen_nspecs(trn_cell_introduce_encrypted_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the length of the dynamic array holding the pad field of 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-size_t hs_cell_introduce_encrypted_getlen_pad(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+size_t trn_cell_introduce_encrypted_getlen_pad(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * pad of the hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * pad of the trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_get_pad(hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_pad, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_get_pad(trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_pad, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t hs_cell_introduce_encrypted_getconst_pad(const hs_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t trn_cell_introduce_encrypted_getconst_pad(const trn_cell_introduce_encrypted_t *inp, size_t idx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the element at position 'idx' of the dynamic array field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * pad of the hs_cell_introduce_encrypted_t in 'inp', so that it will 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * pad of the trn_cell_introduce_encrypted_t in 'inp', so that it will 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * hold the value 'elt'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_set_pad(hs_cell_introduce_encrypted_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_set_pad(trn_cell_introduce_encrypted_t *inp, size_t idx, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Append a new element 'elt' to the dynamic array field pad of the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * hs_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * trn_cell_introduce_encrypted_t in 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_add_pad(hs_cell_introduce_encrypted_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_add_pad(trn_cell_introduce_encrypted_t *inp, uint8_t elt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Return a pointer to the variable-length array field pad of 'inp'. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-uint8_t * hs_cell_introduce_encrypted_getarray_pad(hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** As hs_cell_introduce_encrypted_get_pad, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+uint8_t * trn_cell_introduce_encrypted_getarray_pad(trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** As trn_cell_introduce_encrypted_get_pad, but take and return a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * const pointer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const uint8_t  * hs_cell_introduce_encrypted_getconstarray_pad(const hs_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const uint8_t  * trn_cell_introduce_encrypted_getconstarray_pad(const trn_cell_introduce_encrypted_t *inp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** Change the length of the variable-length array field pad of 'inp' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * to 'newlen'.Fill extra elements with 0. Return 0 on success; return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * -1 and set the error code on 'inp' on failure. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int hs_cell_introduce_encrypted_setlen_pad(hs_cell_introduce_encrypted_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int trn_cell_introduce_encrypted_setlen_pad(trn_cell_introduce_encrypted_t *inp, size_t newlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 |