1RSA_sign_ASN1_OCTET_STRING(3) OpenSSL RSA_sign_ASN1_OCTET_STRING(3)
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 int RSA_sign_ASN1_OCTET_STRING(int dummy, unsigned char *m,
13 unsigned int m_len, unsigned char *sigret, unsigned int *siglen,
14 RSA *rsa);
15
16 int RSA_verify_ASN1_OCTET_STRING(int dummy, unsigned char *m,
17 unsigned int m_len, unsigned char *sigbuf, unsigned int siglen,
18 RSA *rsa);
19
21 RSA_sign_ASN1_OCTET_STRING() signs the octet string m of size m_len
22 using the private key rsa represented in DER using PKCS #1 padding. It
23 stores the signature in sigret and the signature size in siglen. sigret
24 must point to RSA_size(rsa) bytes of memory.
25
26 dummy is ignored.
27
28 The random number generator must be seeded prior to calling
29 RSA_sign_ASN1_OCTET_STRING().
30
31 RSA_verify_ASN1_OCTET_STRING() verifies that the signature sigbuf of
32 size siglen is the DER representation of a given octet string m of size
33 m_len. dummy is ignored. rsa is the signer's public key.
34
36 RSA_sign_ASN1_OCTET_STRING() returns 1 on success, 0 otherwise.
37 RSA_verify_ASN1_OCTET_STRING() returns 1 on successful verification, 0
38 otherwise.
39
40 The error codes can be obtained by ERR_get_error(3).
41
43 These functions serve no recognizable purpose.
44
46 ERR_get_error(3), objects(3), rand(3), rsa(3), RSA_sign(3),
47 RSA_verify(3)
48
50 RSA_sign_ASN1_OCTET_STRING() and RSA_verify_ASN1_OCTET_STRING() were
51 added in SSLeay 0.8.
52
53
54
551.0.2o 2019-09-10 RSA_sign_ASN1_OCTET_STRING(3)