Searched refs:sha_ctx (Results 1 – 1 of 1) sorted by relevance
/net-tools-latest/mbedtls-2.4.0/programs/aes/ |
D | aescrypt2.c | 89 mbedtls_md_context_t sha_ctx; in main() local 101 mbedtls_md_init( &sha_ctx ); in main() 103 ret = mbedtls_md_setup( &sha_ctx, mbedtls_md_info_from_type( MBEDTLS_MD_SHA256 ), 1 ); in main() 235 mbedtls_md_starts( &sha_ctx ); in main() 236 mbedtls_md_update( &sha_ctx, buffer, 8 ); in main() 237 mbedtls_md_update( &sha_ctx, (unsigned char *) p, strlen( p ) ); in main() 238 mbedtls_md_finish( &sha_ctx, digest ); in main() 269 mbedtls_md_starts( &sha_ctx ); in main() 270 mbedtls_md_update( &sha_ctx, digest, 32 ); in main() 271 mbedtls_md_update( &sha_ctx, key, keylen ); in main() [all …]
|