package im.actor.crypto; import im.actor.crypto.primitives.Digest; import im.actor.crypto.primitives.digest.CombinedHash; import im.actor.crypto.primitives.digest.SHA256; import im.actor.crypto.primitives.digest.SHA512; import im.actor.crypto.primitives.hmac.HMAC; import im.actor.crypto.primitives.prf.PRF; import im.actor.crypto.primitives.streebog.Streebog256; import im.actor.crypto.primitives.streebog.Streebog512; public final class Cryptos { public static HMAC HMAC_SHA256(byte[] secret) { return new HMAC(secret, new SHA256()); } public static HMAC HMAC_SHA512(byte[] secret) { return new HMAC(secret, new SHA512()); } public static PRF PRF_SHA256() { return new PRF(new SHA256()); } public static PRF PRF_SHA512() { return new PRF(new SHA512()); } public static PRF PRF_STREEBOG256() { return new PRF(new Streebog256()); } public static PRF PRF_STREEBOG512() { return new PRF(new Streebog512()); } public static PRF PRF_SHA_STREEBOG_256() { return new PRF(new CombinedHash(new Digest[]{ new SHA256(), new Streebog256() })); } private Cryptos() { } }