Home
last modified time | relevance | path

Searched refs:v128_t (Results 1 – 17 of 17) sorted by relevance

/external/libsrtp2/test/
Dtest_srtp.c91 v128_t init_vector; in srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
97 const v128_t zero_vector; in srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
98 memset((v128_t *)&zero_vector, 0, sizeof(v128_t)); in srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
102 memset(&init_vector, 0, sizeof(v128_t)); in srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
112 TEST_CHECK(memcmp(&zero_vector, &init_vector, sizeof(v128_t)) == 0); in srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
119 v128_t init_vector; in srtp_calc_aead_iv_srtcp_seq_num_over_0x7FFFFFFF_bad_param()
128 memset(&init_vector, 0, sizeof(v128_t)); in srtp_calc_aead_iv_srtcp_seq_num_over_0x7FFFFFFF_bad_param()
154 v128_t output_iv[SAMPLE_COUNT]; in srtp_calc_aead_iv_srtcp_distinct_iv_per_sequence_number()
156 v128_t final_iv[SAMPLE_COUNT]; in srtp_calc_aead_iv_srtcp_distinct_iv_per_sequence_number()
158 memset(&output_iv, 0, SAMPLE_COUNT * sizeof(v128_t)); in srtp_calc_aead_iv_srtcp_distinct_iv_per_sequence_number()
[all …]
/external/libsrtp2/crypto/math/
Ddatatypes.c111 char *v128_hex_string(v128_t *x) in v128_hex_string()
124 char *v128_bit_string(v128_t *x) in v128_bit_string()
143 void v128_copy_octet_string(v128_t *x, const uint8_t s[16]) in v128_copy_octet_string()
168 v128_t *v = (v128_t *)&s[0]; in v128_copy_octet_string()
177 void v128_set_to_zero(v128_t *x) in v128_set_to_zero()
182 void v128_copy(v128_t *x, const v128_t *y) in v128_copy()
187 void v128_xor(v128_t *z, v128_t *x, v128_t *y) in v128_xor()
192 void v128_and(v128_t *z, v128_t *x, v128_t *y) in v128_and()
197 void v128_or(v128_t *z, v128_t *x, v128_t *y) in v128_or()
202 void v128_complement(v128_t *x) in v128_complement()
[all …]
/external/libsrtp2/crypto/include/
Ddatatypes.h95 } v128_t; typedef
121 char *v128_bit_string(v128_t *x);
123 char *v128_hex_string(v128_t *x);
125 void v128_copy_octet_string(v128_t *x, const uint8_t s[16]);
127 void v128_left_shift(v128_t *x, int shift_index);
129 void v128_right_shift(v128_t *x, int shift_index);
219 void v128_set_to_zero(v128_t *x);
221 int v128_is_eq(const v128_t *x, const v128_t *y);
223 void v128_copy(v128_t *x, const v128_t *y);
225 void v128_xor(v128_t *z, v128_t *x, v128_t *y);
[all …]
Daes_icm_ext.h58 v128_t counter; /* holds the counter value */
59 v128_t offset; /* initial offset value */
72 v128_t counter;
73 v128_t offset;
Daes_icm.h54 v128_t counter; /* holds the counter value */
55 v128_t offset; /* initial offset value */
56 v128_t keystream_buffer; /* buffers bytes of keystream */
Daes.h59 v128_t round[15];
73 void srtp_aes_encrypt(v128_t *plaintext,
76 void srtp_aes_decrypt(v128_t *plaintext,
Drdb.h64 v128_t bitmask;
67 #define rdb_bits_in_bitmask (8 * sizeof(v128_t))
/external/libsrtp2/crypto/cipher/
Daes.c1561 v128_t tmp; in srtp_aes_expand_decryption_key()
1677 static inline void aes_round(v128_t *state, const v128_t *round_key) in aes_round()
1702 static inline void aes_inv_round(v128_t *state, const v128_t *round_key) in aes_inv_round()
1727 static inline void aes_final_round(v128_t *state, const v128_t *round_key) in aes_final_round()
1763 static inline void aes_inv_final_round(v128_t *state, const v128_t *round_key) in aes_inv_final_round()
1801 static inline void aes_round(v128_t *state, const v128_t *round_key) in aes_round()
1839 static inline void aes_inv_round(v128_t *state, const v128_t *round_key) in aes_inv_round()
1882 static inline void aes_final_round(v128_t *state, const v128_t *round_key) in aes_final_round()
1944 static inline void aes_inv_final_round(v128_t *state, const v128_t *round_key) in aes_inv_final_round()
2008 static inline void aes_round(v128_t *state, const v128_t *round_key) in aes_round()
[all …]
Daes_icm.c239 v128_t nonce; in srtp_aes_icm_set_iv()
268 c->bytes_in_buffer = sizeof(v128_t); in srtp_aes_icm_advance()
311 for (i = (sizeof(v128_t) - c->bytes_in_buffer); in srtp_aes_icm_encrypt()
312 i < (sizeof(v128_t) - c->bytes_in_buffer + bytes_to_encr); i++) { in srtp_aes_icm_encrypt()
323 for (i = (sizeof(v128_t) - c->bytes_in_buffer); i < sizeof(v128_t); in srtp_aes_icm_encrypt()
333 for (i = 0; i < (bytes_to_encr / sizeof(v128_t)); i++) { in srtp_aes_icm_encrypt()
388 c->bytes_in_buffer = sizeof(v128_t) - i; in srtp_aes_icm_encrypt()
Daes_icm_ossl.c271 v128_t nonce; in srtp_aes_icm_openssl_set_iv()
Daes_icm_nss.c276 v128_t nonce; in srtp_aes_icm_nss_set_iv()
Dcipher.c631 v128_t nonce; in srtp_cipher_bits_per_second()
/external/libsrtp2/crypto/test/
Ddatatypes_driver.c74 v128_t x; in main()
150 v128_t e; in byte_order()
Daes_calc.c78 v128_t data; in main()
Dstat_driver.c89 v128_t nonce; in main()
Dcipher_driver.c528 v128_t nonce; in cipher_array_bits_per_second()
/external/libsrtp2/srtp/
Dsrtp.c717 v128_t nonce; in srtp_kdf_generate()
1498 v128_t *iv, in srtp_calc_aead_iv()
1502 v128_t in; in srtp_calc_aead_iv()
1503 v128_t salt; in srtp_calc_aead_iv()
1513 memset(&in, 0, sizeof(v128_t)); in srtp_calc_aead_iv()
1514 memset(&salt, 0, sizeof(v128_t)); in srtp_calc_aead_iv()
1698 v128_t iv; in srtp_protect_aead()
1859 v128_t iv; in srtp_unprotect_aead()
2246 v128_t iv; in srtp_protect_mki()
2263 v128_t iv; in srtp_protect_mki()
[all …]