Lines Matching refs:xts_ctx
166 mbedtls_aes_xts_context *xts_ctx = ctx; in aes_crypt_xts_wrap() local
180 return mbedtls_aes_crypt_xts(xts_ctx, mode, length, in aes_crypt_xts_wrap()
420 mbedtls_aes_xts_context *xts_ctx = ctx; in xts_aes_setkey_enc_wrap() local
421 return mbedtls_aes_xts_setkey_enc(xts_ctx, key, key_bitlen); in xts_aes_setkey_enc_wrap()
427 mbedtls_aes_xts_context *xts_ctx = ctx; in xts_aes_setkey_dec_wrap() local
428 return mbedtls_aes_xts_setkey_dec(xts_ctx, key, key_bitlen); in xts_aes_setkey_dec_wrap()
433 mbedtls_aes_xts_context *xts_ctx = mbedtls_calloc(1, sizeof(*xts_ctx)); in xts_aes_ctx_alloc() local
435 if (xts_ctx != NULL) { in xts_aes_ctx_alloc()
436 mbedtls_aes_xts_init(xts_ctx); in xts_aes_ctx_alloc()
439 return xts_ctx; in xts_aes_ctx_alloc()
444 mbedtls_aes_xts_context *xts_ctx = ctx; in xts_aes_ctx_free() local
446 if (xts_ctx == NULL) { in xts_aes_ctx_free()
450 mbedtls_aes_xts_free(xts_ctx); in xts_aes_ctx_free()
451 mbedtls_free(xts_ctx); in xts_aes_ctx_free()