setkey is already defined on HP/UX.
This commit is contained in:
parent
cf54f06dcb
commit
80be2f484f
@ -1,3 +1,3 @@
|
|||||||
SHA1(fips_rsa_eay.c)= 945cac757aecfad5a3c6bfcd4db7c384e51342f5
|
SHA1(fips_rsa_eay.c)= 945cac757aecfad5a3c6bfcd4db7c384e51342f5
|
||||||
SHA1(fips_rsa_gen.c)= 4367cb3840db0df5b50846a198c33911c28ab2f4
|
SHA1(fips_rsa_gen.c)= 4367cb3840db0df5b50846a198c33911c28ab2f4
|
||||||
SHA1(fips_rsa_selftest.c)= b77290943c00293b1671d098a219763dcfa7f6d8
|
SHA1(fips_rsa_selftest.c)= f0a9683b29b3e231067f840424727413e811cbfc
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \
|
memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \
|
||||||
return (sizeof(ctext_ex) - 1);
|
return (sizeof(ctext_ex) - 1);
|
||||||
|
|
||||||
static int setkey(RSA *key, unsigned char *c)
|
static int setrsakey(RSA *key, unsigned char *c)
|
||||||
{
|
{
|
||||||
static unsigned char n[] =
|
static unsigned char n[] =
|
||||||
"\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
|
"\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
|
||||||
@ -157,7 +157,7 @@ int FIPS_selftest_rsa()
|
|||||||
int n;
|
int n;
|
||||||
|
|
||||||
key=RSA_new();
|
key=RSA_new();
|
||||||
clen=setkey(key,expected_ctext);
|
clen=setrsakey(key,expected_ctext);
|
||||||
n=RSA_public_encrypt(sizeof(original_ptext)-1,original_ptext,ctext,key,
|
n=RSA_public_encrypt(sizeof(original_ptext)-1,original_ptext,ctext,key,
|
||||||
RSA_NO_PADDING);
|
RSA_NO_PADDING);
|
||||||
if(n < 0)
|
if(n < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user