Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Digest
/
HMAC
/
//opt/alt/ruby21/share/ri/2.1.0/system/Digest/HMAC/cdesc-HMAC.ri
U:RDoc::NormalClass[iI" HMAC:ETI"Digest::HMAC;TI"Digest::Class;To:RDoc::Markup::Document:@parts[o;;[S:RDoc::Markup::Heading: leveli: textI"digest/hmac.rb;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"CAn experimental implementation of HMAC keyed-hashing algorithm;T@S; ; i;I" Overview;T@o; ;[ I"?CAUTION: Use of this library is discouraged, because this ;TI"Jimplementation was meant to be experimental but somehow got into the ;TI"H1.9 series without being noticed. Please use OpenSSL::HMAC in the ;TI""openssl" library instead.;T@S; ; i;I" Examples;T@o:RDoc::Markup::Verbatim;[I"require 'digest/hmac' ;TI" ;TI"# one-liner example ;TI"Cputs Digest::HMAC.hexdigest("data", "hash key", Digest::SHA1) ;TI" ;TI"# rather longer one ;TI"4hmac = Digest::HMAC.new("foo", Digest::RMD160) ;TI" ;TI"buf = "" ;TI"#while stream.read(16384, buf) ;TI" hmac.update(buf) ;TI" end ;TI" ;TI"puts hmac.hexdigest;T:@format0: @fileI""ext/digest/lib/digest/hmac.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [ [[I" class;T[[:public[[I"new;TI""ext/digest/lib/digest/hmac.rb;T[:protected[ [:private[ [I" instance;T[[;[[I"<<;T@:[I"block_length;F@:[I"digest_length;F@:[I"inspect;F@:[I" reset;F@:[I"update;F@:[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@.I"Digest;TcRDoc::NormalModule