Method: OpenSSL::Timestamp::TokenInfo#algorithm
- Defined in:
- ossl_ts.c
#algorithm ⇒ Object
Returns the ‘short name’ of the object identifier representing the algorithm that was used to derive the message imprint digest. For valid timestamps, this is the same value that was already given in the Request. If status is GRANTED or GRANTED_WITH_MODS, this is never nil
.
Example:
algo = token_info.algorithm
puts algo -> "SHA1"
call-seq:
token_info.algorithm -> string or nil
932 933 934 935 936 937 938 939 940 941 942 943 |
# File 'ossl_ts.c', line 932
static VALUE
ossl_ts_token_info_get_algorithm(VALUE self)
{
TS_TST_INFO *info;
TS_MSG_IMPRINT *mi;
X509_ALGOR *algo;
GetTSTokenInfo(self, info);
mi = TS_TST_INFO_get_msg_imprint(info);
algo = TS_MSG_IMPRINT_get_algo(mi);
return get_asn1obj(algo->algorithm);
}
|