Lines Matching refs:Role
143 #define dtls_kb_client_mac_secret(Param, Role) ((Param)->key_block) argument
144 #define dtls_kb_server_mac_secret(Param, Role) \ argument
145 (dtls_kb_client_mac_secret(Param, Role) + DTLS_MAC_KEY_LENGTH)
146 #define dtls_kb_remote_mac_secret(Param, Role) \ argument
147 ((Role) == DTLS_SERVER \
148 ? dtls_kb_client_mac_secret(Param, Role) \
149 : dtls_kb_server_mac_secret(Param, Role))
150 #define dtls_kb_local_mac_secret(Param, Role) \ argument
151 ((Role) == DTLS_CLIENT \
152 ? dtls_kb_client_mac_secret(Param, Role) \
153 : dtls_kb_server_mac_secret(Param, Role))
154 #define dtls_kb_mac_secret_size(Param, Role) DTLS_MAC_KEY_LENGTH argument
155 #define dtls_kb_client_write_key(Param, Role) \ argument
156 (dtls_kb_server_mac_secret(Param, Role) + DTLS_MAC_KEY_LENGTH)
157 #define dtls_kb_server_write_key(Param, Role) \ argument
158 (dtls_kb_client_write_key(Param, Role) + DTLS_KEY_LENGTH)
159 #define dtls_kb_remote_write_key(Param, Role) \ argument
160 ((Role) == DTLS_SERVER \
161 ? dtls_kb_client_write_key(Param, Role) \
162 : dtls_kb_server_write_key(Param, Role))
163 #define dtls_kb_local_write_key(Param, Role) \ argument
164 ((Role) == DTLS_CLIENT \
165 ? dtls_kb_client_write_key(Param, Role) \
166 : dtls_kb_server_write_key(Param, Role))
167 #define dtls_kb_key_size(Param, Role) DTLS_KEY_LENGTH argument
168 #define dtls_kb_client_iv(Param, Role) \ argument
169 (dtls_kb_server_write_key(Param, Role) + DTLS_KEY_LENGTH)
170 #define dtls_kb_server_iv(Param, Role) \ argument
171 (dtls_kb_client_iv(Param, Role) + DTLS_IV_LENGTH)
172 #define dtls_kb_remote_iv(Param, Role) \ argument
173 ((Role) == DTLS_SERVER \
174 ? dtls_kb_client_iv(Param, Role) \
175 : dtls_kb_server_iv(Param, Role))
176 #define dtls_kb_local_iv(Param, Role) \ argument
177 ((Role) == DTLS_CLIENT \
178 ? dtls_kb_client_iv(Param, Role) \
179 : dtls_kb_server_iv(Param, Role))
180 #define dtls_kb_iv_size(Param, Role) DTLS_IV_LENGTH argument
182 #define dtls_kb_size(Param, Role) \ argument
183 (2 * (dtls_kb_mac_secret_size(Param, Role) + \
184 dtls_kb_key_size(Param, Role) + dtls_kb_iv_size(Param, Role)))
187 #define dtls_kb_digest_size(Param, Role) DTLS_MAC_LENGTH argument