You are here

interface KeyWrapperInterface in Lockr 7.3

Same name and namespace in other branches
  1. 7.2 vendor/lockr/lockr-client/src/KeyWrapper/KeyWrapperInterface.php \Lockr\KeyWrapper\KeyWrapperInterface

Hierarchy

Expanded class hierarchy of KeyWrapperInterface

All classes that implement KeyWrapperInterface

File

vendor/lockr/lockr/src/KeyWrapper/KeyWrapperInterface.php, line 4

Namespace

Lockr\KeyWrapper
View source
interface KeyWrapperInterface {

  /**
   * @return bool
   */
  public static function enabled();

  /**
   * Encrypt the given plaintext.
   *
   * @param string $plaintext
   * @param string|null $key
   *
   * @return array
   */
  public static function encrypt($plaintext, $key = null);

  /**
   * Encrypt the given plaintext reusing state.
   *
   * @param string $plaintext
   * @param string $wrapping_key
   *
   * @return array
   */
  public static function reencrypt($plaintext, $wrapping_key);

  /**
   * Decrypt the given ciphertext.
   *
   * @param string $ciphertext
   * @param string $wrapping_key
   *
   * @return string|bool
   */
  public static function decrypt($ciphertext, $wrapping_key);

}

Members

Namesort descending Modifiers Type Description Overrides
KeyWrapperInterface::decrypt public static function Decrypt the given ciphertext. 5
KeyWrapperInterface::enabled public static function 5
KeyWrapperInterface::encrypt public static function Encrypt the given plaintext. 5
KeyWrapperInterface::reencrypt public static function Encrypt the given plaintext reusing state. 5