metasploit-framework/lib/rex/proto/kerberos/crypto/rsa_md5.rb

21 lines
350 B
Ruby

# -*- coding: binary -*-
module Rex
module Proto
module Kerberos
module Crypto
module RsaMd5
# Checksum identifier
RSA_MD5 = 7
def checksum_rsa_md5(data)
md5 = OpenSSL::Digest::MD5.new
md5 << data
md5.digest
end
end
end
end
end
end