Searched refs:des_ctx (Results 1 – 3 of 3) sorted by relevance
/optee_os/lib/libmbedtls/core/ |
A D | des_ecb.c | 19 mbedtls_des_context des_ctx; member 45 mbedtls_des_init(&c->des_ctx); in mbed_des_ecb_init() 48 mbed_res = mbedtls_des_setkey_enc(&c->des_ctx, key1); in mbed_des_ecb_init() 50 mbed_res = mbedtls_des_setkey_dec(&c->des_ctx, key1); in mbed_des_ecb_init() 71 if (mbedtls_des_crypt_ecb(&c->des_ctx, data + offs, dst + offs)) in mbed_des_ecb_update() 80 mbedtls_des_free(&to_des_ecb_ctx(ctx)->des_ctx); in mbed_des_ecb_final() 94 dst->des_ctx = src->des_ctx; in mbed_des_ecb_copy_state()
|
A D | des_cbc.c | 20 mbedtls_des_context des_ctx; member 50 mbedtls_des_init(&c->des_ctx); in mbed_des_cbc_init() 54 mbed_res = mbedtls_des_setkey_enc(&c->des_ctx, key1); in mbed_des_cbc_init() 57 mbed_res = mbedtls_des_setkey_dec(&c->des_ctx, key1); in mbed_des_cbc_init() 73 if (mbedtls_des_crypt_cbc(&c->des_ctx, c->mbed_mode, len, c->iv, in mbed_des_cbc_update() 82 mbedtls_des_free(&to_des_cbc_ctx(ctx)->des_ctx); in mbed_des_cbc_final() 98 dst->des_ctx = src->des_ctx; in mbed_des_cbc_copy_state()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | pem.c | 142 mbedtls_des_context des_ctx; in pem_des_decrypt() local 146 mbedtls_des_init( &des_ctx ); in pem_des_decrypt() 151 if( ( ret = mbedtls_des_setkey_dec( &des_ctx, des_key ) ) != 0 ) in pem_des_decrypt() 153 ret = mbedtls_des_crypt_cbc( &des_ctx, MBEDTLS_DES_DECRYPT, buflen, in pem_des_decrypt() 157 mbedtls_des_free( &des_ctx ); in pem_des_decrypt()
|
Completed in 5 milliseconds