Lines Matching defs:ctx

125     void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context));  in gcm_ctx_alloc()  local
139 static void gcm_ctx_free(void *ctx) in gcm_ctx_free()
152 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ccm_context)); in ccm_ctx_alloc() local
166 static void ccm_ctx_free(void *ctx) in ccm_ctx_free()
175 static int aes_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_ecb_wrap()
182 static int aes_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in aes_crypt_cbc_wrap()
191 static int aes_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_cfb128_wrap()
201 static int aes_crypt_ofb_wrap(void *ctx, size_t length, size_t *iv_off, in aes_crypt_ofb_wrap()
210 static int aes_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aes_crypt_ctr_wrap()
220 static int aes_crypt_xts_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_xts_wrap()
246 static int aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in aes_setkey_dec_wrap()
253 static int aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in aes_setkey_enc_wrap()
277 static void aes_ctx_free(void *ctx) in aes_ctx_free()
497 static int xts_aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_enc_wrap()
504 static int xts_aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_dec_wrap()
522 static void xts_aes_ctx_free(void *ctx) in xts_aes_ctx_free()
588 static int gcm_aes_setkey_wrap(void *ctx, const unsigned char *key, in gcm_aes_setkey_wrap()
673 static int ccm_aes_setkey_wrap(void *ctx, const unsigned char *key, in ccm_aes_setkey_wrap()
797 static int camellia_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_ecb_wrap()
805 static int camellia_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_cbc_wrap()
815 static int camellia_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in camellia_crypt_cfb128_wrap()
825 static int camellia_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in camellia_crypt_ctr_wrap()
835 static int camellia_setkey_dec_wrap(void *ctx, const unsigned char *key, in camellia_setkey_dec_wrap()
842 static int camellia_setkey_enc_wrap(void *ctx, const unsigned char *key, in camellia_setkey_enc_wrap()
850 mbedtls_camellia_context *ctx; in camellia_ctx_alloc() local
867 static void camellia_ctx_free(void *ctx) in camellia_ctx_free()
1042 static int gcm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in gcm_camellia_setkey_wrap()
1114 static int ccm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in ccm_camellia_setkey_wrap()
1222 static int aria_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_ecb_wrap()
1231 static int aria_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_cbc_wrap()
1241 static int aria_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aria_crypt_cfb128_wrap()
1251 static int aria_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aria_crypt_ctr_wrap()
1261 static int aria_setkey_dec_wrap(void *ctx, const unsigned char *key, in aria_setkey_dec_wrap()
1268 static int aria_setkey_enc_wrap(void *ctx, const unsigned char *key, in aria_setkey_enc_wrap()
1276 mbedtls_aria_context *ctx; in aria_ctx_alloc() local
1288 static void aria_ctx_free(void *ctx) in aria_ctx_free()
1462 static int gcm_aria_setkey_wrap(void *ctx, const unsigned char *key, in gcm_aria_setkey_wrap()
1533 static int ccm_aria_setkey_wrap(void *ctx, const unsigned char *key, in ccm_aria_setkey_wrap()
1640 static int des_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in des_crypt_ecb_wrap()
1647 static int des3_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in des3_crypt_ecb_wrap()
1655 static int des_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in des_crypt_cbc_wrap()
1664 static int des3_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in des3_crypt_cbc_wrap()
1672 static int des_setkey_dec_wrap(void *ctx, const unsigned char *key, in des_setkey_dec_wrap()
1680 static int des_setkey_enc_wrap(void *ctx, const unsigned char *key, in des_setkey_enc_wrap()
1688 static int des3_set2key_dec_wrap(void *ctx, const unsigned char *key, in des3_set2key_dec_wrap()
1696 static int des3_set2key_enc_wrap(void *ctx, const unsigned char *key, in des3_set2key_enc_wrap()
1704 static int des3_set3key_dec_wrap(void *ctx, const unsigned char *key, in des3_set3key_dec_wrap()
1712 static int des3_set3key_enc_wrap(void *ctx, const unsigned char *key, in des3_set3key_enc_wrap()
1738 static void des_ctx_free(void *ctx) in des_ctx_free()
1763 static void des3_ctx_free(void *ctx) in des3_ctx_free()
1927 static int chacha20_setkey_wrap(void *ctx, const unsigned char *key, in chacha20_setkey_wrap()
1941 static int chacha20_stream_wrap(void *ctx, size_t length, in chacha20_stream_wrap()
1957 mbedtls_chacha20_context *ctx; in chacha20_ctx_alloc() local
1974 static void chacha20_ctx_free(void *ctx) in chacha20_ctx_free()
2023 static int chachapoly_setkey_wrap(void *ctx, in chachapoly_setkey_wrap()
2040 mbedtls_chachapoly_context *ctx; in chachapoly_ctx_alloc() local
2057 static void chachapoly_ctx_free(void *ctx) in chachapoly_ctx_free()
2105 static int null_crypt_stream(void *ctx, size_t length, in null_crypt_stream()
2114 static int null_setkey(void *ctx, const unsigned char *key, in null_setkey()
2135 static void null_ctx_free(void *ctx) in null_ctx_free()
2185 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_nist_kw_context)); in kw_ctx_alloc() local
2199 static void kw_ctx_free(void *ctx) in kw_ctx_free()
2205 static int kw_aes_setkey_wrap(void *ctx, const unsigned char *key, in kw_aes_setkey_wrap()
2212 static int kw_aes_setkey_unwrap(void *ctx, const unsigned char *key, in kw_aes_setkey_unwrap()