Lines Matching defs:ctx

121     void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context));  in gcm_ctx_alloc()  local
130 static void gcm_ctx_free(void *ctx) in gcm_ctx_free()
141 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ccm_context)); in ccm_ctx_alloc() local
150 static void ccm_ctx_free(void *ctx) in ccm_ctx_free()
159 static int aes_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_ecb_wrap()
166 static int aes_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in aes_crypt_cbc_wrap()
175 static int aes_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_cfb128_wrap()
185 static int aes_crypt_ofb_wrap(void *ctx, size_t length, size_t *iv_off, in aes_crypt_ofb_wrap()
194 static int aes_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aes_crypt_ctr_wrap()
204 static int aes_crypt_xts_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_xts_wrap()
229 static int aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in aes_setkey_dec_wrap()
235 static int aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in aes_setkey_enc_wrap()
254 static void aes_ctx_free(void *ctx) in aes_ctx_free()
471 static int xts_aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_enc_wrap()
478 static int xts_aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_dec_wrap()
496 static void xts_aes_ctx_free(void *ctx) in xts_aes_ctx_free()
561 static int gcm_aes_setkey_wrap(void *ctx, const unsigned char *key, in gcm_aes_setkey_wrap()
632 static int ccm_aes_setkey_wrap(void *ctx, const unsigned char *key, in ccm_aes_setkey_wrap()
741 static int camellia_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_ecb_wrap()
749 static int camellia_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_cbc_wrap()
759 static int camellia_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_cfb128_wrap()
769 static int camellia_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in camellia_crypt_ctr_wrap()
778 static int camellia_setkey_dec_wrap(void *ctx, const unsigned char *key, in camellia_setkey_dec_wrap()
784 static int camellia_setkey_enc_wrap(void *ctx, const unsigned char *key, in camellia_setkey_enc_wrap()
792 mbedtls_camellia_context *ctx; in camellia_ctx_alloc() local
804 static void camellia_ctx_free(void *ctx) in camellia_ctx_free()
976 static int gcm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in gcm_camellia_setkey_wrap()
1045 static int ccm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in ccm_camellia_setkey_wrap()
1150 static int aria_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_ecb_wrap()
1159 static int aria_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_cbc_wrap()
1169 static int aria_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_cfb128_wrap()
1179 static int aria_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aria_crypt_ctr_wrap()
1188 static int aria_setkey_dec_wrap(void *ctx, const unsigned char *key, in aria_setkey_dec_wrap()
1194 static int aria_setkey_enc_wrap(void *ctx, const unsigned char *key, in aria_setkey_enc_wrap()
1202 mbedtls_aria_context *ctx; in aria_ctx_alloc() local
1214 static void aria_ctx_free(void *ctx) in aria_ctx_free()
1386 static int gcm_aria_setkey_wrap(void *ctx, const unsigned char *key, in gcm_aria_setkey_wrap()
1455 static int ccm_aria_setkey_wrap(void *ctx, const unsigned char *key, in ccm_aria_setkey_wrap()
1560 static int des_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in des_crypt_ecb_wrap()
1567 static int des3_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in des3_crypt_ecb_wrap()
1575 static int des_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in des_crypt_cbc_wrap()
1584 static int des3_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in des3_crypt_cbc_wrap()
1592 static int des_setkey_dec_wrap(void *ctx, const unsigned char *key, in des_setkey_dec_wrap()
1600 static int des_setkey_enc_wrap(void *ctx, const unsigned char *key, in des_setkey_enc_wrap()
1608 static int des3_set2key_dec_wrap(void *ctx, const unsigned char *key, in des3_set2key_dec_wrap()
1616 static int des3_set2key_enc_wrap(void *ctx, const unsigned char *key, in des3_set2key_enc_wrap()
1624 static int des3_set3key_dec_wrap(void *ctx, const unsigned char *key, in des3_set3key_dec_wrap()
1632 static int des3_set3key_enc_wrap(void *ctx, const unsigned char *key, in des3_set3key_enc_wrap()
1653 static void des_ctx_free(void *ctx) in des_ctx_free()
1673 static void des3_ctx_free(void *ctx) in des3_ctx_free()
1834 static int chacha20_setkey_wrap(void *ctx, const unsigned char *key, in chacha20_setkey_wrap()
1848 static int chacha20_stream_wrap(void *ctx, size_t length, in chacha20_stream_wrap()
1864 mbedtls_chacha20_context *ctx; in chacha20_ctx_alloc() local
1876 static void chacha20_ctx_free(void *ctx) in chacha20_ctx_free()
1922 static int chachapoly_setkey_wrap(void *ctx, in chachapoly_setkey_wrap()
1939 mbedtls_chachapoly_context *ctx; in chachapoly_ctx_alloc() local
1951 static void chachapoly_ctx_free(void *ctx) in chachapoly_ctx_free()
1996 static int null_crypt_stream(void *ctx, size_t length, in null_crypt_stream()
2005 static int null_setkey(void *ctx, const unsigned char *key, in null_setkey()
2020 static void null_ctx_free(void *ctx) in null_ctx_free()
2067 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_nist_kw_context)); in kw_ctx_alloc() local
2076 static void kw_ctx_free(void *ctx) in kw_ctx_free()
2082 static int kw_aes_setkey_wrap(void *ctx, const unsigned char *key, in kw_aes_setkey_wrap()
2089 static int kw_aes_setkey_unwrap(void *ctx, const unsigned char *key, in kw_aes_setkey_unwrap()