diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/man/ASN1_item_verify.3 | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/lib/libcrypto/man/ASN1_item_verify.3 b/src/lib/libcrypto/man/ASN1_item_verify.3 deleted file mode 100644 index d2810879e3..0000000000 --- a/src/lib/libcrypto/man/ASN1_item_verify.3 +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | .\" $OpenBSD: ASN1_item_verify.3,v 1.3 2021/12/18 17:47:44 schwarze Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | ||
4 | .\" | ||
5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
7 | .\" copyright notice and this permission notice appear in all copies. | ||
8 | .\" | ||
9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | .\" | ||
17 | .Dd $Mdocdate: December 18 2021 $ | ||
18 | .Dt ASN1_ITEM_VERIFY 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm ASN1_item_verify | ||
22 | .Nd signature verification for ASN.1 values | ||
23 | .Sh SYNOPSIS | ||
24 | .In openssl/x509.h | ||
25 | .Ft int | ||
26 | .Fo ASN1_item_verify | ||
27 | .Fa "const ASN1_ITEM *it" | ||
28 | .Fa "X509_ALGOR *algor1" | ||
29 | .Fa "ASN1_BIT_STRING *sig_in" | ||
30 | .Fa "void *val_in" | ||
31 | .Fa "EVP_PKEY *pkey" | ||
32 | .Fc | ||
33 | .Sh DESCRIPTION | ||
34 | .Fn ASN1_item_verify | ||
35 | assumes that | ||
36 | .Fa val_in | ||
37 | is an | ||
38 | .Ft ASN1_VALUE | ||
39 | of the type specified by | ||
40 | .Fa it , | ||
41 | encodes it into DER format by calling | ||
42 | .Xr ASN1_item_i2d 3 , | ||
43 | and verifies in a way similar to | ||
44 | .Xr EVP_DigestVerify 3 | ||
45 | that | ||
46 | .Fa sig_in | ||
47 | contains a valid signature of the resulting byte array, | ||
48 | a signature that was created with the signature algorithm | ||
49 | .Fa algor1 | ||
50 | and the private key corresponding to the public key | ||
51 | .Fa pkey . | ||
52 | .Sh RETURN VALUES | ||
53 | .Fn ASN1_item_verify | ||
54 | returns 1 if signature verification succeeds, 0 if signature verification | ||
55 | fails, or \-1 if | ||
56 | .Fa pkey | ||
57 | is | ||
58 | .Dv NULL , | ||
59 | if | ||
60 | .Fa sig_in | ||
61 | contains invalid flags, or if | ||
62 | .Fa algor1 | ||
63 | requests an invalid or unsupported digest algorithm | ||
64 | or does not work with the given | ||
65 | .Fa pkey . | ||
66 | .Sh SEE ALSO | ||
67 | .Xr ASN1_BIT_STRING_new 3 , | ||
68 | .Xr ASN1_item_i2d 3 , | ||
69 | .Xr ASN1_item_sign 3 , | ||
70 | .Xr EVP_DigestVerify 3 , | ||
71 | .Xr EVP_PKEY_new 3 , | ||
72 | .Xr OBJ_find_sigid_algs 3 , | ||
73 | .Xr X509_ALGOR_new 3 | ||
74 | .Sh HISTORY | ||
75 | .Fn ASN1_item_verify | ||
76 | first appeared in OpenSSL 0.9.7 and has been available since | ||
77 | .Ox 3.1 . | ||