Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Side by Side Diff: srtp/crypto/include/crypto_kernel.h

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Updated to libsrtp 1.5.1 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « srtp/crypto/include/crypto.h ('k') | srtp/crypto/include/crypto_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * crypto_kernel.h 2 * crypto_kernel.h
3 * 3 *
4 * header for the cryptographic kernel 4 * header for the cryptographic kernel
5 * 5 *
6 * David A. McGrew 6 * David A. McGrew
7 * Cisco Systems, Inc. 7 * Cisco Systems, Inc.
8 */ 8 */
9 /* 9 /*
10 * 10 *
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 * key_len octets. Return values are: 214 * key_len octets. Return values are:
215 * 215 *
216 * err_status_ok no problems 216 * err_status_ok no problems
217 * err_status_alloc_fail an allocation failure occured 217 * err_status_alloc_fail an allocation failure occured
218 * err_status_fail couldn't find cipher with identifier 'id' 218 * err_status_fail couldn't find cipher with identifier 'id'
219 */ 219 */
220 220
221 err_status_t 221 err_status_t
222 crypto_kernel_alloc_cipher(cipher_type_id_t id, 222 crypto_kernel_alloc_cipher(cipher_type_id_t id,
223 cipher_pointer_t *cp, 223 cipher_pointer_t *cp,
224 » » » int key_len); 224 » » » int key_len,
225 » » » int tag_len);
225 226
226 /* 227 /*
227 * crypto_kernel_alloc_auth(id, ap, key_len, tag_len); 228 * crypto_kernel_alloc_auth(id, ap, key_len, tag_len);
228 * 229 *
229 * allocates an auth function of type id at location *ap, with key 230 * allocates an auth function of type id at location *ap, with key
230 * length key_len octets and output tag length of tag_len. Return 231 * length key_len octets and output tag length of tag_len. Return
231 * values are: 232 * values are:
232 * 233 *
233 * err_status_ok no problems 234 * err_status_ok no problems
234 * err_status_alloc_fail an allocation failure occured 235 * err_status_alloc_fail an allocation failure occured
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 * - [other] a problem occured, and no assumptions should 272 * - [other] a problem occured, and no assumptions should
272 * be made about the contents of the destination 273 * be made about the contents of the destination
273 * buffer. 274 * buffer.
274 * 275 *
275 * @ingroup SRTP 276 * @ingroup SRTP
276 */ 277 */
277 err_status_t 278 err_status_t
278 crypto_get_random(unsigned char *buffer, unsigned int length); 279 crypto_get_random(unsigned char *buffer, unsigned int length);
279 280
280 #endif /* CRYPTO_KERNEL */ 281 #endif /* CRYPTO_KERNEL */
OLDNEW
« no previous file with comments | « srtp/crypto/include/crypto.h ('k') | srtp/crypto/include/crypto_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698