dh.h (325335) | dh.h (325337) |
---|---|
1/* crypto/dh/dh.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 243 unchanged lines hidden (view full) --- 252int DHparams_print(char *bp, const DH *x); 253# endif 254 255/* RFC 5114 parameters */ 256DH *DH_get_1024_160(void); 257DH *DH_get_2048_224(void); 258DH *DH_get_2048_256(void); 259 | 1/* crypto/dh/dh.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 243 unchanged lines hidden (view full) --- 252int DHparams_print(char *bp, const DH *x); 253# endif 254 255/* RFC 5114 parameters */ 256DH *DH_get_1024_160(void); 257DH *DH_get_2048_224(void); 258DH *DH_get_2048_256(void); 259 |
260# ifndef OPENSSL_NO_CMS |
|
260/* RFC2631 KDF */ 261int DH_KDF_X9_42(unsigned char *out, size_t outlen, 262 const unsigned char *Z, size_t Zlen, 263 ASN1_OBJECT *key_oid, 264 const unsigned char *ukm, size_t ukmlen, const EVP_MD *md); | 261/* RFC2631 KDF */ 262int DH_KDF_X9_42(unsigned char *out, size_t outlen, 263 const unsigned char *Z, size_t Zlen, 264 ASN1_OBJECT *key_oid, 265 const unsigned char *ukm, size_t ukmlen, const EVP_MD *md); |
266# endif |
|
265 266# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \ 267 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ 268 EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL) 269 270# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \ 271 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ 272 EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL) --- 138 unchanged lines hidden --- | 267 268# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \ 269 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ 270 EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL) 271 272# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \ 273 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ 274 EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL) --- 138 unchanged lines hidden --- |