Searched refs:des3_ctx (Results 1 – 3 of 3) sorted by relevance
/optee_os/lib/libmbedtls/core/ |
A D | des3_ecb.c | 19 mbedtls_des3_context des3_ctx; member 46 mbedtls_des3_init(&c->des3_ctx); in mbed_des3_ecb_init() 50 mbed_res = mbedtls_des3_set3key_enc(&c->des3_ctx, key1); in mbed_des3_ecb_init() 52 mbed_res = mbedtls_des3_set3key_dec(&c->des3_ctx, key1); in mbed_des3_ecb_init() 55 mbed_res = mbedtls_des3_set2key_enc(&c->des3_ctx, key1); in mbed_des3_ecb_init() 57 mbed_res = mbedtls_des3_set2key_dec(&c->des3_ctx, key1); in mbed_des3_ecb_init() 79 if (mbedtls_des3_crypt_ecb(&c->des3_ctx, data + offs, in mbed_des3_ecb_update() 89 mbedtls_des3_free(&to_des3_ecb_ctx(ctx)->des3_ctx); in mbed_des3_ecb_final() 103 dst->des3_ctx = src->des3_ctx; in mbed_des3_ecb_copy_state()
|
A D | des3_cbc.c | 20 mbedtls_des3_context des3_ctx; member 51 mbedtls_des3_init(&c->des3_ctx); in mbed_des3_cbc_init() 56 mbed_res = mbedtls_des3_set3key_enc(&c->des3_ctx, key1); in mbed_des3_cbc_init() 58 mbed_res = mbedtls_des3_set2key_enc(&c->des3_ctx, key1); in mbed_des3_cbc_init() 62 mbed_res = mbedtls_des3_set3key_dec(&c->des3_ctx, key1); in mbed_des3_cbc_init() 64 mbed_res = mbedtls_des3_set2key_dec(&c->des3_ctx, key1); in mbed_des3_cbc_init() 80 if (mbedtls_des3_crypt_cbc(&c->des3_ctx, c->mbed_mode, len, c->iv, in mbed_des3_cbc_update() 89 mbedtls_des3_free(&to_des3_cbc_ctx(ctx)->des3_ctx); in mbed_des3_cbc_final() 105 dst->des3_ctx = src->des3_ctx; in mbed_des3_cbc_copy_state()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | pem.c | 170 mbedtls_des3_context des3_ctx; in pem_des3_decrypt() local 174 mbedtls_des3_init( &des3_ctx ); in pem_des3_decrypt() 179 if( ( ret = mbedtls_des3_set3key_dec( &des3_ctx, des3_key ) ) != 0 ) in pem_des3_decrypt() 181 ret = mbedtls_des3_crypt_cbc( &des3_ctx, MBEDTLS_DES_DECRYPT, buflen, in pem_des3_decrypt() 185 mbedtls_des3_free( &des3_ctx ); in pem_des3_decrypt()
|
Completed in 9 milliseconds