Lines Matching defs:enckey
86 X509_SIG *enckey;
92 ASN1_SIMPLE(NETSCAPE_ENCRYPTED_PKEY, enckey, X509_SIG)
122 NETSCAPE_ENCRYPTED_PKEY *enckey = NULL;
130 if ((enckey=NETSCAPE_ENCRYPTED_PKEY_new()) == NULL) goto err;
147 enckey->enckey->digest->length = pkeylen;
149 enckey->os->length = 11; /* "private-key" */
151 enckey->enckey->algor->algorithm=OBJ_nid2obj(NID_rc4);
152 if ((enckey->enckey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err;
153 enckey->enckey->algor->parameter->type=V_ASN1_NULL;
157 olen = i2d_NETSCAPE_ENCRYPTED_PKEY(enckey, NULL);
159 NETSCAPE_ENCRYPTED_PKEY_free(enckey);
181 if (!ASN1_STRING_set(enckey->os, "private-key", -1))
186 enckey->enckey->digest->data = zz;
212 zz = enckey->enckey->digest->data;
219 ret = i2d_NETSCAPE_ENCRYPTED_PKEY(enckey, pp);
221 NETSCAPE_ENCRYPTED_PKEY_free(enckey);
236 NETSCAPE_ENCRYPTED_PKEY *enckey = NULL;
240 enckey = d2i_NETSCAPE_ENCRYPTED_PKEY(NULL, &p, length);
241 if(!enckey) {
246 if ((enckey->os->length != 11) || (strncmp("private-key",
247 (char *)enckey->os->data,11) != 0))
250 NETSCAPE_ENCRYPTED_PKEY_free(enckey);
253 if (OBJ_obj2nid(enckey->enckey->algor->algorithm) != NID_rc4)
258 kp = enckey->enckey->digest->data;
261 if ((ret=d2i_RSA_NET_2(a, enckey->enckey->digest,cb, sgckey)) == NULL) goto err;
266 NETSCAPE_ENCRYPTED_PKEY_free(enckey);