diff options
Diffstat (limited to 'regress/unittests/sshkey/common.h')
-rw-r--r-- | regress/unittests/sshkey/common.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/regress/unittests/sshkey/common.h b/regress/unittests/sshkey/common.h index bf7d19dce..7a514fdc8 100644 --- a/regress/unittests/sshkey/common.h +++ b/regress/unittests/sshkey/common.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: common.h,v 1.1 2014/06/24 01:14:18 djm Exp $ */ | 1 | /* $OpenBSD: common.h,v 1.2 2018/09/13 09:03:20 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Helpers for key API tests | 3 | * Helpers for key API tests |
4 | * | 4 | * |
@@ -14,3 +14,12 @@ struct sshbuf *load_text_file(const char *name); | |||
14 | /* Load a bignum from a file */ | 14 | /* Load a bignum from a file */ |
15 | BIGNUM *load_bignum(const char *name); | 15 | BIGNUM *load_bignum(const char *name); |
16 | 16 | ||
17 | /* Accessors for key components */ | ||
18 | const BIGNUM *rsa_n(struct sshkey *k); | ||
19 | const BIGNUM *rsa_e(struct sshkey *k); | ||
20 | const BIGNUM *rsa_p(struct sshkey *k); | ||
21 | const BIGNUM *rsa_q(struct sshkey *k); | ||
22 | const BIGNUM *dsa_g(struct sshkey *k); | ||
23 | const BIGNUM *dsa_pub_key(struct sshkey *k); | ||
24 | const BIGNUM *dsa_priv_key(struct sshkey *k); | ||
25 | |||