Grid Community Toolkit  6.2.1629922860 (tag: v6.2.20210826)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
common.h
1 /* $OpenBSD: common.h,v 1.2 2018/09/13 09:03:20 djm Exp $ */
2 /*
3  * Helpers for key API tests
4  *
5  * Placed in the public domain
6  */
7 
8 /* Load a binary file into a buffer */
9 struct sshbuf *load_file(const char *name);
10 
11 /* Load a text file into a buffer */
12 struct sshbuf *load_text_file(const char *name);
13 
14 /* Load a bignum from a file */
15 BIGNUM *load_bignum(const char *name);
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