cryptopp 6.0.0
parent
38bc47fe0d
commit
9ef163b188
|
@ -1,8 +1,8 @@
|
|||
class Cryptopp < Formula
|
||||
desc "Free C++ class library of cryptographic schemes"
|
||||
homepage "https://www.cryptopp.com/"
|
||||
url "https://github.com/weidai11/cryptopp/archive/CRYPTOPP_5_6_5.tar.gz"
|
||||
sha256 "79fd5514b3b191a1c6d934cd989d5e058f4726a72a3dad2444bd1274a6aae686"
|
||||
url "https://github.com/weidai11/cryptopp/archive/CRYPTOPP_6_0_0.tar.gz"
|
||||
sha256 "ed951973ae4f4d52edcf25882fa5238145a00adc81edb9d7be4ce7b9aa744269"
|
||||
|
||||
# https://cryptopp.com/wiki/Config.h#Options_and_Defines
|
||||
bottle :disable, "Library and clients must be built on the same microarchitecture"
|
||||
|
@ -22,9 +22,9 @@ class Cryptopp < Formula
|
|||
|
||||
int main()
|
||||
{
|
||||
byte digest[SHA::DIGESTSIZE];
|
||||
byte digest[SHA1::DIGESTSIZE];
|
||||
string data = "Hello World!";
|
||||
SHA().CalculateDigest(digest, (byte*) data.c_str(), data.length());
|
||||
SHA1().CalculateDigest(digest, (byte*) data.c_str(), data.length());
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
|
|
Loading…
Reference in New Issue