repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix up Rubinius specific library specs.
[rbx.git]
/
lib
/
openssl.rb
blob
45ceb2513d515a2fbd15c588eec88042e866fb85
1
module OpenSSL
2
autoload :HMAC, "openssl/hmac"
3
autoload :Digest, "openssl/digest"
4
5
# Used by the various hexdigest implementations
6
def self.digest_to_hex(digest)
7
out = ""
8
digest.each_byte do |byte|
9
hex = byte.to_s(16)
10
out << "0" if byte < 0x10 # add leading zero if necessary
11
out << hex
12
end
13
out
14
end
15
end