aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/internal/boring/goboringcrypto.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-08-03 16:46:15 -0400
committerRuss Cox <rsc@golang.org>2017-08-19 03:16:59 +0000
commit7e9e3a06cbeb868988fcbe478365f609b8981398 (patch)
tree551a9290516dd81d2bbf4aed438fe2a5d9b159f4 /src/crypto/internal/boring/goboringcrypto.h
parentbc38fda367998bf4ab4dd3b42635864dc35f3109 (diff)
downloadgo-7e9e3a06cbeb868988fcbe478365f609b8981398.tar.gz
go-7e9e3a06cbeb868988fcbe478365f609b8981398.zip
[dev.boringcrypto] crypto/rsa: use BoringCrypto
Change-Id: Ibb92f0f8cb487f4d179b069e588e1cb266599384 Reviewed-on: https://go-review.googlesource.com/55479 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/crypto/internal/boring/goboringcrypto.h')
-rw-r--r--src/crypto/internal/boring/goboringcrypto.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crypto/internal/boring/goboringcrypto.h b/src/crypto/internal/boring/goboringcrypto.h
index 1a25da9f35..2cc327f16c 100644
--- a/src/crypto/internal/boring/goboringcrypto.h
+++ b/src/crypto/internal/boring/goboringcrypto.h
@@ -177,7 +177,9 @@ size_t _goboringcrypto_ECDSA_size(const GO_EC_KEY*);
int _goboringcrypto_ECDSA_verify(int, const uint8_t*, size_t, const uint8_t*, size_t, const GO_EC_KEY*);
// #include <openssl/rsa.h>
-/*unchecked (opaque)*/ typedef struct GO_RSA { char data[1]; } GO_RSA;
+
+// Note: order of struct fields here is unchecked.
+typedef struct GO_RSA { void *meth; GO_BIGNUM *n, *e, *d, *p, *q, *dmp1, *dmq1, *iqmp; char data[120]; } GO_RSA;
/*unchecked (opaque)*/ typedef struct GO_BN_GENCB { char data[1]; } GO_BN_GENCB;
GO_RSA* _goboringcrypto_RSA_new(void);
void _goboringcrypto_RSA_free(GO_RSA*);