repo: https://github.com/u-boot/u-boot commit: d80bb749fab53da72c4a0e09b8c2d2aaa3103c91 Change-Id: Ie6434426e1ec15bc08bb1832798e371f3fd5fb29
15 lines
524 B
C
15 lines
524 B
C
/* 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);
|