Lines Matching defs:cipher
26 CIPHER *cipher;
53 * Must create the shared information. We need: Shared cipher
58 if ((ret = __env_alloc(infop, sizeof(CIPHER), &cipher)) != 0) {
62 memset(cipher, 0, sizeof(*cipher));
65 __env_alloc_free(infop, cipher);
71 cipher->passwd = R_OFFSET(infop, sh_passwd);
72 cipher->passwd_len = dbenv->passwd_len;
73 cipher->flags = db_cipher->alg;
74 memcpy(sh_passwd, dbenv->passwd, cipher->passwd_len);
75 renv->cipher_off = R_OFFSET(infop, cipher);
82 cipher = R_ADDR(infop, renv->cipher_off);
83 sh_passwd = R_ADDR(infop, cipher->passwd);
84 if ((cipher->passwd_len != dbenv->passwd_len) ||
85 memcmp(dbenv->passwd, sh_passwd, cipher->passwd_len) != 0) {
90 db_cipher->alg != cipher->flags) {
98 * env. Setup our cipher structure for whatever
102 cipher->flags, 0)) != 0)
165 CIPHER *cipher;
178 cipher = R_ADDR(infop, renv->cipher_off);
180 __env_alloc_free(infop, R_ADDR(infop, cipher->passwd));
181 __env_alloc_free(infop, cipher);
206 __db_errx(env, "No cipher structure given");
395 CIPHER *cipher;
405 cipher = R_ADDR(infop, renv->cipher_off);
406 sh_passwd = R_ADDR(infop, cipher->passwd);