1RSA_SIGN_ASN1_OCTET_STRING(3)       OpenSSL      RSA_SIGN_ASN1_OCTET_STRING(3)
2
3
4

NAME

6       RSA_sign_ASN1_OCTET_STRING, RSA_verify_ASN1_OCTET_STRING - RSA
7       signatures
8

SYNOPSIS

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,
14                                       unsigned int *siglen, RSA *rsa);
15
16        int RSA_verify_ASN1_OCTET_STRING(int dummy, unsigned char *m,
17                                         unsigned int m_len, unsigned char *sigbuf,
18                                         unsigned int siglen, RSA *rsa);
19

DESCRIPTION

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

RETURN VALUES

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

BUGS

43       These functions serve no recognizable purpose.
44

SEE ALSO

46       ERR_get_error(3), RAND_bytes(3), RSA_sign(3), RSA_verify(3)
47
49       Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
50
51       Licensed under the OpenSSL license (the "License").  You may not use
52       this file except in compliance with the License.  You can obtain a copy
53       in the file LICENSE in the source distribution or at
54       <https://www.openssl.org/source/license.html>.
55
56
57
581.1.1                             2018-09-11     RSA_SIGN_ASN1_OCTET_STRING(3)
Impressum