Lines Matching refs:cih

664                        gcry_cipher_hd_t *cih)  in read_cipher_pkcs5_pbe()  argument
676 g_return_val_if_fail (cih != NULL, FALSE); in read_cipher_pkcs5_pbe()
679 *cih = NULL; in read_cipher_pkcs5_pbe()
707 gcry = gcry_cipher_open (cih, cipher_algo, cipher_mode, 0); in read_cipher_pkcs5_pbe()
714 gcry_cipher_setiv (*cih, iv, n_block); in read_cipher_pkcs5_pbe()
715 gcry_cipher_setkey (*cih, key, n_key); in read_cipher_pkcs5_pbe()
732 gcry_cipher_hd_t cih) in setup_pkcs5_rc2_params() argument
753 gcry = gcry_cipher_setiv (cih, g_bytes_get_data (iv, NULL), g_bytes_get_size (iv)); in setup_pkcs5_rc2_params()
771 gcry_cipher_hd_t cih) in setup_pkcs5_des_params() argument
792 gcry = gcry_cipher_setiv (cih, g_bytes_get_data (iv, NULL), g_bytes_get_size (iv)); in setup_pkcs5_des_params()
809 gcry_cipher_hd_t cih) in setup_pkcs5_pbkdf2_params() argument
842 gcry = gcry_cipher_setkey (cih, key, n_key); in setup_pkcs5_pbkdf2_params()
862 gcry_cipher_hd_t *cih) in read_cipher_pkcs5_pbes2() argument
871 g_return_val_if_fail (cih != NULL, FALSE); in read_cipher_pkcs5_pbes2()
876 *cih = NULL; in read_cipher_pkcs5_pbes2()
903 gcry = gcry_cipher_open (cih, algo, GCRY_CIPHER_MODE_CBC, 0); in read_cipher_pkcs5_pbes2()
916 r = setup_pkcs5_des_params (params, *cih); in read_cipher_pkcs5_pbes2()
920 r = setup_pkcs5_rc2_params (params, *cih); in read_cipher_pkcs5_pbes2()
946 ret = setup_pkcs5_pbkdf2_params (password, n_password, params, algo, *cih); in read_cipher_pkcs5_pbes2()
949 if (ret != TRUE && *cih) { in read_cipher_pkcs5_pbes2()
950 gcry_cipher_close (*cih); in read_cipher_pkcs5_pbes2()
951 *cih = NULL; in read_cipher_pkcs5_pbes2()
964 gcry_cipher_hd_t *cih) in read_cipher_pkcs12_pbe() argument
976 g_return_val_if_fail (cih != NULL, FALSE); in read_cipher_pkcs12_pbe()
979 *cih = NULL; in read_cipher_pkcs12_pbe()
1004 gcry = gcry_cipher_open (cih, cipher_algo, cipher_mode, 0); in read_cipher_pkcs12_pbe()
1011 gcry_cipher_setiv (*cih, iv, n_block); in read_cipher_pkcs12_pbe()
1012 gcry_cipher_setkey (*cih, key, n_key); in read_cipher_pkcs12_pbe()
1017 if (ret != TRUE && *cih) { in read_cipher_pkcs12_pbe()
1018 gcry_cipher_close (*cih); in read_cipher_pkcs12_pbe()
1019 *cih = NULL; in read_cipher_pkcs12_pbe()
1108 gcry_cipher_hd_t *cih) in egg_symkey_read_cipher() argument
1113 g_return_val_if_fail (cih != NULL, FALSE); in egg_symkey_read_cipher()
1121 GCRY_MD_MD2, password, n_password, data, cih); in egg_symkey_read_cipher()
1128 GCRY_MD_MD5, password, n_password, data, cih); in egg_symkey_read_cipher()
1134 GCRY_MD_SHA1, password, n_password, data, cih); in egg_symkey_read_cipher()
1141 ret = read_cipher_pkcs5_pbes2 (password, n_password, data, cih); in egg_symkey_read_cipher()
1147 password, n_password, data, cih); in egg_symkey_read_cipher()
1153 password, n_password, data, cih); in egg_symkey_read_cipher()
1159 password, n_password, data, cih); in egg_symkey_read_cipher()
1163 password, n_password, data, cih); in egg_symkey_read_cipher()