Lines Matching defs:ctx
123 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context)); in gcm_ctx_alloc() local
132 static void gcm_ctx_free(void *ctx) in gcm_ctx_free()
145 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ccm_context)); in ccm_ctx_alloc() local
154 static void ccm_ctx_free(void *ctx) in ccm_ctx_free()
163 static int aes_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_ecb_wrap()
170 static int aes_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in aes_crypt_cbc_wrap()
179 static int aes_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_cfb128_wrap()
189 static int aes_crypt_ofb_wrap(void *ctx, size_t length, size_t *iv_off, in aes_crypt_ofb_wrap()
198 static int aes_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aes_crypt_ctr_wrap()
208 static int aes_crypt_xts_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_xts_wrap()
234 static int aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in aes_setkey_dec_wrap()
241 static int aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in aes_setkey_enc_wrap()
260 static void aes_ctx_free(void *ctx) in aes_ctx_free()
479 static int xts_aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_enc_wrap()
486 static int xts_aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_dec_wrap()
504 static void xts_aes_ctx_free(void *ctx) in xts_aes_ctx_free()
570 static int gcm_aes_setkey_wrap(void *ctx, const unsigned char *key, in gcm_aes_setkey_wrap()
654 static int ccm_aes_setkey_wrap(void *ctx, const unsigned char *key, in ccm_aes_setkey_wrap()
777 static int camellia_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_ecb_wrap()
785 static int camellia_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_cbc_wrap()
795 static int camellia_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_cfb128_wrap()
805 static int camellia_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in camellia_crypt_ctr_wrap()
815 static int camellia_setkey_dec_wrap(void *ctx, const unsigned char *key, in camellia_setkey_dec_wrap()
822 static int camellia_setkey_enc_wrap(void *ctx, const unsigned char *key, in camellia_setkey_enc_wrap()
830 mbedtls_camellia_context *ctx; in camellia_ctx_alloc() local
842 static void camellia_ctx_free(void *ctx) in camellia_ctx_free()
1016 static int gcm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in gcm_camellia_setkey_wrap()
1087 static int ccm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in ccm_camellia_setkey_wrap()
1194 static int aria_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_ecb_wrap()
1203 static int aria_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_cbc_wrap()
1213 static int aria_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_cfb128_wrap()
1223 static int aria_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aria_crypt_ctr_wrap()
1233 static int aria_setkey_dec_wrap(void *ctx, const unsigned char *key, in aria_setkey_dec_wrap()
1240 static int aria_setkey_enc_wrap(void *ctx, const unsigned char *key, in aria_setkey_enc_wrap()
1248 mbedtls_aria_context *ctx; in aria_ctx_alloc() local
1260 static void aria_ctx_free(void *ctx) in aria_ctx_free()
1434 static int gcm_aria_setkey_wrap(void *ctx, const unsigned char *key, in gcm_aria_setkey_wrap()
1505 static int ccm_aria_setkey_wrap(void *ctx, const unsigned char *key, in ccm_aria_setkey_wrap()
1612 static int des_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in des_crypt_ecb_wrap()
1619 static int des3_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in des3_crypt_ecb_wrap()
1627 static int des_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in des_crypt_cbc_wrap()
1636 static int des3_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in des3_crypt_cbc_wrap()
1644 static int des_setkey_dec_wrap(void *ctx, const unsigned char *key, in des_setkey_dec_wrap()
1652 static int des_setkey_enc_wrap(void *ctx, const unsigned char *key, in des_setkey_enc_wrap()
1660 static int des3_set2key_dec_wrap(void *ctx, const unsigned char *key, in des3_set2key_dec_wrap()
1668 static int des3_set2key_enc_wrap(void *ctx, const unsigned char *key, in des3_set2key_enc_wrap()
1676 static int des3_set3key_dec_wrap(void *ctx, const unsigned char *key, in des3_set3key_dec_wrap()
1684 static int des3_set3key_enc_wrap(void *ctx, const unsigned char *key, in des3_set3key_enc_wrap()
1705 static void des_ctx_free(void *ctx) in des_ctx_free()
1725 static void des3_ctx_free(void *ctx) in des3_ctx_free()
1886 static int chacha20_setkey_wrap(void *ctx, const unsigned char *key, in chacha20_setkey_wrap()
1900 static int chacha20_stream_wrap(void *ctx, size_t length, in chacha20_stream_wrap()
1916 mbedtls_chacha20_context *ctx; in chacha20_ctx_alloc() local
1928 static void chacha20_ctx_free(void *ctx) in chacha20_ctx_free()
1976 static int chachapoly_setkey_wrap(void *ctx, in chachapoly_setkey_wrap()
1993 mbedtls_chachapoly_context *ctx; in chachapoly_ctx_alloc() local
2005 static void chachapoly_ctx_free(void *ctx) in chachapoly_ctx_free()
2052 static int null_crypt_stream(void *ctx, size_t length, in null_crypt_stream()
2061 static int null_setkey(void *ctx, const unsigned char *key, in null_setkey()
2076 static void null_ctx_free(void *ctx) in null_ctx_free()
2125 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_nist_kw_context)); in kw_ctx_alloc() local
2134 static void kw_ctx_free(void *ctx) in kw_ctx_free()
2140 static int kw_aes_setkey_wrap(void *ctx, const unsigned char *key, in kw_aes_setkey_wrap()
2147 static int kw_aes_setkey_unwrap(void *ctx, const unsigned char *key, in kw_aes_setkey_unwrap()