Lines Matching defs:cipher
26 CIPHER *cipher;
53 * Must create the shared information. We need: Shared cipher
57 if ((ret = __env_alloc(infop, sizeof(CIPHER), &cipher)) != 0)
59 memset(cipher, 0, sizeof(*cipher));
62 __env_alloc_free(infop, cipher);
66 cipher->passwd = R_OFFSET(infop, sh_passwd);
67 cipher->passwd_len = dbenv->passwd_len;
68 cipher->flags = db_cipher->alg;
69 memcpy(sh_passwd, dbenv->passwd, cipher->passwd_len);
70 renv->cipher_off = R_OFFSET(infop, cipher);
77 cipher = R_ADDR(infop, renv->cipher_off);
78 sh_passwd = R_ADDR(infop, cipher->passwd);
79 if ((cipher->passwd_len != dbenv->passwd_len) ||
80 memcmp(dbenv->passwd, sh_passwd, cipher->passwd_len) != 0) {
85 db_cipher->alg != cipher->flags) {
93 * env. Setup our cipher structure for whatever
97 cipher->flags, 0)) != 0)
160 CIPHER *cipher;
173 cipher = R_ADDR(infop, renv->cipher_off);
174 __env_alloc_free(infop, R_ADDR(infop, cipher->passwd));
175 __env_alloc_free(infop, cipher);
199 __db_errx(env, "No cipher structure given");
388 CIPHER *cipher;
398 cipher = R_ADDR(infop, renv->cipher_off);
399 sh_passwd = R_ADDR(infop, cipher->passwd);