Home
last modified time | relevance | path

Searched refs:add_len (Results 1 – 25 of 26) sorted by relevance

12

/optee_os/lib/libmbedtls/mbedtls/library/
A Dccm.c178 if( add_len >= 0xFF00 ) in ccm_auth_crypt()
196 b[0] |= ( add_len > 0 ) << 6; in ccm_auth_crypt()
217 if( add_len > 0 ) in ccm_auth_crypt()
220 len_left = add_len; in ccm_auth_crypt()
224 b[0] = (unsigned char)( ( add_len >> 8 ) & 0xFF ); in ccm_auth_crypt()
328 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
344 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_encrypt_and_tag()
352 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_encrypt_and_tag()
371 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_star_auth_decrypt()
377 iv, iv_len, add, add_len, in mbedtls_ccm_star_auth_decrypt()
[all …]
A Dhmac_drbg.c64 size_t add_len ) in mbedtls_hmac_drbg_update_ret() argument
67 unsigned char rounds = ( additional != NULL && add_len != 0 ) ? 2 : 1; in mbedtls_hmac_drbg_update_ret()
86 additional, add_len ) ) != 0 ) in mbedtls_hmac_drbg_update_ret()
110 size_t add_len ) in mbedtls_hmac_drbg_update() argument
112 (void) mbedtls_hmac_drbg_update_ret( ctx, additional, add_len ); in mbedtls_hmac_drbg_update()
330 const unsigned char *additional, size_t add_len ) in mbedtls_hmac_drbg_random_with_add() argument
343 if( add_len > MBEDTLS_HMAC_DRBG_MAX_INPUT ) in mbedtls_hmac_drbg_random_with_add()
354 add_len = 0; /* VII.4 */ in mbedtls_hmac_drbg_random_with_add()
358 if( additional != NULL && add_len != 0 ) in mbedtls_hmac_drbg_random_with_add()
361 additional, add_len ) ) != 0 ) in mbedtls_hmac_drbg_random_with_add()
[all …]
A Dgcm.c276 size_t add_len ) in mbedtls_gcm_starts() argument
286 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_gcm_starts()
292 ( (uint64_t) add_len ) >> 61 != 0 ) in mbedtls_gcm_starts()
302 ctx->add_len = 0; in mbedtls_gcm_starts()
340 ctx->add_len = add_len; in mbedtls_gcm_starts()
342 while( add_len > 0 ) in mbedtls_gcm_starts()
344 use_len = ( add_len < 16 ) ? add_len : 16; in mbedtls_gcm_starts()
351 add_len -= use_len; in mbedtls_gcm_starts()
434 orig_add_len = ctx->add_len * 8; in mbedtls_gcm_finish()
468 size_t add_len, in mbedtls_gcm_crypt_and_tag() argument
[all …]
A Dctr_drbg.c320 size_t add_len ) in mbedtls_ctr_drbg_update_ret() argument
325 if( add_len == 0 ) in mbedtls_ctr_drbg_update_ret()
328 if( ( ret = block_cipher_df( add_input, additional, add_len ) ) != 0 ) in mbedtls_ctr_drbg_update_ret()
341 size_t add_len ) in mbedtls_ctr_drbg_update() argument
345 if( add_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in mbedtls_ctr_drbg_update()
346 add_len = MBEDTLS_CTR_DRBG_MAX_SEED_INPUT; in mbedtls_ctr_drbg_update()
347 (void) mbedtls_ctr_drbg_update_ret( ctx, additional, add_len ); in mbedtls_ctr_drbg_update()
532 if( add_len > MBEDTLS_CTR_DRBG_MAX_INPUT ) in mbedtls_ctr_drbg_random_with_add()
544 add_len = 0; in mbedtls_ctr_drbg_random_with_add()
547 if( add_len > 0 ) in mbedtls_ctr_drbg_random_with_add()
[all …]
A Dpem.c439 size_t len = 0, use_len, add_len = 0; in mbedtls_pem_write_buffer() local
442 add_len = strlen( header ) + strlen( footer ) + ( use_len / 64 ) + 1; in mbedtls_pem_write_buffer()
444 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer()
446 *olen = use_len + add_len; in mbedtls_pem_write_buffer()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dccm.h160 const unsigned char *add, size_t add_len,
208 const unsigned char *add, size_t add_len,
245 const unsigned char *add, size_t add_len,
290 const unsigned char *add, size_t add_len,
A Dgcm.h69 uint64_t add_len; /*!< The total length of the additional data. */ member
174 size_t add_len,
218 size_t add_len,
246 size_t add_len );
A Dhmac_drbg.h298 const unsigned char *additional, size_t add_len );
361 size_t add_len );
420 const unsigned char *additional, size_t add_len );
A Dctr_drbg.h467 size_t add_len );
502 const unsigned char *additional, size_t add_len );
556 size_t add_len );
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dccm.h160 const unsigned char *add, size_t add_len,
208 const unsigned char *add, size_t add_len,
245 const unsigned char *add, size_t add_len,
290 const unsigned char *add, size_t add_len,
A Dgcm.h69 uint64_t add_len; /*!< The total length of the additional data. */ member
174 size_t add_len,
218 size_t add_len,
246 size_t add_len );
A Dhmac_drbg.h298 const unsigned char *additional, size_t add_len );
361 size_t add_len );
420 const unsigned char *additional, size_t add_len );
A Dctr_drbg.h467 size_t add_len );
502 const unsigned char *additional, size_t add_len );
556 size_t add_len );
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dccm.h160 const unsigned char *add, size_t add_len,
208 const unsigned char *add, size_t add_len,
245 const unsigned char *add, size_t add_len,
290 const unsigned char *add, size_t add_len,
A Dgcm.h69 uint64_t add_len; /*!< The total length of the additional data. */ member
174 size_t add_len,
218 size_t add_len,
246 size_t add_len );
A Dhmac_drbg.h298 const unsigned char *additional, size_t add_len );
361 size_t add_len );
420 const unsigned char *additional, size_t add_len );
A Dctr_drbg.h467 size_t add_len );
502 const unsigned char *additional, size_t add_len );
556 size_t add_len );
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dccm.h160 const unsigned char *add, size_t add_len,
208 const unsigned char *add, size_t add_len,
245 const unsigned char *add, size_t add_len,
290 const unsigned char *add, size_t add_len,
A Dgcm.h69 uint64_t add_len; /*!< The total length of the additional data. */ member
174 size_t add_len,
218 size_t add_len,
246 size_t add_len );
A Dhmac_drbg.h298 const unsigned char *additional, size_t add_len );
361 size_t add_len );
420 const unsigned char *additional, size_t add_len );
A Dctr_drbg.h467 size_t add_len );
502 const unsigned char *additional, size_t add_len );
556 size_t add_len );
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dccm.h160 const unsigned char *add, size_t add_len,
208 const unsigned char *add, size_t add_len,
245 const unsigned char *add, size_t add_len,
290 const unsigned char *add, size_t add_len,
A Dgcm.h69 uint64_t add_len; /*!< The total length of the additional data. */ member
174 size_t add_len,
218 size_t add_len,
246 size_t add_len );
A Dhmac_drbg.h298 const unsigned char *additional, size_t add_len );
361 size_t add_len );
420 const unsigned char *additional, size_t add_len );
A Dctr_drbg.h467 size_t add_len );
502 const unsigned char *additional, size_t add_len );
556 size_t add_len );

Completed in 48 milliseconds

12