Esempio n. 1
0
static void* salt(char *ciphertext)
{
  static char salt[SALT_LENGTH];

  _tobin(salt, (char*)(ciphertext+2), sizeof(salt));

  return salt;
}
Esempio n. 2
0
static void* salt(char *ciphertext)
{
  static ARCH_WORD salt[(SALT_LENGTH + sizeof(ARCH_WORD) - 1) / sizeof(ARCH_WORD)];

  _tobin((char*)salt, (char*)(ciphertext+2), sizeof(salt));

  return salt;
}
Esempio n. 3
0
static void* binary(char *ciphertext)
{
  static char bin[BINARY_LENGTH];

  _tobin(bin, (char*)(ciphertext+65), sizeof(bin));

  return bin;
}
Esempio n. 4
0
static void* binary(char *ciphertext)
{
  static ARCH_WORD bin[(BINARY_LENGTH + sizeof(ARCH_WORD) - 1) / sizeof(ARCH_WORD)];

  _tobin((char*)bin, (char*)(ciphertext+65), BINARY_LENGTH);

  return bin;
}