003 File Manager
Current Path:
/usr/src/crypto/openssh/regress/unittests/sshkey
usr
/
src
/
crypto
/
openssh
/
regress
/
unittests
/
sshkey
/
📁
..
📄
Makefile
(762 B)
📄
common.c
(2.88 KB)
📄
common.h
(698 B)
📄
mktestdata.sh
(5.93 KB)
📄
test_file.c
(11.63 KB)
📄
test_fuzz.c
(9.44 KB)
📄
test_sshkey.c
(14.12 KB)
📁
testdata
📄
tests.c
(461 B)
Editing: common.h
/* $OpenBSD: common.h,v 1.2 2018/09/13 09:03:20 djm Exp $ */ /* * Helpers for key API tests * * Placed in the public domain */ /* Load a binary file into a buffer */ struct sshbuf *load_file(const char *name); /* Load a text file into a buffer */ struct sshbuf *load_text_file(const char *name); /* Load a bignum from a file */ BIGNUM *load_bignum(const char *name); /* Accessors for key components */ const BIGNUM *rsa_n(struct sshkey *k); const BIGNUM *rsa_e(struct sshkey *k); const BIGNUM *rsa_p(struct sshkey *k); const BIGNUM *rsa_q(struct sshkey *k); const BIGNUM *dsa_g(struct sshkey *k); const BIGNUM *dsa_pub_key(struct sshkey *k); const BIGNUM *dsa_priv_key(struct sshkey *k);
Upload File
Create Folder