Lines Matching defs:seed
65 ASN1_BIT_STRING *seed;
142 ASN1_OPT(X9_62_CURVE, seed, ASN1_BIT_STRING)
354 /* set the seed (optional) */
355 if (group->seed) {
356 if (!curve->seed)
357 if ((curve->seed = ASN1_BIT_STRING_new()) == NULL) {
361 curve->seed->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
362 curve->seed->flags |= ASN1_STRING_FLAG_BITS_LEFT;
363 if (!ASN1_BIT_STRING_set(curve->seed, group->seed,
369 ASN1_BIT_STRING_free(curve->seed);
370 curve->seed = NULL;
688 /* extract seed (optional) */
689 if (params->curve->seed != NULL) {
696 if (params->curve->seed->length == 0) {
700 OPENSSL_free(ret->seed);
701 if ((ret->seed = OPENSSL_malloc(params->curve->seed->length)) == NULL) {
705 memcpy(ret->seed, params->curve->seed->data,
706 params->curve->seed->length);
707 ret->seed_len = params->curve->seed->length;
768 * In any case, `seed` is not really used in any computation, while a
817 * If the input params do not contain the optional seed field we make
820 * The seed field is not really used inside libcrypto anyway, and
825 if (params->curve->seed == NULL) {