1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 module com
{ module sun
{ module star
{ module xml
{ module crypto
{
12 /** Constants to identify Key Derivation Function
13 @since LibreOffice 24.2
19 Derive key material from password. When used with ODF, the
20 "StartKeyGenerationAlgorithm" is applied to the password and the
21 result is passed to KDF.
23 const long PBKDF2
= 1;
27 Of course this is public key encryption, but it does produce
28 key material for symmetric encryption. When used with ODF, the
29 "StartKeyGenerationAlgorithm" digest is not used, as the input
32 const long PGP_RSA_OAEP_MGF1P
= 2;
36 Derive key material from password. When used with ODF, the
37 "StartKeyGenerationAlgorithm" is applied to the password and the
38 result is passed to KDF.
40 @see https://www.rfc-editor.org/rfc/rfc9106.html
42 const long Argon2id
= 3;
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */