diff options
author | Stefan Lippers-Hollmann <s.l-h@gmx.de> | 2014-06-29 23:35:18 +0000 |
---|---|---|
committer | Andrew Shadura <andrewsh@debian.org> | 2016-07-20 23:00:56 +0200 |
commit | 7ea3403faef12dfe4f6ee746c3e21306b4dc4460 (patch) | |
tree | 86895ee3abcf12175f860392e51f145fdb51c0d9 /src/crypto/crypto.h | |
parent | 3a03694454bbec18114240b108a0af232133766b (diff) |
Imported Upstream version 2.2
Diffstat (limited to 'src/crypto/crypto.h')
-rw-r--r-- | src/crypto/crypto.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h index 9bccaaa..f2d5662 100644 --- a/src/crypto/crypto.h +++ b/src/crypto/crypto.h @@ -271,6 +271,10 @@ struct crypto_private_key; */ struct crypto_public_key * crypto_public_key_import(const u8 *key, size_t len); +struct crypto_public_key * +crypto_public_key_import_parts(const u8 *n, size_t n_len, + const u8 *e, size_t e_len); + /** * crypto_private_key_import - Import an RSA private key * @key: Key buffer (DER encoded RSA private key) @@ -534,16 +538,6 @@ int crypto_bignum_exptmod(const struct crypto_bignum *a, struct crypto_bignum *d); /** - * crypto_bignum_rshift - b = a >> n - * @a: Bignum - * @n: Number of bits to shift - * @b: Bignum; used to store the result of a >> n - * Returns: 0 on success, -1 on failure - */ -int crypto_bignum_rshift(const struct crypto_bignum *a, int n, - struct crypto_bignum *b); - -/** * crypto_bignum_inverse - Inverse a bignum so that a * c = 1 (mod b) * @a: Bignum * @b: Bignum |