OLD | NEW |
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 Loading... |
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 Loading... |
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 */ |
OLD | NEW |