diff options
author | Adam Langley <agl@google.com> | 2015-03-31 18:58:05 -0700 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-02 11:32:06 -0700 |
commit | f7e890d94bfb2ecad87621eed301e1897b5a6aef (patch) | |
tree | c712592a9ab361adf49b2c4500859307828aa910 /src/crypto | |
parent | f40f42df67fffec64967b000e4fdad4b435611a5 (diff) | |
download | external_boringssl-f7e890d94bfb2ecad87621eed301e1897b5a6aef.zip external_boringssl-f7e890d94bfb2ecad87621eed301e1897b5a6aef.tar.gz external_boringssl-f7e890d94bfb2ecad87621eed301e1897b5a6aef.tar.bz2 |
Add compatibility functions for OpenSSH.
Change-Id: I2fcb67fea859220e7e7bbbdb5dd910fb847c5600
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/ec/ec.c | 10 | ||||
-rw-r--r-- | src/crypto/ec/ec_key.c | 2 | ||||
-rw-r--r-- | src/crypto/rand/rand.c | 4 | ||||
-rw-r--r-- | src/crypto/rsa/rsa.c | 4 |
4 files changed, 20 insertions, 0 deletions
diff --git a/src/crypto/ec/ec.c b/src/crypto/ec/ec.c index 30def15..7d16f2c 100644 --- a/src/crypto/ec/ec.c +++ b/src/crypto/ec/ec.c @@ -853,3 +853,13 @@ int ec_point_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *po return group->meth->point_set_Jprojective_coordinates_GFp(group, point, x, y, z, ctx); } + +void EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag) {} + +const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group) { + return NULL; +} + +int EC_METHOD_get_field_type(const EC_METHOD *meth) { + return NID_X9_62_prime_field; +} diff --git a/src/crypto/ec/ec_key.c b/src/crypto/ec/ec_key.c index c8f0624..471ea9c 100644 --- a/src/crypto/ec/ec_key.c +++ b/src/crypto/ec/ec_key.c @@ -514,3 +514,5 @@ int EC_KEY_set_ex_data(EC_KEY *d, int idx, void *arg) { void *EC_KEY_get_ex_data(const EC_KEY *d, int idx) { return CRYPTO_get_ex_data(&d->ex_data, idx); } + +void EC_KEY_set_asn1_flag(EC_KEY *key, int flag) {} diff --git a/src/crypto/rand/rand.c b/src/crypto/rand/rand.c index 6780b6c..efd6c0a 100644 --- a/src/crypto/rand/rand.c +++ b/src/crypto/rand/rand.c @@ -26,3 +26,7 @@ void RAND_add(const void *buf, int num, double entropy) {} int RAND_poll(void) { return 1; } + +int RAND_status(void) { + return 1; +} diff --git a/src/crypto/rsa/rsa.c b/src/crypto/rsa/rsa.c index cfdd7ff..66002cc 100644 --- a/src/crypto/rsa/rsa.c +++ b/src/crypto/rsa/rsa.c @@ -759,3 +759,7 @@ int RSA_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, return RSA_default_method.private_transform(rsa, out, in, len); } + +int RSA_blinding_on(RSA *rsa, BN_CTX *ctx) { + return 1; +} |