Lines Matching defs:ctx
93 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_gcm_context ) ); in gcm_ctx_alloc() local
106 static void gcm_ctx_free( void *ctx ) in gcm_ctx_free()
117 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ccm_context ) ); in ccm_ctx_alloc() local
130 static void ccm_ctx_free( void *ctx ) in ccm_ctx_free()
139 static int aes_crypt_ecb_wrap( void *ctx, mbedtls_operation_t operation, in aes_crypt_ecb_wrap()
146 static int aes_crypt_cbc_wrap( void *ctx, mbedtls_operation_t operation, size_t length, in aes_crypt_cbc_wrap()
155 static int aes_crypt_cfb128_wrap( void *ctx, mbedtls_operation_t operation, in aes_crypt_cfb128_wrap()
165 static int aes_crypt_ofb_wrap( void *ctx, size_t length, size_t *iv_off, in aes_crypt_ofb_wrap()
174 static int aes_crypt_ctr_wrap( void *ctx, size_t length, size_t *nc_off, in aes_crypt_ctr_wrap()
184 static int aes_crypt_xts_wrap( void *ctx, mbedtls_operation_t operation, in aes_crypt_xts_wrap()
210 static int aes_setkey_dec_wrap( void *ctx, const unsigned char *key, in aes_setkey_dec_wrap()
216 static int aes_setkey_enc_wrap( void *ctx, const unsigned char *key, in aes_setkey_enc_wrap()
239 static void aes_ctx_free( void *ctx ) in aes_ctx_free()
447 static int xts_aes_setkey_enc_wrap( void *ctx, const unsigned char *key, in xts_aes_setkey_enc_wrap()
454 static int xts_aes_setkey_dec_wrap( void *ctx, const unsigned char *key, in xts_aes_setkey_dec_wrap()
471 static void xts_aes_ctx_free( void *ctx ) in xts_aes_ctx_free()
533 static int gcm_aes_setkey_wrap( void *ctx, const unsigned char *key, in gcm_aes_setkey_wrap()
603 static int ccm_aes_setkey_wrap( void *ctx, const unsigned char *key, in ccm_aes_setkey_wrap()
676 static int camellia_crypt_ecb_wrap( void *ctx, mbedtls_operation_t operation, in camellia_crypt_ecb_wrap()
684 static int camellia_crypt_cbc_wrap( void *ctx, mbedtls_operation_t operation, in camellia_crypt_cbc_wrap()
694 static int camellia_crypt_cfb128_wrap( void *ctx, mbedtls_operation_t operation, in camellia_crypt_cfb128_wrap()
704 static int camellia_crypt_ctr_wrap( void *ctx, size_t length, size_t *nc_off, in camellia_crypt_ctr_wrap()
713 static int camellia_setkey_dec_wrap( void *ctx, const unsigned char *key, in camellia_setkey_dec_wrap()
719 static int camellia_setkey_enc_wrap( void *ctx, const unsigned char *key, in camellia_setkey_enc_wrap()
727 mbedtls_camellia_context *ctx; in camellia_ctx_alloc() local
743 static void camellia_ctx_free( void *ctx ) in camellia_ctx_free()
916 static int gcm_camellia_setkey_wrap( void *ctx, const unsigned char *key, in gcm_camellia_setkey_wrap()
986 static int ccm_camellia_setkey_wrap( void *ctx, const unsigned char *key, in ccm_camellia_setkey_wrap()
1059 static int aria_crypt_ecb_wrap( void *ctx, mbedtls_operation_t operation, in aria_crypt_ecb_wrap()
1068 static int aria_crypt_cbc_wrap( void *ctx, mbedtls_operation_t operation, in aria_crypt_cbc_wrap()
1078 static int aria_crypt_cfb128_wrap( void *ctx, mbedtls_operation_t operation, in aria_crypt_cfb128_wrap()
1088 static int aria_crypt_ctr_wrap( void *ctx, size_t length, size_t *nc_off, in aria_crypt_ctr_wrap()
1097 static int aria_setkey_dec_wrap( void *ctx, const unsigned char *key, in aria_setkey_dec_wrap()
1103 static int aria_setkey_enc_wrap( void *ctx, const unsigned char *key, in aria_setkey_enc_wrap()
1111 mbedtls_aria_context *ctx; in aria_ctx_alloc() local
1122 static void aria_ctx_free( void *ctx ) in aria_ctx_free()
1294 static int gcm_aria_setkey_wrap( void *ctx, const unsigned char *key, in gcm_aria_setkey_wrap()
1363 static int ccm_aria_setkey_wrap( void *ctx, const unsigned char *key, in ccm_aria_setkey_wrap()
1435 static int des_crypt_ecb_wrap( void *ctx, mbedtls_operation_t operation, in des_crypt_ecb_wrap()
1442 static int des3_crypt_ecb_wrap( void *ctx, mbedtls_operation_t operation, in des3_crypt_ecb_wrap()
1450 static int des_crypt_cbc_wrap( void *ctx, mbedtls_operation_t operation, size_t length, in des_crypt_cbc_wrap()
1459 static int des3_crypt_cbc_wrap( void *ctx, mbedtls_operation_t operation, size_t length, in des3_crypt_cbc_wrap()
1467 static int des_setkey_dec_wrap( void *ctx, const unsigned char *key, in des_setkey_dec_wrap()
1475 static int des_setkey_enc_wrap( void *ctx, const unsigned char *key, in des_setkey_enc_wrap()
1483 static int des3_set2key_dec_wrap( void *ctx, const unsigned char *key, in des3_set2key_dec_wrap()
1491 static int des3_set2key_enc_wrap( void *ctx, const unsigned char *key, in des3_set2key_enc_wrap()
1499 static int des3_set3key_dec_wrap( void *ctx, const unsigned char *key, in des3_set3key_dec_wrap()
1507 static int des3_set3key_enc_wrap( void *ctx, const unsigned char *key, in des3_set3key_enc_wrap()
1532 static void des_ctx_free( void *ctx ) in des_ctx_free()
1556 static void des3_ctx_free( void *ctx ) in des3_ctx_free()
1720 static int blowfish_crypt_ecb_wrap( void *ctx, mbedtls_operation_t operation, in blowfish_crypt_ecb_wrap()
1728 static int blowfish_crypt_cbc_wrap( void *ctx, mbedtls_operation_t operation, in blowfish_crypt_cbc_wrap()
1738 static int blowfish_crypt_cfb64_wrap( void *ctx, mbedtls_operation_t operation, in blowfish_crypt_cfb64_wrap()
1748 static int blowfish_crypt_ctr_wrap( void *ctx, size_t length, size_t *nc_off, in blowfish_crypt_ctr_wrap()
1757 static int blowfish_setkey_wrap( void *ctx, const unsigned char *key, in blowfish_setkey_wrap()
1765 mbedtls_blowfish_context *ctx; in blowfish_ctx_alloc() local
1781 static void blowfish_ctx_free( void *ctx ) in blowfish_ctx_free()
1867 static int arc4_crypt_stream_wrap( void *ctx, size_t length, in arc4_crypt_stream_wrap()
1874 static int arc4_setkey_wrap( void *ctx, const unsigned char *key, in arc4_setkey_wrap()
1887 mbedtls_arc4_context *ctx; in arc4_ctx_alloc() local
1903 static void arc4_ctx_free( void *ctx ) in arc4_ctx_free()
1951 static int chacha20_setkey_wrap( void *ctx, const unsigned char *key, in chacha20_setkey_wrap()
1963 static int chacha20_stream_wrap( void *ctx, size_t length, in chacha20_stream_wrap()
1978 mbedtls_chacha20_context *ctx; in chacha20_ctx_alloc() local
1994 static void chacha20_ctx_free( void *ctx ) in chacha20_ctx_free()
2041 static int chachapoly_setkey_wrap( void *ctx, in chachapoly_setkey_wrap()
2056 mbedtls_chachapoly_context *ctx; in chachapoly_ctx_alloc() local
2072 static void chachapoly_ctx_free( void *ctx ) in chachapoly_ctx_free()
2118 static int null_crypt_stream( void *ctx, size_t length, in null_crypt_stream()
2127 static int null_setkey( void *ctx, const unsigned char *key, in null_setkey()
2148 static void null_ctx_free( void *ctx ) in null_ctx_free()
2196 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_nist_kw_context ) ); in kw_ctx_alloc() local
2209 static void kw_ctx_free( void *ctx ) in kw_ctx_free()
2215 static int kw_aes_setkey_wrap( void *ctx, const unsigned char *key, in kw_aes_setkey_wrap()
2222 static int kw_aes_setkey_unwrap( void *ctx, const unsigned char *key, in kw_aes_setkey_unwrap()