1RSA_SIGN_ASN1_OCTET_STRING(3ossl) OpenSSL RSA_SIGN_ASN1_OCTET_STRING(3ossl)
2
3
4
6 RSA_sign_ASN1_OCTET_STRING, RSA_verify_ASN1_OCTET_STRING - RSA
7 signatures
8
10 #include <openssl/rsa.h>
11
12 The following functions have been deprecated since OpenSSL 3.0, and can
13 be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
14 version value, see openssl_user_macros(7):
15
16 int RSA_sign_ASN1_OCTET_STRING(int dummy, unsigned char *m,
17 unsigned int m_len, unsigned char *sigret,
18 unsigned int *siglen, RSA *rsa);
19
20 int RSA_verify_ASN1_OCTET_STRING(int dummy, unsigned char *m,
21 unsigned int m_len, unsigned char *sigbuf,
22 unsigned int siglen, RSA *rsa);
23
25 All of the functions described on this page are deprecated.
26 Applications should instead use EVP PKEY APIs.
27
28 RSA_sign_ASN1_OCTET_STRING() signs the octet string m of size m_len
29 using the private key rsa represented in DER using PKCS #1 padding. It
30 stores the signature in sigret and the signature size in siglen. sigret
31 must point to RSA_size(rsa) bytes of memory.
32
33 dummy is ignored.
34
35 The random number generator must be seeded when calling
36 RSA_sign_ASN1_OCTET_STRING(). If the automatic seeding or reseeding of
37 the OpenSSL CSPRNG fails due to external circumstances (see RAND(7)),
38 the operation will fail.
39
40 RSA_verify_ASN1_OCTET_STRING() verifies that the signature sigbuf of
41 size siglen is the DER representation of a given octet string m of size
42 m_len. dummy is ignored. rsa is the signer's public key.
43
45 RSA_sign_ASN1_OCTET_STRING() returns 1 on success, 0 otherwise.
46 RSA_verify_ASN1_OCTET_STRING() returns 1 on successful verification, 0
47 otherwise.
48
49 The error codes can be obtained by ERR_get_error(3).
50
52 These functions serve no recognizable purpose.
53
55 ERR_get_error(3), RAND_bytes(3), RSA_sign(3), RSA_verify(3), RAND(7)
56
58 All of these functions were deprecated in OpenSSL 3.0.
59
61 Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
62
63 Licensed under the Apache License 2.0 (the "License"). You may not use
64 this file except in compliance with the License. You can obtain a copy
65 in the file LICENSE in the source distribution or at
66 <https://www.openssl.org/source/license.html>.
67
68
69
703.0.5 2022-11-01 RSA_SIGN_ASN1_OCTET_STRING(3ossl)