Module x509.algor
x509.algor module to mapping X509_ALGOR to lua object.
Usage:
algor = require('openssl').x509.algor
Functions
new () | Create x509_algor object |
Class x509_algor
x509_algor:dup () | clone the x509_algor |
x509_algor:equals () | compare with other x509_algor object |
x509_algor:md (md) | set message digest object to x509_algor |
x509_algor:get (ident, attached) | get x509_algor properties |
x509_algor:set (obj[, val]) | set x509_algor properties |
x509_algor:set (digest) | set digest algorithm, alias of set() only when OPENSSL_VERSION_NUMBER >= 0x10001000 |
x509_algor:tostring (txt) | convert x509_algor to txt string of asn1_object |
x509_algor:equals (other) | check with other x509_algor whether equals, alias with == operator only when OPENSSL_VERSION_NUMBER >= 0x10002000L |
Functions
Class x509_algor
openssl.x509_algor object
- x509_algor:dup ()
-
clone the x509_algor
Returns:
-
x509_algor
clone of x509_algor
- x509_algor:equals ()
-
compare with other x509_algor object
Returns:
-
boolean
return true if two x509_algor equals
- x509_algor:md (md)
-
set message digest object to x509_algor
Parameters:
- md number, string or evp_md
- x509_algor:get (ident, attached)
-
get x509_algor properties
Parameters:
- ident asn1_object algorithm, nil for fail
- attached asn1_string paramater value
- x509_algor:set (obj[, val])
-
set x509_algor properties
Parameters:
- obj asn1_object ident algorithm in openssl
- val asn1_string attached paramater value (optional)
Returns:
-
boolean
result true for success, others for fail
- x509_algor:set (digest)
-
set digest algorithm, alias of set()
only when OPENSSL_VERSION_NUMBER >= 0x10001000
Parameters:
- digest string or evp_digest algorithm
- x509_algor:tostring (txt)
-
convert x509_algor to txt string of asn1_object
Parameters:
- txt string of asn1_object
- x509_algor:equals (other)
-
check with other x509_algor whether equals, alias with == operator
only when OPENSSL_VERSION_NUMBER >= 0x10002000L
Parameters:
- other x509_algor to compare