CryptoSys PKI Toolkit Manual

Cms.MakeEnvDataFromString Method (String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions)

The same as Cms.MakeEnvData except the input is from an ANSI string instead of a file (advanced options)

Syntax

[C#]
public static int MakeEnvDataFromString(
	string outputFile,
	string inputData,
	string certList,
	CipherAlgorithm cipherAlg,
	Cms.KeyEncrAlgorithm keyEncrAlg,
	HashAlgorithm hashAlg,
	Cms.EnvDataOptions advOptions
)
[VB.NET]
Public Shared Function MakeEnvDataFromString ( _
	outputFile As String, _
	inputData As String, _
	certList As String, _
	cipherAlg As CipherAlgorithm, _
	keyEncrAlg As Cms.KeyEncrAlgorithm, _
	hashAlg As HashAlgorithm, _
	advOptions As Cms.EnvDataOptions _
) As Integer

Parameters

outputFile
Output file to be created
inputData
Input data text
certList
List of X509 certificate filename(s), separated by semi-colons
cipherAlg
Type: CipherAlgorithm
Content encryption algorithm [default=Triple DES]
keyEncrAlg
Type: Cms.KeyEncrAlgorithm
Key encryption algorithm [default=rsaEncryption)]
hashAlg
Type: HashAlgorithm
Hash algorithm used in KDF (ignored - for future use) [default=SHA-1]
advOptions
Type: Cms.EnvDataOptions
Advanced options. See Cms.EnvDataOptions.

Return Value

Number of successful recipients or negative error code

Remarks

As of v3.7, it is an error if any specified certificate file in certList is missing or corrupted.

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: CMS_MakeEnvDataFromString

[Contents] [Index]

[HOME]   [NEXT: Cms.MakeEnvDataFromString Method (String, String, String, Cms.Options)...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.