diff options
Diffstat (limited to 'src/lib/libcrypto/doc')
| -rw-r--r-- | src/lib/libcrypto/doc/ERR_error_string.pod | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/EVP_DigestInit.pod | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/EVP_EncryptInit.pod | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/EVP_SealInit.pod | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/EVP_SignInit.pod | 17 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/RSA_public_encrypt.pod | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/dsa.pod | 3 |
7 files changed, 19 insertions, 23 deletions
diff --git a/src/lib/libcrypto/doc/ERR_error_string.pod b/src/lib/libcrypto/doc/ERR_error_string.pod index cdfa7fe1fe..e01beb817a 100644 --- a/src/lib/libcrypto/doc/ERR_error_string.pod +++ b/src/lib/libcrypto/doc/ERR_error_string.pod | |||
| @@ -11,7 +11,7 @@ error message | |||
| 11 | #include <openssl/err.h> | 11 | #include <openssl/err.h> |
| 12 | 12 | ||
| 13 | char *ERR_error_string(unsigned long e, char *buf); | 13 | char *ERR_error_string(unsigned long e, char *buf); |
| 14 | void ERR_error_string_n(unsigned long e, char *buf, size_t len); | 14 | char *ERR_error_string_n(unsigned long e, char *buf, size_t len); |
| 15 | 15 | ||
| 16 | const char *ERR_lib_error_string(unsigned long e); | 16 | const char *ERR_lib_error_string(unsigned long e); |
| 17 | const char *ERR_func_error_string(unsigned long e); | 17 | const char *ERR_func_error_string(unsigned long e); |
diff --git a/src/lib/libcrypto/doc/EVP_DigestInit.pod b/src/lib/libcrypto/doc/EVP_DigestInit.pod index 1cb315e739..faa992286b 100644 --- a/src/lib/libcrypto/doc/EVP_DigestInit.pod +++ b/src/lib/libcrypto/doc/EVP_DigestInit.pod | |||
| @@ -236,9 +236,9 @@ even though they are identical digests. | |||
| 236 | 236 | ||
| 237 | =head1 SEE ALSO | 237 | =head1 SEE ALSO |
| 238 | 238 | ||
| 239 | L<evp(3)|evp(3)>, L<hmac(3)|hmac(3)>, L<md2(3)|md2(3)>, | 239 | L<evp(3)|evp(3)>, L<HMAC(3)|HMAC(3)>, L<MD2(3)|MD2(3)>, |
| 240 | L<md5(3)|md5(3)>, L<mdc2(3)|mdc2(3)>, L<ripemd(3)|ripemd(3)>, | 240 | L<MD5(3)|MD5(3)>, L<MDC2(3)|MDC2(3)>, L<RIPEMD160(3)|RIPEMD160(3)>, |
| 241 | L<sha(3)|sha(3)>, L<dgst(1)|dgst(1)> | 241 | L<SHA1(3)|SHA1(3)> |
| 242 | 242 | ||
| 243 | =head1 HISTORY | 243 | =head1 HISTORY |
| 244 | 244 | ||
diff --git a/src/lib/libcrypto/doc/EVP_EncryptInit.pod b/src/lib/libcrypto/doc/EVP_EncryptInit.pod index 40e525dd56..daf57e5895 100644 --- a/src/lib/libcrypto/doc/EVP_EncryptInit.pod +++ b/src/lib/libcrypto/doc/EVP_EncryptInit.pod | |||
| @@ -479,7 +479,6 @@ General encryption, decryption function example using FILE I/O and RC2 with an | |||
| 479 | if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen)) | 479 | if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen)) |
| 480 | { | 480 | { |
| 481 | /* Error */ | 481 | /* Error */ |
| 482 | EVP_CIPHER_CTX_cleanup(&ctx); | ||
| 483 | return 0; | 482 | return 0; |
| 484 | } | 483 | } |
| 485 | fwrite(outbuf, 1, outlen, out); | 484 | fwrite(outbuf, 1, outlen, out); |
| @@ -487,7 +486,6 @@ General encryption, decryption function example using FILE I/O and RC2 with an | |||
| 487 | if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen)) | 486 | if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen)) |
| 488 | { | 487 | { |
| 489 | /* Error */ | 488 | /* Error */ |
| 490 | EVP_CIPHER_CTX_cleanup(&ctx); | ||
| 491 | return 0; | 489 | return 0; |
| 492 | } | 490 | } |
| 493 | fwrite(outbuf, 1, outlen, out); | 491 | fwrite(outbuf, 1, outlen, out); |
diff --git a/src/lib/libcrypto/doc/EVP_SealInit.pod b/src/lib/libcrypto/doc/EVP_SealInit.pod index 48a0e29954..b5e477e294 100644 --- a/src/lib/libcrypto/doc/EVP_SealInit.pod +++ b/src/lib/libcrypto/doc/EVP_SealInit.pod | |||
| @@ -8,9 +8,8 @@ EVP_SealInit, EVP_SealUpdate, EVP_SealFinal - EVP envelope encryption | |||
| 8 | 8 | ||
| 9 | #include <openssl/evp.h> | 9 | #include <openssl/evp.h> |
| 10 | 10 | ||
| 11 | int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | 11 | int EVP_SealInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char **ek, |
| 12 | unsigned char **ek, int *ekl, unsigned char *iv, | 12 | int *ekl, unsigned char *iv,EVP_PKEY **pubk, int npubk); |
| 13 | EVP_PKEY **pubk, int npubk); | ||
| 14 | int EVP_SealUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, | 13 | int EVP_SealUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, |
| 15 | int *outl, unsigned char *in, int inl); | 14 | int *outl, unsigned char *in, int inl); |
| 16 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, | 15 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, |
diff --git a/src/lib/libcrypto/doc/EVP_SignInit.pod b/src/lib/libcrypto/doc/EVP_SignInit.pod index b6e62ce7f6..e65e54ce52 100644 --- a/src/lib/libcrypto/doc/EVP_SignInit.pod +++ b/src/lib/libcrypto/doc/EVP_SignInit.pod | |||
| @@ -29,10 +29,11 @@ EVP_SignUpdate() hashes B<cnt> bytes of data at B<d> into the | |||
| 29 | signature context B<ctx>. This function can be called several times on the | 29 | signature context B<ctx>. This function can be called several times on the |
| 30 | same B<ctx> to include additional data. | 30 | same B<ctx> to include additional data. |
| 31 | 31 | ||
| 32 | EVP_SignFinal() signs the data in B<ctx> using the private key B<pkey> and | 32 | EVP_SignFinal() signs the data in B<ctx> using the private key B<pkey> |
| 33 | places the signature in B<sig>. The number of bytes of data written (i.e. the | 33 | and places the signature in B<sig>. If the B<s> parameter is not NULL |
| 34 | length of the signature) will be written to the integer at B<s>, at most | 34 | then the number of bytes of data written (i.e. the length of the signature) |
| 35 | EVP_PKEY_size(pkey) bytes will be written. | 35 | will be written to the integer at B<s>, at most EVP_PKEY_size(pkey) bytes |
| 36 | will be written. | ||
| 36 | 37 | ||
| 37 | EVP_SignInit() initializes a signing context B<ctx> to use the default | 38 | EVP_SignInit() initializes a signing context B<ctx> to use the default |
| 38 | implementation of digest B<type>. | 39 | implementation of digest B<type>. |
| @@ -80,10 +81,10 @@ EVP_SignUpdate() could not be made after calling EVP_SignFinal(). | |||
| 80 | =head1 SEE ALSO | 81 | =head1 SEE ALSO |
| 81 | 82 | ||
| 82 | L<EVP_VerifyInit(3)|EVP_VerifyInit(3)>, | 83 | L<EVP_VerifyInit(3)|EVP_VerifyInit(3)>, |
| 83 | L<EVP_DigestInit(3)|EVP_DigestInit(3)>, L<err(3)|err(3)>, | 84 | L<EVP_DigestInit(3)|EVP_DigestInit(3)>, L<ERR_get_error(3)|ERR_get_error(3)>, |
| 84 | L<evp(3)|evp(3)>, L<hmac(3)|hmac(3)>, L<md2(3)|md2(3)>, | 85 | L<evp(3)|evp(3)>, L<HMAC(3)|HMAC(3)>, L<MD2(3)|MD2(3)>, |
| 85 | L<md5(3)|md5(3)>, L<mdc2(3)|mdc2(3)>, L<ripemd(3)|ripemd(3)>, | 86 | L<MD5(3)|MD5(3)>, L<MDC2(3)|MDC2(3)>, L<RIPEMD(3)|RIPEMD(3)>, |
| 86 | L<sha(3)|sha(3)>, L<dgst(1)|dgst(1)> | 87 | L<SHA1(3)|SHA1(3)>, L<digest(1)|digest(1)> |
| 87 | 88 | ||
| 88 | =head1 HISTORY | 89 | =head1 HISTORY |
| 89 | 90 | ||
diff --git a/src/lib/libcrypto/doc/RSA_public_encrypt.pod b/src/lib/libcrypto/doc/RSA_public_encrypt.pod index ab0fe3b2cd..d53e19d2b7 100644 --- a/src/lib/libcrypto/doc/RSA_public_encrypt.pod +++ b/src/lib/libcrypto/doc/RSA_public_encrypt.pod | |||
| @@ -47,10 +47,9 @@ Encrypting user data directly with RSA is insecure. | |||
| 47 | =back | 47 | =back |
| 48 | 48 | ||
| 49 | B<flen> must be less than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5 | 49 | B<flen> must be less than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5 |
| 50 | based padding modes, less than RSA_size(B<rsa>) - 41 for | 50 | based padding modes, and less than RSA_size(B<rsa>) - 41 for |
| 51 | RSA_PKCS1_OAEP_PADDING and exactly RSA_size(B<rsa>) for RSA_NO_PADDING. | 51 | RSA_PKCS1_OAEP_PADDING. The random number generator must be seeded |
| 52 | The random number generator must be seeded prior to calling | 52 | prior to calling RSA_public_encrypt(). |
| 53 | RSA_public_encrypt(). | ||
| 54 | 53 | ||
| 55 | RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the | 54 | RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the |
| 56 | private key B<rsa> and stores the plaintext in B<to>. B<to> must point | 55 | private key B<rsa> and stores the plaintext in B<to>. B<to> must point |
diff --git a/src/lib/libcrypto/doc/dsa.pod b/src/lib/libcrypto/doc/dsa.pod index da07d2b930..ae2e5d81f9 100644 --- a/src/lib/libcrypto/doc/dsa.pod +++ b/src/lib/libcrypto/doc/dsa.pod | |||
| @@ -101,8 +101,7 @@ Standard, DSS), ANSI X9.30 | |||
| 101 | =head1 SEE ALSO | 101 | =head1 SEE ALSO |
| 102 | 102 | ||
| 103 | L<bn(3)|bn(3)>, L<dh(3)|dh(3)>, L<err(3)|err(3)>, L<rand(3)|rand(3)>, | 103 | L<bn(3)|bn(3)>, L<dh(3)|dh(3)>, L<err(3)|err(3)>, L<rand(3)|rand(3)>, |
| 104 | L<rsa(3)|rsa(3)>, L<sha(3)|sha(3)>, L<engine(3)|engine(3)>, | 104 | L<rsa(3)|rsa(3)>, L<SHA1(3)|SHA1(3)>, L<DSA_new(3)|DSA_new(3)>, |
| 105 | L<DSA_new(3)|DSA_new(3)>, | ||
| 106 | L<DSA_size(3)|DSA_size(3)>, | 105 | L<DSA_size(3)|DSA_size(3)>, |
| 107 | L<DSA_generate_parameters(3)|DSA_generate_parameters(3)>, | 106 | L<DSA_generate_parameters(3)|DSA_generate_parameters(3)>, |
| 108 | L<DSA_dup_DH(3)|DSA_dup_DH(3)>, | 107 | L<DSA_dup_DH(3)|DSA_dup_DH(3)>, |
