Lines Matching refs:xts_ctx
226 mbedtls_aes_xts_context *xts_ctx = ctx; in aes_crypt_xts_wrap() local
240 return mbedtls_aes_crypt_xts(xts_ctx, mode, length, in aes_crypt_xts_wrap()
500 mbedtls_aes_xts_context *xts_ctx = ctx; in xts_aes_setkey_enc_wrap() local
501 return mbedtls_aes_xts_setkey_enc(xts_ctx, key, key_bitlen); in xts_aes_setkey_enc_wrap()
507 mbedtls_aes_xts_context *xts_ctx = ctx; in xts_aes_setkey_dec_wrap() local
508 return mbedtls_aes_xts_setkey_dec(xts_ctx, key, key_bitlen); in xts_aes_setkey_dec_wrap()
513 mbedtls_aes_xts_context *xts_ctx = mbedtls_calloc(1, sizeof(*xts_ctx)); in xts_aes_ctx_alloc() local
515 if (xts_ctx != NULL) { in xts_aes_ctx_alloc()
516 mbedtls_aes_xts_init(xts_ctx); in xts_aes_ctx_alloc()
519 return xts_ctx; in xts_aes_ctx_alloc()
524 mbedtls_aes_xts_context *xts_ctx = ctx; in xts_aes_ctx_free() local
526 if (xts_ctx == NULL) { in xts_aes_ctx_free()
530 mbedtls_aes_xts_free(xts_ctx); in xts_aes_ctx_free()
531 mbedtls_free(xts_ctx); in xts_aes_ctx_free()