2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
17 namespace Tizen.Security.SecureRepository.Crypto
20 /// Enumeration for crypto cipher algorithm types.
22 public enum CipherAlgorithmType : int
26 /// Supported parameters:
27 /// - ParameterName.AlgorithmType = AesCtr(mandatory),
28 /// - ParameterName.IV = 16 - byte initialization vector(mandatory)
29 /// - ParameterName.CounterLength = length of counter block in bits
30 /// (optional, only 128b is supported at the moment)
35 /// Supported parameters:
36 /// - ParameterName.AlgorithmType = AesCbc(mandatory),
37 /// - ParameterName.IV = 16-byte initialization vector(mandatory)
42 /// Supported parameters:
43 /// - ParameterName.AlgorithmType = AesGcm(mandatory),
44 /// - ParameterName.IV = initialization vector(mandatory)
45 /// - ParameterName.TagLength = GCM tag length in bits. One of
46 /// {32, 64, 96, 104, 112, 120, 128} (optional, if not present the length 128 is used)
47 /// - CKMC_PARAM_ED_AAD = additional authentication data(optional)
52 /// Supported parameters:
53 /// - ParameterName.AlgorithmType = AecCfb(mandatory),
54 /// - ParameterName.IV = 16-byte initialization vector(mandatory)
58 /// RSA-OAEP algorithm
59 /// Supported parameters:
60 /// - ParameterName.AlgorithmType = RsaOaep(required),
61 /// - ParameterName.Label = label to be associated with the message
62 /// (optional, not supported at the moment)