<commit_before>/*
 * Copyright (C) 2015 Actor LLC. <https://actor.im>
 */

package im.actor.runtime;

import com.google.j2objc.annotations.ObjectiveCName;

import im.actor.runtime.crypto.AesCipher;
import im.actor.runtime.crypto.CryptoKeyPair;
import im.actor.runtime.crypto.RsaCipher;
import im.actor.runtime.crypto.RsaEncryptCipher;

/**
 * Provider for Cryptography support
 */
public interface CryptoRuntime {

    /**
     * Calculate MD5
     *
     * @param data source data
     * @return md5 hash of data
     */
    @ObjectiveCName("MD5WithData:")
    byte[] MD5(byte[] data);

    /**
     * Calculate SHA256
     *
     * @param data source data
     * @return sha256 hash of data
     */
    @ObjectiveCName("SHA256WithData:")
    byte[] SHA256(byte[] data);

    /**
     * Calculate SHA512
     *
     * @param data source data
     * @return sha512 hash of data<commit_msg>fix(runtime): Fixing incorrect imports<commit_after>/*
 * Copyright (C) 2015 Actor LLC. <https://actor.im>
 */

package im.actor.runtime;

import com.google.j2objc.annotations.ObjectiveCName;

/**
 * Provider for Cryptography support
 */
public interface CryptoRuntime {

    /**
     * Calculate MD5
     *
     * @param data source data
     * @return md5 hash of data
     */
    @ObjectiveCName("MD5WithData:")
    byte[] MD5(byte[] data);

    /**
     * Calculate SHA256
     *
     * @param data source data
     * @return sha256 hash of data
     */
    @ObjectiveCName("SHA256WithData:")
    byte[] SHA256(byte[] data);

    /**
     * Calculate SHA512
     *
     * @param data source data
     * @return sha512 hash of data
{'fraction_non_alphanumeric': 0.12384473197781885, 'fraction_numerical': 0.033271719038817, 'mean_word_length': 2.649438202247191, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6277057', 'n_tokens_mistral': 563, 'n_tokens_neox': 508, 'n_words': 128}