Lines Matching refs:enckey
86 X509_SIG *enckey;
92 ASN1_SIMPLE(NETSCAPE_ENCRYPTED_PKEY, enckey, X509_SIG)
128 NETSCAPE_ENCRYPTED_PKEY *enckey = NULL;
136 if ((enckey=NETSCAPE_ENCRYPTED_PKEY_new()) == NULL) goto err;
153 enckey->enckey->digest->length = pkeylen;
155 enckey->os->length = 11; /* "private-key" */
157 enckey->enckey->algor->algorithm=OBJ_nid2obj(NID_rc4);
158 if ((enckey->enckey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err;
159 enckey->enckey->algor->parameter->type=V_ASN1_NULL;
163 olen = i2d_NETSCAPE_ENCRYPTED_PKEY(enckey, NULL);
165 NETSCAPE_ENCRYPTED_PKEY_free(enckey);
187 if (!ASN1_STRING_set(enckey->os, "private-key", -1))
192 enckey->enckey->digest->data = zz;
218 zz = enckey->enckey->digest->data;
225 ret = i2d_NETSCAPE_ENCRYPTED_PKEY(enckey, pp);
227 NETSCAPE_ENCRYPTED_PKEY_free(enckey);
246 NETSCAPE_ENCRYPTED_PKEY *enckey = NULL;
250 enckey = d2i_NETSCAPE_ENCRYPTED_PKEY(NULL, &p, length);
251 if(!enckey) {
256 if ((enckey->os->length != 11) || (strncmp("private-key",
257 (char *)enckey->os->data,11) != 0))
260 NETSCAPE_ENCRYPTED_PKEY_free(enckey);
263 if (OBJ_obj2nid(enckey->enckey->algor->algorithm) != NID_rc4)
268 kp = enckey->enckey->digest->data;
271 if ((ret=d2i_RSA_NET_2(a, enckey->enckey->digest,cb, sgckey)) == NULL) goto err;
276 NETSCAPE_ENCRYPTED_PKEY_free(enckey);