From 72aa50a79b99bb1eb57a2668b1c437b1adecbabb Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Thu, 9 Mar 2023 23:31:56 +0100 Subject: [PATCH] Fix some links --- R/pkcs7.R | 2 +- R/rsa.R | 2 +- man/pkcs7.Rd | 2 +- man/rsa_encrypt.Rd | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/pkcs7.R b/R/pkcs7.R index 1a214b5..11b555f 100644 --- a/R/pkcs7.R +++ b/R/pkcs7.R @@ -23,7 +23,7 @@ pkcs7_encrypt <- function(message, cert, pem = TRUE){ #' @export #' @rdname pkcs7 -#' @seealso encrypt_envelope +#' @seealso [encrypt_envelope] #' @param input file path or string with PEM or raw vector with p7b data #' @param key private key to decrypt data #' @param der assume input is in DER format (rather than PEM) diff --git a/R/rsa.R b/R/rsa.R index 4b315b1..404abd1 100644 --- a/R/rsa.R +++ b/R/rsa.R @@ -3,7 +3,7 @@ #' Asymmetric encryption and decryption with RSA. Because RSA can only encrypt messages #' smaller than the size of the key, it is typically used only for exchanging a random #' session-key. This session key is used to encipher arbitrary sized data via a stream -#' cipher such as [aes_cbc]. See [encrypt_envelope()] for a high-level +#' cipher such as [aes_cbc]. See [encrypt_envelope] or [pkcs7_encrypt] for a high-level #' wrappers combining RSA and AES in this way. #' #' @export diff --git a/man/pkcs7.Rd b/man/pkcs7.Rd index c654a68..74a1f0a 100644 --- a/man/pkcs7.Rd +++ b/man/pkcs7.Rd @@ -27,5 +27,5 @@ Encrypt or decrypt messages using PKCS7 smime format. Note PKCS7 only supports RSA keys. } \seealso{ -encrypt_envelope +\link{encrypt_envelope} } diff --git a/man/rsa_encrypt.Rd b/man/rsa_encrypt.Rd index d55c32f..4127f02 100644 --- a/man/rsa_encrypt.Rd +++ b/man/rsa_encrypt.Rd @@ -24,7 +24,7 @@ rsa_decrypt(data, key = my_key(), password = askpass) Asymmetric encryption and decryption with RSA. Because RSA can only encrypt messages smaller than the size of the key, it is typically used only for exchanging a random session-key. This session key is used to encipher arbitrary sized data via a stream -cipher such as \link{aes_cbc}. See \code{\link[=encrypt_envelope]{encrypt_envelope()}} for a high-level +cipher such as \link{aes_cbc}. See \link{encrypt_envelope} or \link{pkcs7_encrypt} for a high-level wrappers combining RSA and AES in this way. } \examples{