File: crypt.h

package info (click to toggle)
u-boot 2025.01-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 330,748 kB
  • sloc: ansic: 2,627,855; python: 60,773; sh: 41,641; asm: 21,854; makefile: 15,048; perl: 12,447; cs: 6,763; cpp: 1,868; yacc: 1,100; lex: 747; awk: 57; tcl: 32; sed: 24
file content (14 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (C) 2020 Steffen Jaeckel <jaeckel-floss@eyet-services.de> */

/**
 * Compare should with the processed passphrase.
 *
 * @should      The crypt-style string to compare against
 * @passphrase  The plaintext passphrase
 * @equal       Pointer to an int where the result is stored
 *                 '0' = unequal
 *                 '1' = equal
 * Return: 0 on success, error code of errno else
 */
int crypt_compare(const char *should, const char *passphrase, int *equal);