C# Class Org.BouncyCastle.Security.PbeUtilities

Mostra file Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method Description
CreateEngine ( AlgorithmIdentifier algID ) : object
CreateEngine ( DerObjectIdentifier algorithmOid ) : object
CreateEngine ( string algorithm ) : object
GenerateAlgorithmParameters ( DerObjectIdentifier algorithmOid, byte salt, int iterationCount ) : Asn1Encodable
GenerateAlgorithmParameters ( string algorithm, byte salt, int iterationCount ) : Asn1Encodable
GenerateCipherParameters ( AlgorithmIdentifier algID, char password, bool wrongPkcs12Zero ) : ICipherParameters
GenerateCipherParameters ( DerObjectIdentifier algorithmOid, char password, Asn1Encodable pbeParameters ) : ICipherParameters
GenerateCipherParameters ( DerObjectIdentifier algorithmOid, char password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters ) : ICipherParameters
GenerateCipherParameters ( string algorithm, char password, Asn1Encodable pbeParameters ) : ICipherParameters
GenerateCipherParameters ( string algorithm, char password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters ) : ICipherParameters
GetEncodingName ( DerObjectIdentifier oid ) : string
GetObjectIdentifier ( string mechanism ) : DerObjectIdentifier

Returns a ObjectIdentifier for a give encoding.

IsOpenSsl ( string algorithm ) : bool
IsPbeAlgorithm ( string algorithm ) : bool
IsPkcs12 ( string algorithm ) : bool
IsPkcs5Scheme1 ( string algorithm ) : bool
IsPkcs5Scheme2 ( string algorithm ) : bool

Private Methods

Method Description
EndsWith ( string s, string ending ) : bool
MakePbeGenerator ( string type, IDigest digest, byte key, byte salt, int iterationCount ) : PbeParametersGenerator
PbeUtilities ( ) : System

Method Details

CreateEngine() public static method

public static CreateEngine ( AlgorithmIdentifier algID ) : object
algID Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier
return object

CreateEngine() public static method

public static CreateEngine ( DerObjectIdentifier algorithmOid ) : object
algorithmOid Org.BouncyCastle.Asn1.DerObjectIdentifier
return object

CreateEngine() public static method

public static CreateEngine ( string algorithm ) : object
algorithm string
return object

GenerateAlgorithmParameters() public static method

public static GenerateAlgorithmParameters ( DerObjectIdentifier algorithmOid, byte salt, int iterationCount ) : Asn1Encodable
algorithmOid Org.BouncyCastle.Asn1.DerObjectIdentifier
salt byte
iterationCount int
return Org.BouncyCastle.Asn1.Asn1Encodable

GenerateAlgorithmParameters() public static method

public static GenerateAlgorithmParameters ( string algorithm, byte salt, int iterationCount ) : Asn1Encodable
algorithm string
salt byte
iterationCount int
return Org.BouncyCastle.Asn1.Asn1Encodable

GenerateCipherParameters() public static method

public static GenerateCipherParameters ( AlgorithmIdentifier algID, char password, bool wrongPkcs12Zero ) : ICipherParameters
algID Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier
password char
wrongPkcs12Zero bool
return ICipherParameters

GenerateCipherParameters() public static method

public static GenerateCipherParameters ( DerObjectIdentifier algorithmOid, char password, Asn1Encodable pbeParameters ) : ICipherParameters
algorithmOid Org.BouncyCastle.Asn1.DerObjectIdentifier
password char
pbeParameters Org.BouncyCastle.Asn1.Asn1Encodable
return ICipherParameters

GenerateCipherParameters() public static method

public static GenerateCipherParameters ( DerObjectIdentifier algorithmOid, char password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters ) : ICipherParameters
algorithmOid Org.BouncyCastle.Asn1.DerObjectIdentifier
password char
wrongPkcs12Zero bool
pbeParameters Org.BouncyCastle.Asn1.Asn1Encodable
return ICipherParameters

GenerateCipherParameters() public static method

public static GenerateCipherParameters ( string algorithm, char password, Asn1Encodable pbeParameters ) : ICipherParameters
algorithm string
password char
pbeParameters Org.BouncyCastle.Asn1.Asn1Encodable
return ICipherParameters

GenerateCipherParameters() public static method

public static GenerateCipherParameters ( string algorithm, char password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters ) : ICipherParameters
algorithm string
password char
wrongPkcs12Zero bool
pbeParameters Org.BouncyCastle.Asn1.Asn1Encodable
return ICipherParameters

GetEncodingName() public static method

public static GetEncodingName ( DerObjectIdentifier oid ) : string
oid Org.BouncyCastle.Asn1.DerObjectIdentifier
return string

GetObjectIdentifier() public static method

Returns a ObjectIdentifier for a give encoding.
public static GetObjectIdentifier ( string mechanism ) : DerObjectIdentifier
mechanism string A string representation of the encoding.
return Org.BouncyCastle.Asn1.DerObjectIdentifier

IsOpenSsl() public static method

public static IsOpenSsl ( string algorithm ) : bool
algorithm string
return bool

IsPbeAlgorithm() public static method

public static IsPbeAlgorithm ( string algorithm ) : bool
algorithm string
return bool

IsPkcs12() public static method

public static IsPkcs12 ( string algorithm ) : bool
algorithm string
return bool

IsPkcs5Scheme1() public static method

public static IsPkcs5Scheme1 ( string algorithm ) : bool
algorithm string
return bool

IsPkcs5Scheme2() public static method

public static IsPkcs5Scheme2 ( string algorithm ) : bool
algorithm string
return bool