From 9805d54678ff7d409043ca001259b52f9d447ee8 Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Mon, 3 Jul 2017 17:03:13 +0900 Subject: [PATCH] Add since_tizen tag Change-Id: I5701ec31374337c5bc1758cc0b4d3e22aa929b71 Signed-off-by: Dongsun Lee --- .../Tizen.Security.SecureRepository/Certificate.cs | 5 +++++ .../Tizen.Security.SecureRepository/CertificateManager.cs | 7 +++++++ .../Crypto/AesCbcCipherParameters.cs | 2 ++ .../Crypto/AesCfbCipherParameters.cs | 2 ++ .../Tizen.Security.SecureRepository/Crypto/AesCipherParameters.cs | 2 ++ .../Crypto/AesCtrCipherParameters.cs | 3 +++ .../Crypto/AesGcmCipherParameters.cs | 4 ++++ .../Tizen.Security.SecureRepository/Crypto/Cipher.cs | 5 +++++ .../Tizen.Security.SecureRepository/Crypto/CipherAlgorithmType.cs | 1 + .../Tizen.Security.SecureRepository/Crypto/CipherParameterName.cs | 1 + .../Tizen.Security.SecureRepository/Crypto/CipherParameters.cs | 2 ++ .../Crypto/DsaSignatureParameters.cs | 2 ++ .../Crypto/EcdsaSignatureParameters.cs | 2 ++ .../Tizen.Security.SecureRepository/Crypto/HashAlgorithm.cs | 1 + .../Crypto/RsaOaepCipherParameters.cs | 2 ++ .../Tizen.Security.SecureRepository/Crypto/RsaPaddingAlgorithm.cs | 1 + .../Crypto/RsaSignatureParameters.cs | 3 +++ .../Tizen.Security.SecureRepository/Crypto/Signature.cs | 5 +++++ .../Crypto/SignatureAlgorithmType.cs | 1 + .../Crypto/SignatureParameterName.cs | 1 + .../Tizen.Security.SecureRepository/Crypto/SignatureParameters.cs | 3 +++ .../Tizen.Security.SecureRepository/DataFormat.cs | 1 + .../Tizen.Security.SecureRepository/DataManager.cs | 4 ++++ .../Tizen.Security.SecureRepository/EllipticCurveType.cs | 1 + .../Tizen.Security.SecureRepository/Key.cs | 5 +++++ .../Tizen.Security.SecureRepository/KeyManager.cs | 8 ++++++++ .../Tizen.Security.SecureRepository/KeyType.cs | 1 + .../Tizen.Security.SecureRepository/Manager.cs | 5 +++++ .../Tizen.Security.SecureRepository/OcspStatus.cs | 1 + .../Tizen.Security.SecureRepository/Permission.cs | 1 + .../Tizen.Security.SecureRepository/Pkcs12.cs | 7 +++++++ .../Tizen.Security.SecureRepository/Pkcs12Manager.cs | 3 +++ .../Tizen.Security.SecureRepository/Policy.cs | 5 +++++ 33 files changed, 97 insertions(+) diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Certificate.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Certificate.cs index d3cd784..401a554 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Certificate.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Certificate.cs @@ -23,11 +23,13 @@ namespace Tizen.Security.SecureRepository /// /// Class that represents a certificate. /// + /// 3 public class Certificate { /// /// Load Certificate from the given file path. /// + /// 3 /// The path of certificate file to be loaded. /// Loaded certificate class instance. /// @@ -54,6 +56,7 @@ namespace Tizen.Security.SecureRepository /// /// A constructor of Certificate that takes the binary and its format. /// + /// 3 /// The binary data of a certificate. /// The format of the binary data. public Certificate(byte[] binary, DataFormat format) @@ -100,6 +103,7 @@ namespace Tizen.Security.SecureRepository /// /// The binary value of a certificate. /// + /// 3 public byte[] Binary { get; set; @@ -108,6 +112,7 @@ namespace Tizen.Security.SecureRepository /// /// The format of the binary value. /// + /// 3 public DataFormat Format { get; set; diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/CertificateManager.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/CertificateManager.cs index f2b1dc8..c034267 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/CertificateManager.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/CertificateManager.cs @@ -23,11 +23,13 @@ namespace Tizen.Security.SecureRepository /// /// This class provides the methods handling certificates. /// + /// 3 public class CertificateManager : Manager { /// /// Gets a certificate from secure repository. /// + /// 3 /// The name of a certificate to retrieve. /// /// The password used in decrypting a certificate value. If password of @@ -69,6 +71,7 @@ namespace Tizen.Security.SecureRepository /// /// Gets all alias of certificates which the client can access. /// + /// 3 /// All alias of certificates which the client can access. /// No alias to get. static public IEnumerable GetAliases() @@ -92,6 +95,7 @@ namespace Tizen.Security.SecureRepository /// /// Stores a certificate inside secure repository based on the provided policy. /// + /// 3 /// The name of a certificate to be stored. /// The certificate's binary value to be stored. /// @@ -120,6 +124,7 @@ namespace Tizen.Security.SecureRepository /// /// Verifies a certificate chain and returns that chain. /// + /// 3 /// The certificate to be verified. /// /// The untrusted CA certificates to be used in verifying a certificate chain. @@ -182,6 +187,7 @@ namespace Tizen.Security.SecureRepository /// Verifies a certificate chain and returns that chain using user entered /// trusted and untrusted CA certificates. /// + /// 3 /// The certificate to be verified. /// /// The untrusted CA certificates to be used in verifying a certificate chain. @@ -252,6 +258,7 @@ namespace Tizen.Security.SecureRepository /// /// Perform OCSP which checks certificate is whether revoked or not. /// + /// 3 /// /// Valid certificate chain to perform OCSP check. /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCbcCipherParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCbcCipherParameters.cs index b00818f..36e8902 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCbcCipherParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCbcCipherParameters.cs @@ -19,11 +19,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for AES algorithm with CBC mode. /// + /// 3 public class AesCbcCipherParameters : AesCipherParameters { /// /// A default constructor /// + /// 3 /// The CipherAlgorithmType in CipherParameters is set to CipherAlgorithmType.AesCbc. public AesCbcCipherParameters() : base(CipherAlgorithmType.AesCbc) { diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCfbCipherParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCfbCipherParameters.cs index 2b31f4d..6bb35af 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCfbCipherParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCfbCipherParameters.cs @@ -19,11 +19,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for AES algorithm with CFB mode. /// + /// 3 public class AesCfbCipherParameters : AesCipherParameters { /// /// A default constructor /// + /// 3 /// The CipherAlgorithmType in CipherParameters is set to CipherAlgorithmType.AesCfb. public AesCfbCipherParameters() : base(CipherAlgorithmType.AesCfb) { diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCipherParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCipherParameters.cs index 9796e52..095f9ae 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCipherParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCipherParameters.cs @@ -19,11 +19,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A abstract class holding parameters for AES algorithm. /// + /// 3 public abstract class AesCipherParameters : CipherParameters { /// /// An initialization vector. /// + /// 3 public byte[] IV { get { return this.GetBuffer(CipherParameterName.IV); } diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCtrCipherParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCtrCipherParameters.cs index dcefa3a..731254f 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCtrCipherParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesCtrCipherParameters.cs @@ -21,11 +21,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for AES algorithm with counter mode. /// + /// 3 public class AesCtrCipherParameters : AesCipherParameters { /// /// A default constructor /// + /// 3 /// The CipherAlgorithmType in CipherParameters is set to CipherAlgorithmType.AesCtr. public AesCtrCipherParameters() : base(CipherAlgorithmType.AesCtr) { @@ -34,6 +36,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Length of counter block in bits. /// + /// 3 /// Optional, only 128b is supported at the moment. /// value should be positive. public long CounterLength diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesGcmCipherParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesGcmCipherParameters.cs index 7615dfc..cab0ccc 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesGcmCipherParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/AesGcmCipherParameters.cs @@ -21,11 +21,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for AES algorithm with GCM mode. /// + /// 3 public class AesGcmCipherParameters : AesCipherParameters { /// /// A default constructor /// + /// 3 /// The CipherAlgorithmType in CipherParameters is set to CipherAlgorithmType.AesGcm. public AesGcmCipherParameters() : base(CipherAlgorithmType.AesGcm) { @@ -34,6 +36,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// GCM tag length in bits. /// + /// 3 /// One of {32, 64, 96, 104, 112, 120, 128} (optional, if not present the length 128 is used. /// TagLength should be one of {32, 64, 96, 104, 112, 120, 128} public long TagLength @@ -60,6 +63,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Additional authentication data(optional) /// + /// 3 public byte[] AAD { get { return GetBuffer(CipherParameterName.AAD); } diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Cipher.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Cipher.cs index 8874a08..e84c070 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Cipher.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Cipher.cs @@ -21,6 +21,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// This class provides the methods encrypting and decrypting data. /// + /// 3 public class Cipher { private readonly CipherParameters _parameters; @@ -28,6 +29,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A constructor of Cipher that takes the algorithm specific parameters. /// + /// 3 /// The algorithm specific parameters. public Cipher(CipherParameters parameters) { @@ -37,6 +39,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// The algorithm specific parameters. /// + /// 3 public CipherParameters Parameters { get { return _parameters; } @@ -45,6 +48,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Decrypts data using selected key and algorithm. /// + /// 3 /// Alias of the key to be used for decryption. /// /// The password used in decrypting a key value. If password of policy is @@ -98,6 +102,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Encrypts data using selected key and algorithm. /// + /// 3 /// Alias of the key to be used for encryption. /// /// The password used in decrypting a key value. If password of policy is diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherAlgorithmType.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherAlgorithmType.cs index b4315f9..7487ebc 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherAlgorithmType.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherAlgorithmType.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Enumeration for crypto cipher algorithm types. /// + /// 3 public enum CipherAlgorithmType : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameterName.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameterName.cs index a54e0f4..be3801e 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameterName.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameterName.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Enumeration for cipher algorithm parameters. /// + /// 3 public enum CipherParameterName : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameters.cs index 23b30a7..450b159 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/CipherParameters.cs @@ -21,6 +21,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A abstract class holding parameters for encryption and decryption. /// + /// 3 abstract public class CipherParameters { private SafeCipherParametersHandle _handle; @@ -28,6 +29,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Cipher algorithm type. /// + /// 3 public CipherAlgorithmType Algorithm { get diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/DsaSignatureParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/DsaSignatureParameters.cs index 4a8498f..2c58255 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/DsaSignatureParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/DsaSignatureParameters.cs @@ -19,11 +19,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for DSA signature algorithm. /// + /// 3 public class DsaSignatureParameters : SignatureParameters { /// /// A default constructor /// + /// 3 public DsaSignatureParameters() : base(SignatureAlgorithmType.Dsa) { } diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/EcdsaSignatureParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/EcdsaSignatureParameters.cs index b8ea87e..3cd6e65 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/EcdsaSignatureParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/EcdsaSignatureParameters.cs @@ -19,11 +19,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for ECDSA signature algorithm. /// + /// 3 public class EcdsaSignatureParameters : SignatureParameters { /// /// A default constructor /// + /// 3 public EcdsaSignatureParameters() : base(SignatureAlgorithmType.Ecdsa) { } diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/HashAlgorithm.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/HashAlgorithm.cs index 6eebf93..66c6491 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/HashAlgorithm.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/HashAlgorithm.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Enumeration for hash algorithm /// + /// 3 public enum HashAlgorithm : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaOaepCipherParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaOaepCipherParameters.cs index 71a4f29..f0fbe9f 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaOaepCipherParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaOaepCipherParameters.cs @@ -19,11 +19,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for RSA algorithm with OAEP mode. /// + /// 3 public class RsaOaepCipherParameters : CipherParameters { /// /// A default constructor /// + /// 3 /// The CipherAlgorithmType in CipherParameters is set to CipherAlgorithmType.RsaOaep. public RsaOaepCipherParameters() : base(CipherAlgorithmType.RsaOaep) { diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaPaddingAlgorithm.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaPaddingAlgorithm.cs index 5678614..5da20f6 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaPaddingAlgorithm.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaPaddingAlgorithm.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Enumeration for RSA padding algorithm /// + /// 3 public enum RsaPaddingAlgorithm : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaSignatureParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaSignatureParameters.cs index 1db34d7..b1dfe7b 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaSignatureParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/RsaSignatureParameters.cs @@ -19,11 +19,13 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A class holding parameters for RSA signature algorithm. /// + /// 3 public class RsaSignatureParameters : SignatureParameters { /// /// A default constructor /// + /// 3 /// The RsaPadding is set to RsaPaddingAlgorithm.None. public RsaSignatureParameters() : base(SignatureAlgorithmType.Rsa) { @@ -32,6 +34,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// RSA padding algorithm /// + /// 3 public RsaPaddingAlgorithm RsaPadding { get { return (RsaPaddingAlgorithm)Get(SignatureParameterName.RsaPaddingAlgorithm); } diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Signature.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Signature.cs index a4631e8..3e34ce7 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Signature.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/Signature.cs @@ -21,6 +21,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// This class provides the methods creating and verifying a signature. /// + /// 3 public class Signature { private SignatureParameters _parameters; @@ -28,6 +29,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A constructor of Signature that takes the algorithm specific parameters. /// + /// 3 /// The algorithm specific parameters. public Signature(SignatureParameters parameters) { @@ -37,6 +39,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// The algorithm specific parameters. /// + /// 3 public SignatureParameters Parameters { get { return _parameters; } @@ -46,6 +49,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// Creates a signature on a given message using a private key and returns /// the signature. /// + /// 3 /// The name of private key. /// /// The password used in decrypting a private key value. @@ -113,6 +117,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// Verifies a given signature on a given message using a public key and returns /// the signature status. /// + /// 3 /// The name of public key. /// /// The password used in decrypting a public key value. diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureAlgorithmType.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureAlgorithmType.cs index 9eb81e5..68b5ba1 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureAlgorithmType.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureAlgorithmType.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Enumeration for signature algorithm types. /// + /// 3 public enum SignatureAlgorithmType : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameterName.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameterName.cs index d147395..1662ad1 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameterName.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameterName.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Enumeration for signature algorithm parameters. /// + /// 3 internal enum SignatureParameterName : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameters.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameters.cs index a6d7ccc..bccf4cc 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameters.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Crypto/SignatureParameters.cs @@ -22,6 +22,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// A abstract class holding parameters for signing and verification. /// + /// 3 abstract public class SignatureParameters { private Dictionary _parameters; @@ -29,6 +30,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Signature algorithm type. /// + /// 3 public SignatureAlgorithmType SignatureAlgorithm { get { return (SignatureAlgorithmType)Get(SignatureParameterName.AlgorithmType); } @@ -37,6 +39,7 @@ namespace Tizen.Security.SecureRepository.Crypto /// /// Hash algorithm used in signing anve verification. /// + /// 3 public HashAlgorithm HashAlgorithm { get { return (HashAlgorithm)Get(SignatureParameterName.HashAlgorithm); } diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataFormat.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataFormat.cs index ef76336..cd96acf 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataFormat.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataFormat.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository /// /// Enumeration for data format /// + /// 3 public enum DataFormat : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataManager.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataManager.cs index 229622a..38fd661 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataManager.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/DataManager.cs @@ -23,11 +23,13 @@ namespace Tizen.Security.SecureRepository /// /// This class provides the methods storing and retrieving data. /// + /// 3 public class DataManager : Manager { /// /// Gets data from secure repository. /// + /// 3 /// The name of a certificate to retrieve. /// /// The password used in decrypting a data value. @@ -68,6 +70,7 @@ namespace Tizen.Security.SecureRepository /// /// Gets all alias of data which the client can access. /// + /// 3 /// All alias of data which the client can access. /// No alias to get. static public IEnumerable GetAliases() @@ -91,6 +94,7 @@ namespace Tizen.Security.SecureRepository /// /// Stores data inside secure repository based on the provided policy. /// + /// 3 /// The name of data to be stored. /// The binary value to be stored. /// The policy about how to store data securely. diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/EllipticCurveType.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/EllipticCurveType.cs index 9efaa4a..6e52871 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/EllipticCurveType.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/EllipticCurveType.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository /// /// Enumeration for elliptic curve /// + /// 3 public enum EllipticCurveType : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Key.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Key.cs index 0ea7edd..e175f55 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Key.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Key.cs @@ -23,12 +23,14 @@ namespace Tizen.Security.SecureRepository /// /// Class that represents a key. /// + /// 3 public class Key { /// /// A constructor of Key that takes the binary, its type, and optional password /// of binary. /// + /// 3 /// /// The binary value of a key. This binary may be encrypted with binaryPassword. /// @@ -82,6 +84,7 @@ namespace Tizen.Security.SecureRepository /// /// The binary value of a key. /// + /// 3 public byte[] Binary { get; set; @@ -90,6 +93,7 @@ namespace Tizen.Security.SecureRepository /// /// The key's type. /// + /// 3 public KeyType Type { get; set; @@ -98,6 +102,7 @@ namespace Tizen.Security.SecureRepository /// /// The password used to decrypt binary when binary is encrypted. It's optional. /// + /// 3 public string BinaryPassword { get; set; diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyManager.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyManager.cs index b504edc..cb2395f 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyManager.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyManager.cs @@ -22,11 +22,13 @@ namespace Tizen.Security.SecureRepository /// /// This class provides the methods storing, retrieving, and creating keys. /// + /// 3 public class KeyManager : Manager { /// /// Gets a key from secure repository. /// + /// 3 /// The name of a key to retrieve. /// /// The password used in decrypting a key value. @@ -67,6 +69,7 @@ namespace Tizen.Security.SecureRepository /// /// Gets all alias of keys which the client can access. /// + /// 3 /// All alias of keys which the client can access. /// No alias to get. static public IEnumerable GetAliases() @@ -90,6 +93,7 @@ namespace Tizen.Security.SecureRepository /// /// Stores a key inside secure repository based on the provided policy. /// + /// 3 /// The name of a key to be stored. /// The key's binary value to be stored. /// The policy about how to store a key securely. @@ -125,6 +129,7 @@ namespace Tizen.Security.SecureRepository /// Creates RSA private/public key pair and stores them inside secure repository /// based on each policy. /// + /// 3 /// /// The size of key strength to be created. 1024, 2048, and 4096 are supported. /// @@ -170,6 +175,7 @@ namespace Tizen.Security.SecureRepository /// Creates DSA private/public key pair and stores them inside secure repository /// based on each policy. /// + /// 3 /// /// The size of key strength to be created. 1024, 2048, 3072, and 4096 are /// supported. @@ -216,6 +222,7 @@ namespace Tizen.Security.SecureRepository /// Creates ECDSA private/public key pair and stores them inside secure repository /// based on each policy. /// + /// 3 /// The type of elliptic curve of ECDSA. /// The name of private key to be stored. /// The name of public key to be stored. @@ -257,6 +264,7 @@ namespace Tizen.Security.SecureRepository /// /// Creates AES key and stores it inside secure repository based on each policy. /// + /// 3 /// /// The size of key strength to be created. 128, 192 and 256 are supported. /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyType.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyType.cs index fb71c7c..483af31 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyType.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/KeyType.cs @@ -19,6 +19,7 @@ namespace Tizen.Security.SecureRepository /// /// Enumeration for key types of key manager. /// + /// 3 public enum KeyType : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Manager.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Manager.cs index 2ddc79e..035eb8e 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Manager.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Manager.cs @@ -22,11 +22,13 @@ namespace Tizen.Security.SecureRepository /// This class is a base class of XxxManager classes. It provides the common methods /// for all sub classes. /// + /// 3 public class Manager { /// /// Creates a new full alias which is concatenation of owner id and alias. /// + /// 3 /// Data owner's id. This should be package id if data /// owner is application. If you want to access data stored by system services, /// use CreateFullSystemAlias() instead. @@ -40,6 +42,7 @@ namespace Tizen.Security.SecureRepository /// Creates a new full alias which is concatenation of system service's /// owner id and alias. /// + /// 3 /// Data alias which is owned by system service. static public string CreateFullSystemAlias(string alias) { @@ -49,6 +52,7 @@ namespace Tizen.Security.SecureRepository /// /// Removes a an entry (no matter of type) from the key manager. /// + /// 3 /// Item alias to be removed. /// alias is null. /// alias is invalid format. @@ -70,6 +74,7 @@ namespace Tizen.Security.SecureRepository /// /// Allows another application to access client's application data. /// + /// 3 /// Item alias for which access will be granted. /// /// Package id of the application that will gain access rights. diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/OcspStatus.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/OcspStatus.cs index 22581b0..b6517e8 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/OcspStatus.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/OcspStatus.cs @@ -25,6 +25,7 @@ namespace Tizen.Security.SecureRepository /// /// Enumeration for OCSP status. /// + /// 3 public enum OcspStatus : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Permission.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Permission.cs index 95cc962..9dc4bda 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Permission.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Permission.cs @@ -20,6 +20,7 @@ namespace Tizen.Security.SecureRepository /// /// Enumeration for permissions to access/modify alias. /// + /// 3 public enum Permission : int { /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12.cs index 32a811b..fea73f9 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12.cs @@ -25,6 +25,7 @@ namespace Tizen.Security.SecureRepository /// Class that represents a PKCS#12 contents. /// It has a private key or its certificate or all the members of a chain of trust. /// + /// 3 public class Pkcs12 { private SafeCertificateListHandle _certChainHandle = null; @@ -32,6 +33,7 @@ namespace Tizen.Security.SecureRepository /// /// Load Pkcs12 from the given PKCS#12 file path. /// + /// 3 /// The path of PKCS12 file to be loaded. /// The passphrase used to decrypt the PCKS12 file. /// If PKCS12 file is not encrypted, passphrase can be null. @@ -66,6 +68,7 @@ namespace Tizen.Security.SecureRepository /// /// A constructor of Key that takes a private key. /// + /// 3 /// A private key. public Pkcs12(Key privateKey) { @@ -78,6 +81,7 @@ namespace Tizen.Security.SecureRepository /// A constructor of Key that takes a private key, its corresponding certicate, /// and CA's certificate chain. /// + /// 3 /// A private key. /// A certificate corresponding the private key /// @@ -148,6 +152,7 @@ namespace Tizen.Security.SecureRepository /// /// A private key. /// + /// 3 public Key PrivateKey { get; set; @@ -156,6 +161,7 @@ namespace Tizen.Security.SecureRepository /// /// A certificate corresponding the private key. /// + /// 3 public Certificate Certificate { get; set; @@ -164,6 +170,7 @@ namespace Tizen.Security.SecureRepository /// /// A certificate chain of CA(Certificate Authority) that issued the certificate. /// + /// 3 public IEnumerable CaChain { get diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12Manager.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12Manager.cs index b7a4ce4..661db40 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12Manager.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Pkcs12Manager.cs @@ -22,11 +22,13 @@ namespace Tizen.Security.SecureRepository /// /// This class provides the methods storing, retrieving Pkcs12 contents. /// + /// 3 public class Pkcs12Manager : Manager { /// /// Gets Pkcs12 contents from secure repository. /// + /// 3 /// The name of data to retrieve. /// /// The password used in decrypting a private key value. If password of @@ -74,6 +76,7 @@ namespace Tizen.Security.SecureRepository /// Stores PKCS12's contents inside key manager based on the provided policies. /// All items from the PKCS12 will use the same alias. /// + /// 3 /// The name of a data to be stored. /// The pkcs12 data to be stored. /// diff --git a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Policy.cs b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Policy.cs index c65532c..56fac91 100644 --- a/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Policy.cs +++ b/src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/Policy.cs @@ -22,11 +22,13 @@ namespace Tizen.Security.SecureRepository /// /// A class for a policy for storing key, certificate, and binary data. /// + /// 3 public class Policy { /// /// A default constructor of Policy with default policy. /// + /// 3 /// The default value for Password is null and the default value for Extractabl is false. public Policy() { @@ -37,6 +39,7 @@ namespace Tizen.Security.SecureRepository /// /// A constructor of Key that takes the password and the flag for extractable. /// + /// 3 /// Used to encrypt data secure repository. /// If true key may be extracted from secure repository. public Policy(String password, bool extractable) @@ -49,6 +52,7 @@ namespace Tizen.Security.SecureRepository /// Used to encrypt data secure repository. If it is not null, the data /// (or key, or certificate) is stored encrypted with this password inside secure repository /// + /// 3 public String Password { get; set; @@ -57,6 +61,7 @@ namespace Tizen.Security.SecureRepository /// /// If true key may be extracted from secure repository. /// + /// 3 public bool Extractable { get; set; -- 2.7.4