test_class.file: src/de/slackspace/openkeepass/crypto/Salsa20Test.java
test_class.identifier: Salsa20Test
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void whenStreamKeyIsNullShouldThrowArgumentException() {
          Salsa20.createInstance(null);
      }
test_case.class_method_signature: Salsa20Test.whenStreamKeyIsNullShouldThrowArgumentException()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void whenStreamKeyIsNullShouldThrowArgumentException()
test_case.identifier: whenStreamKeyIsNullShouldThrowArgumentException
test_case.invocations: createInstance
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void whenStreamKeyIsNullShouldThrowArgumentException()
focal_class.declarator: MSG_UNKNOWN_UTF8_ENCODING = "The encoding UTF-8 is not supported"
focal_class.modifier: private static final
focal_class.original_string: private static final String MSG_UNKNOWN_UTF8_ENCODING = "The encoding UTF-8 is not supported";
focal_class.type: String
focal_class.var_name: MSG_UNKNOWN_UTF8_ENCODING
focal_class.declarator: SALSA20_ALGORITHM = "SALSA20"
focal_class.modifier: private static final
focal_class.original_string: private static final String SALSA20_ALGORITHM = "SALSA20";
focal_class.type: String
focal_class.var_name: SALSA20_ALGORITHM
focal_class.declarator: ENCODING = "UTF-8"
focal_class.modifier: private static final
focal_class.original_string: private static final String ENCODING = "UTF-8";
focal_class.type: String
focal_class.var_name: ENCODING
focal_class.declarator: SALSA20IV = "E830094B97205D2A"
focal_class.modifier: private static final
focal_class.original_string: private static final String SALSA20IV = "E830094B97205D2A";
focal_class.type: String
focal_class.var_name: SALSA20IV
focal_class.declarator: salsa20Engine
focal_class.modifier: private
focal_class.original_string: private Salsa20Engine salsa20Engine;
focal_class.type: Salsa20Engine
focal_class.var_name: salsa20Engine
focal_class.file: src/de/slackspace/openkeepass/crypto/Salsa20.java
focal_class.identifier: Salsa20
focal_class.interfaces: implements ProtectedStringCrypto
focal_class.class_method_signature: Salsa20.initialize(byte[] protectedStreamKey)
focal_class.full_signature: private void initialize(byte[] protectedStreamKey)
focal_class.identifier: initialize
focal_class.modifiers: private
focal_class.parameters: (byte[] protectedStreamKey)
focal_class.return: void
focal_class.signature: void initialize(byte[] protectedStreamKey)
focal_class.class_method_signature: Salsa20.createInstance(byte[] protectedStreamKey)
focal_class.full_signature: public static Salsa20 createInstance(byte[] protectedStreamKey)
focal_class.identifier: createInstance
focal_class.modifiers: public static
focal_class.parameters: (byte[] protectedStreamKey)
focal_class.return: Salsa20
focal_class.signature: Salsa20 createInstance(byte[] protectedStreamKey)
focal_class.class_method_signature: Salsa20.decrypt(String protectedString)
focal_class.full_signature: @Override public String decrypt(String protectedString)
focal_class.identifier: decrypt
focal_class.modifiers: @Override public
focal_class.parameters: (String protectedString)
focal_class.return: String
focal_class.signature: String decrypt(String protectedString)
focal_class.class_method_signature: Salsa20.encrypt(String plainString)
focal_class.full_signature: @Override public String encrypt(String plainString)
focal_class.identifier: encrypt
focal_class.modifiers: @Override public
focal_class.parameters: (String plainString)
focal_class.return: String
focal_class.signature: String encrypt(String plainString)
focal_method.body: public static Salsa20 createInstance(byte[] protectedStreamKey) {
          if (protectedStreamKey == null) {
              throw new IllegalArgumentException("ProtectedStreamKey must not be null");
          }
  
          Salsa20 salsa20 = new Salsa20();
          salsa20.initialize(protectedStreamKey);
  
          return salsa20;
      }
focal_method.class_method_signature: Salsa20.createInstance(byte[] protectedStreamKey)
focal_method.full_signature: public static Salsa20 createInstance(byte[] protectedStreamKey)
focal_method.identifier: createInstance
focal_method.invocations: initialize
focal_method.modifiers: public static
focal_method.parameters: (byte[] protectedStreamKey)
focal_method.return: Salsa20
focal_method.signature: Salsa20 createInstance(byte[] protectedStreamKey)