/external/libsrtp2/crypto/include/ |
D | cipher.h | 78 typedef srtp_err_status_t (*srtp_cipher_alloc_func_t)(srtp_cipher_pointer_t *cp, 85 typedef srtp_err_status_t (*srtp_cipher_init_func_t)(void *state, 89 typedef srtp_err_status_t (*srtp_cipher_dealloc_func_t)( 95 typedef srtp_err_status_t (*srtp_cipher_set_aad_func_t)(void *state, 100 typedef srtp_err_status_t (*srtp_cipher_encrypt_func_t)( 106 typedef srtp_err_status_t (*srtp_cipher_decrypt_func_t)( 114 typedef srtp_err_status_t (*srtp_cipher_set_iv_func_t)( 123 typedef srtp_err_status_t (*srtp_cipher_get_tag_func_t)(void *state, 183 srtp_err_status_t srtp_cipher_type_self_test(const srtp_cipher_type_t *ct); 191 srtp_err_status_t srtp_cipher_type_test( [all …]
|
D | crypto_kernel.h | 124 srtp_err_status_t srtp_crypto_kernel_init(void); 136 srtp_err_status_t srtp_crypto_kernel_shutdown(void); 147 srtp_err_status_t srtp_crypto_kernel_status(void); 153 srtp_err_status_t srtp_crypto_kernel_list_debug_modules(void); 159 srtp_err_status_t srtp_crypto_kernel_load_cipher_type( 163 srtp_err_status_t srtp_crypto_kernel_load_auth_type(const srtp_auth_type_t *ct, 166 srtp_err_status_t srtp_crypto_kernel_load_debug_module( 179 srtp_err_status_t srtp_crypto_kernel_alloc_cipher(srtp_cipher_type_id_t id, 195 srtp_err_status_t srtp_crypto_kernel_alloc_auth(srtp_auth_type_id_t id, 208 srtp_err_status_t srtp_crypto_kernel_set_debug_module(const char *mod_name,
|
D | auth.h | 59 typedef srtp_err_status_t (*srtp_auth_alloc_func)(srtp_auth_pointer_t *ap, 63 typedef srtp_err_status_t (*srtp_auth_init_func)(void *state, 67 typedef srtp_err_status_t (*srtp_auth_dealloc_func)(srtp_auth_pointer_t ap); 69 typedef srtp_err_status_t (*srtp_auth_compute_func)(void *state, 75 typedef srtp_err_status_t (*srtp_auth_update_func)(void *state, 79 typedef srtp_err_status_t (*srtp_auth_start_func)(void *state); 149 srtp_err_status_t srtp_auth_type_self_test(const srtp_auth_type_t *at); 156 srtp_err_status_t srtp_auth_type_test(const srtp_auth_type_t *at, 166 srtp_err_status_t srtp_replace_auth_type(const srtp_auth_type_t *ct,
|
D | rdbx.h | 95 srtp_err_status_t srtp_rdbx_init(srtp_rdbx_t *rdbx, unsigned long ws); 102 srtp_err_status_t srtp_rdbx_dealloc(srtp_rdbx_t *rdbx); 123 srtp_err_status_t srtp_rdbx_check(const srtp_rdbx_t *rdbx, int difference); 135 srtp_err_status_t srtp_rdbx_add_index(srtp_rdbx_t *rdbx, int delta); 144 srtp_err_status_t srtp_rdbx_set_roc(srtp_rdbx_t *rdbx, uint32_t roc); 201 srtp_err_status_t srtp_rdbx_set_roc_seq(srtp_rdbx_t *rdbx,
|
D | null_auth.h | 59 srtp_err_status_t srtp_null_auth_alloc(srtp_auth_t **a, int key_len, int out_len); 61 srtp_err_status_t srtp_null_auth_dealloc(srtp_auth_t *a); 63 srtp_err_status_t srtp_null_auth_init(srtp_null_auth_ctx_t *state, const uint8_t *key, int key_len); 65 srtp_err_status_t srtp_null_auth_compute(srtp_null_auth_ctx_t *state, uint8_t *message, int msg_oct…
|
D | rdb.h | 76 srtp_err_status_t srtp_rdb_init(srtp_rdb_t *rdb); 86 srtp_err_status_t srtp_rdb_check(const srtp_rdb_t *rdb, uint32_t rdb_index); 96 srtp_err_status_t srtp_rdb_add_index(srtp_rdb_t *rdb, uint32_t rdb_index); 114 srtp_err_status_t srtp_rdb_increment(srtp_rdb_t *rdb);
|
D | stat.h | 56 srtp_err_status_t stat_test_monobit(uint8_t *data); 58 srtp_err_status_t stat_test_poker(uint8_t *data); 60 srtp_err_status_t stat_test_runs(uint8_t *data);
|
/external/libsrtp2/include/ |
D | srtp.h | 199 } srtp_err_status_t; typedef 369 srtp_err_status_t srtp_init(void); 376 srtp_err_status_t srtp_shutdown(void); 418 srtp_err_status_t srtp_protect(srtp_t ctx, void *rtp_hdr, int *len_ptr); 468 srtp_err_status_t srtp_protect_mki(srtp_ctx_t *ctx, 514 srtp_err_status_t srtp_unprotect(srtp_t ctx, void *srtp_hdr, int *len_ptr); 562 srtp_err_status_t srtp_unprotect_mki(srtp_t ctx, 588 srtp_err_status_t srtp_create(srtp_t *session, const srtp_policy_t *policy); 604 srtp_err_status_t srtp_add_stream(srtp_t session, const srtp_policy_t *policy); 627 srtp_err_status_t srtp_remove_stream(srtp_t session, unsigned int ssrc); [all …]
|
D | ekt.h | 120 srtp_err_status_t srtp_ekt_alloc(srtp_ekt_stream_t *stream_data, 123 srtp_err_status_t srtp_ekt_stream_init(srtp_ekt_stream_t e, 128 srtp_err_status_t srtp_ekt_stream_init_from_policy(srtp_ekt_stream_t e, 131 srtp_err_status_t srtp_stream_init_from_ekt(srtp_stream_t stream, 149 srtp_err_status_t srtp_ekt_tag_verification_preproces(uint8_t *pkt_tag, 153 srtp_err_status_t srtp_ekt_tag_verification_postproces(uint8_t *pkt_tag, 169 srtp_err_status_t srtp_stream_srtcp_auth_tag_generation_preprocess( 175 srtp_err_status_t srtcp_auth_tag_generation_postprocess(void);
|
/external/libsrtp2/fuzzer/ |
D | fuzzer.h | 26 typedef srtp_err_status_t ( 29 typedef srtp_err_status_t (*fuzz_srtp_get_length_func)(const srtp_t, 45 static srtp_err_status_t fuzz_srtp_protect(srtp_t srtp_sender, 50 static srtp_err_status_t fuzz_srtp_unprotect(srtp_t srtp_sender, 55 static srtp_err_status_t fuzz_srtp_protect_rtcp(srtp_t srtp_sender, 60 static srtp_err_status_t fuzz_srtp_unprotect_rtcp(srtp_t srtp_sender, 65 static srtp_err_status_t fuzz_srtp_protect_mki(srtp_t srtp_sender, 70 static srtp_err_status_t fuzz_srtp_protect_rtcp_mki(srtp_t srtp_sender, 75 static srtp_err_status_t fuzz_srtp_unprotect_mki(srtp_t srtp_sender, 80 static srtp_err_status_t fuzz_srtp_unprotect_rtcp_mki(srtp_t srtp_sender, [all …]
|
/external/libsrtp2/crypto/kernel/ |
D | crypto_kernel.c | 72 srtp_err_status_t srtp_crypto_kernel_init() in srtp_crypto_kernel_init() 74 srtp_err_status_t status; in srtp_crypto_kernel_init() 175 srtp_err_status_t srtp_crypto_kernel_status() in srtp_crypto_kernel_status() 177 srtp_err_status_t status; in srtp_crypto_kernel_status() 216 srtp_err_status_t srtp_crypto_kernel_list_debug_modules() in srtp_crypto_kernel_list_debug_modules() 235 srtp_err_status_t srtp_crypto_kernel_shutdown() in srtp_crypto_kernel_shutdown() 275 static inline srtp_err_status_t srtp_crypto_kernel_do_load_cipher_type( in srtp_crypto_kernel_do_load_cipher_type() 281 srtp_err_status_t status; in srtp_crypto_kernel_do_load_cipher_type() 339 srtp_err_status_t srtp_crypto_kernel_load_cipher_type( in srtp_crypto_kernel_load_cipher_type() 346 srtp_err_status_t srtp_replace_cipher_type(const srtp_cipher_type_t *new_ct, in srtp_replace_cipher_type() [all …]
|
/external/libsrtp2/crypto/test/ |
D | cipher_driver.c | 65 srtp_err_status_t cipher_driver_self_test(srtp_cipher_type_t *ct); 73 srtp_err_status_t cipher_driver_test_buffering(srtp_cipher_t *c); 78 srtp_err_status_t cipher_driver_test_array_throughput(srtp_cipher_type_t *ct, 89 srtp_err_status_t cipher_array_delete(srtp_cipher_t *cipher_array[], 92 srtp_err_status_t cipher_array_alloc_init(srtp_cipher_t ***cipher_array, 103 void check_status(srtp_err_status_t s) in check_status() 130 srtp_err_status_t status; in main() 334 srtp_err_status_t cipher_driver_self_test(srtp_cipher_type_t *ct) in cipher_driver_self_test() 336 srtp_err_status_t status; in cipher_driver_self_test() 356 srtp_err_status_t cipher_driver_test_buffering(srtp_cipher_t *c) in cipher_driver_test_buffering() [all …]
|
D | sha1_driver.c | 71 srtp_err_status_t hash_test_case_add(hash_test_case_t **list_ptr, in hash_test_case_add() 109 srtp_err_status_t sha1_test_case_validate(const hash_test_case_t *test_case) in sha1_test_case_validate() 149 srtp_err_status_t sha1_add_test_cases(void) in sha1_add_test_cases() 152 srtp_err_status_t err; in sha1_add_test_cases() 330 srtp_err_status_t sha1_dealloc_test_cases(void) in sha1_dealloc_test_cases() 344 srtp_err_status_t sha1_validate(void) in sha1_validate() 347 srtp_err_status_t err; in sha1_validate() 375 srtp_err_status_t err; in main()
|
/external/libsrtp2/crypto/hash/ |
D | null_auth.c | 56 static srtp_err_status_t srtp_null_auth_alloc(srtp_auth_t **a, in srtp_null_auth_alloc() 86 static srtp_err_status_t srtp_null_auth_dealloc(srtp_auth_t *a) in srtp_null_auth_dealloc() 100 static srtp_err_status_t srtp_null_auth_init(void *statev, in srtp_null_auth_init() 110 static srtp_err_status_t srtp_null_auth_compute(void *statev, in srtp_null_auth_compute() 121 static srtp_err_status_t srtp_null_auth_update(void *statev, in srtp_null_auth_update() 130 static srtp_err_status_t srtp_null_auth_start(void *statev) in srtp_null_auth_start()
|
D | hmac.c | 60 static srtp_err_status_t srtp_hmac_alloc(srtp_auth_t **a, in srtp_hmac_alloc() 103 static srtp_err_status_t srtp_hmac_dealloc(srtp_auth_t *a) in srtp_hmac_dealloc() 114 static srtp_err_status_t srtp_hmac_init(void *statev, in srtp_hmac_init() 157 static srtp_err_status_t srtp_hmac_start(void *statev) in srtp_hmac_start() 166 static srtp_err_status_t srtp_hmac_update(void *statev, in srtp_hmac_update() 181 static srtp_err_status_t srtp_hmac_compute(void *statev, in srtp_hmac_compute()
|
D | hmac_ossl.c | 64 static srtp_err_status_t srtp_hmac_alloc(srtp_auth_t **a, in srtp_hmac_alloc() 122 static srtp_err_status_t srtp_hmac_dealloc(srtp_auth_t *a) in srtp_hmac_dealloc() 147 static srtp_err_status_t srtp_hmac_start(void *statev) in srtp_hmac_start() 157 static srtp_err_status_t srtp_hmac_init(void *statev, in srtp_hmac_init() 169 static srtp_err_status_t srtp_hmac_update(void *statev, in srtp_hmac_update() 184 static srtp_err_status_t srtp_hmac_compute(void *statev, in srtp_hmac_compute()
|
/external/libsrtp2/test/ |
D | replay_driver.c | 64 srtp_err_status_t test_rdb_db(void); 70 srtp_err_status_t err; in main() 91 srtp_err_status_t rdb_check_add(srtp_rdb_t *rdb, uint32_t idx) in rdb_check_add() 105 srtp_err_status_t rdb_check_expect_failure(srtp_rdb_t *rdb, uint32_t idx) in rdb_check_expect_failure() 107 srtp_err_status_t err; in rdb_check_expect_failure() 119 srtp_err_status_t rdb_check_add_unordered(srtp_rdb_t *rdb, uint32_t idx) in rdb_check_add_unordered() 121 srtp_err_status_t rstat; in rdb_check_add_unordered() 141 srtp_err_status_t test_rdb_db() in test_rdb_db() 146 srtp_err_status_t err; in test_rdb_db()
|
D | srtp_driver.c | 62 srtp_err_status_t srtp_validate(void); 65 srtp_err_status_t srtp_validate_gcm(void); 68 srtp_err_status_t srtp_validate_encrypted_extensions_headers(void); 71 srtp_err_status_t srtp_validate_encrypted_extensions_headers_gcm(void); 74 srtp_err_status_t srtp_validate_aes_256(void); 76 srtp_err_status_t srtp_create_big_policy(srtp_policy_t **list); 78 srtp_err_status_t srtp_dealloc_big_policy(srtp_policy_t *list); 80 srtp_err_status_t srtp_test_empty_payload(void); 83 srtp_err_status_t srtp_test_empty_payload_gcm(void); 86 srtp_err_status_t srtp_test_remove_stream(void); [all …]
|
D | rdbx_driver.c | 61 srtp_err_status_t test_replay_dbx(int num_trials, unsigned long ws); 74 srtp_err_status_t status; in main() 148 srtp_err_status_t rdbx_check_add(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_add() 180 srtp_err_status_t rdbx_check_expect_failure(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_expect_failure() 184 srtp_err_status_t status; in rdbx_check_expect_failure() 198 srtp_err_status_t rdbx_check_add_unordered(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_add_unordered() 202 srtp_err_status_t rstat; in rdbx_check_add_unordered() 223 srtp_err_status_t test_replay_dbx(int num_trials, unsigned long ws) in test_replay_dbx() 228 srtp_err_status_t status; in test_replay_dbx()
|
/external/libsrtp2/crypto/cipher/ |
D | aes_gcm_nss.c | 79 static srtp_err_status_t srtp_aes_gcm_nss_alloc(srtp_cipher_t **c, in srtp_aes_gcm_nss_alloc() 161 static srtp_err_status_t srtp_aes_gcm_nss_dealloc(srtp_cipher_t *c) in srtp_aes_gcm_nss_dealloc() 194 static srtp_err_status_t srtp_aes_gcm_nss_context_init(void *cv, in srtp_aes_gcm_nss_context_init() 230 static srtp_err_status_t srtp_aes_gcm_nss_set_iv( in srtp_aes_gcm_nss_set_iv() 259 static srtp_err_status_t srtp_aes_gcm_nss_set_aad(void *cv, in srtp_aes_gcm_nss_set_aad() 278 static srtp_err_status_t srtp_aes_gcm_nss_do_crypto(void *cv, in srtp_aes_gcm_nss_do_crypto() 304 srtp_err_status_t status = (srtp_err_status_ok); in srtp_aes_gcm_nss_do_crypto() 325 static srtp_err_status_t srtp_aes_gcm_nss_encrypt(void *cv, in srtp_aes_gcm_nss_encrypt() 344 srtp_err_status_t status = in srtp_aes_gcm_nss_encrypt() 366 static srtp_err_status_t srtp_aes_gcm_nss_get_tag(void *cv, in srtp_aes_gcm_nss_get_tag() [all …]
|
D | null_cipher.c | 57 static srtp_err_status_t srtp_null_cipher_alloc(srtp_cipher_t **c, in srtp_null_cipher_alloc() 83 static srtp_err_status_t srtp_null_cipher_dealloc(srtp_cipher_t *c) in srtp_null_cipher_dealloc() 96 static srtp_err_status_t srtp_null_cipher_init(void *cv, const uint8_t *key) in srtp_null_cipher_init() 105 static srtp_err_status_t srtp_null_cipher_set_iv(void *cv, in srtp_null_cipher_set_iv() 113 static srtp_err_status_t srtp_null_cipher_encrypt(void *cv, in srtp_null_cipher_encrypt()
|
D | aes_gcm_ossl.c | 77 static srtp_err_status_t srtp_aes_gcm_openssl_alloc(srtp_cipher_t **c, in srtp_aes_gcm_openssl_alloc() 148 static srtp_err_status_t srtp_aes_gcm_openssl_dealloc(srtp_cipher_t *c) in srtp_aes_gcm_openssl_dealloc() 172 static srtp_err_status_t srtp_aes_gcm_openssl_context_init(void *cv, in srtp_aes_gcm_openssl_context_init() 207 static srtp_err_status_t srtp_aes_gcm_openssl_set_iv( in srtp_aes_gcm_openssl_set_iv() 243 static srtp_err_status_t srtp_aes_gcm_openssl_set_aad(void *cv, in srtp_aes_gcm_openssl_set_aad() 284 static srtp_err_status_t srtp_aes_gcm_openssl_encrypt(void *cv, in srtp_aes_gcm_openssl_encrypt() 312 static srtp_err_status_t srtp_aes_gcm_openssl_get_tag(void *cv, in srtp_aes_gcm_openssl_get_tag() 343 static srtp_err_status_t srtp_aes_gcm_openssl_decrypt(void *cv, in srtp_aes_gcm_openssl_decrypt()
|
D | cipher.c | 62 srtp_err_status_t srtp_cipher_type_alloc(const srtp_cipher_type_t *ct, in srtp_cipher_type_alloc() 73 srtp_err_status_t srtp_cipher_dealloc(srtp_cipher_t *c) in srtp_cipher_dealloc() 81 srtp_err_status_t srtp_cipher_init(srtp_cipher_t *c, const uint8_t *key) in srtp_cipher_init() 89 srtp_err_status_t srtp_cipher_set_iv(srtp_cipher_t *c, in srtp_cipher_set_iv() 100 srtp_err_status_t srtp_cipher_output(srtp_cipher_t *c, in srtp_cipher_output() 111 srtp_err_status_t srtp_cipher_encrypt(srtp_cipher_t *c, in srtp_cipher_encrypt() 122 srtp_err_status_t srtp_cipher_decrypt(srtp_cipher_t *c, in srtp_cipher_decrypt() 133 srtp_err_status_t srtp_cipher_get_tag(srtp_cipher_t *c, in srtp_cipher_get_tag() 147 srtp_err_status_t srtp_cipher_set_aad(srtp_cipher_t *c, in srtp_cipher_set_aad() 206 srtp_err_status_t srtp_cipher_type_test( in srtp_cipher_type_test() [all …]
|
/external/libsrtp2/srtp/ |
D | srtp.c | 82 static srtp_err_status_t srtp_validate_rtp_header(void *rtp_hdr, in srtp_validate_rtp_header() 152 srtp_err_status_t srtp_stream_dealloc(srtp_stream_ctx_t *stream, in srtp_stream_dealloc() 155 srtp_err_status_t status; in srtp_stream_dealloc() 284 srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, in srtp_stream_alloc() 288 srtp_err_status_t stat; in srtp_stream_alloc() 451 srtp_err_status_t srtp_stream_clone(const srtp_stream_ctx_t *stream_template, in srtp_stream_clone() 455 srtp_err_status_t status; in srtp_stream_clone() 599 static srtp_err_status_t srtp_kdf_init(srtp_kdf_t *kdf, in srtp_kdf_init() 632 static srtp_err_status_t srtp_kdf_generate(srtp_kdf_t *kdf, in srtp_kdf_generate() 658 static srtp_err_status_t srtp_kdf_clear(srtp_kdf_t *kdf) in srtp_kdf_clear() [all …]
|
/external/libsrtp2/crypto/replay/ |
D | rdb.c | 62 srtp_err_status_t srtp_rdb_init(srtp_rdb_t *rdb) in srtp_rdb_init() 72 srtp_err_status_t srtp_rdb_check(const srtp_rdb_t *rdb, uint32_t p_index) in srtp_rdb_check() 101 srtp_err_status_t srtp_rdb_add_index(srtp_rdb_t *rdb, uint32_t p_index) in srtp_rdb_add_index() 125 srtp_err_status_t srtp_rdb_increment(srtp_rdb_t *rdb) in srtp_rdb_increment()
|