다음을 통해 공유


SecKey.CreateRandomKey 메서드

정의

오버로드

CreateRandomKey(NSDictionary, NSError)

새 키 쌍을 만들고 반환합니다.

CreateRandomKey(SecKeyGenerationParameters, NSError)

새 키 쌍을 만들고 반환합니다.

CreateRandomKey(SecKeyType, Int32, NSDictionary, NSError)

새 키 쌍을 만들고 반환합니다.

CreateRandomKey(NSDictionary, NSError)

새 키 쌍을 만들고 반환합니다.

[ObjCRuntime.TV(10, 0)]
[ObjCRuntime.Watch(3, 0)]
public static Security.SecKey CreateRandomKey (Foundation.NSDictionary parameters, out Foundation.NSError error);
static member CreateRandomKey : Foundation.NSDictionary *  -> Security.SecKey

매개 변수

parameters
NSDictionary

의 키SecKeyParameters로 키 지정되는 값 사전 SecKeyGenerationParameters 입니다.

error
NSError

발생하는 오류에 대한 코드를 작성할 위치입니다.

반환

새 키 쌍입니다.

특성

적용 대상

CreateRandomKey(SecKeyGenerationParameters, NSError)

새 키 쌍을 만들고 반환합니다.

[ObjCRuntime.TV(10, 0)]
[ObjCRuntime.Watch(3, 0)]
public static Security.SecKey CreateRandomKey (Security.SecKeyGenerationParameters parameters, out Foundation.NSError error);
static member CreateRandomKey : Security.SecKeyGenerationParameters *  -> Security.SecKey

매개 변수

parameters
SecKeyGenerationParameters

만들 키 쌍에 대한 세부 정보를 지정하기 위한 매개 변수 개체입니다.

error
NSError

발생하는 오류에 대한 코드를 작성할 위치입니다.

반환

새 키 쌍입니다.

특성

적용 대상

CreateRandomKey(SecKeyType, Int32, NSDictionary, NSError)

새 키 쌍을 만들고 반환합니다.

[ObjCRuntime.TV(10, 0)]
[ObjCRuntime.Watch(3, 0)]
public static Security.SecKey CreateRandomKey (Security.SecKeyType keyType, int keySizeInBits, Foundation.NSDictionary parameters, out Foundation.NSError error);
static member CreateRandomKey : Security.SecKeyType * int * Foundation.NSDictionary *  -> Security.SecKey

매개 변수

keyType
SecKeyType

DSA 타원 곡선 또는 RSA 키를 만들 것인지 여부입니다.

keySizeInBits
Int32
parameters
NSDictionary

의 키SecKeyParameters로 키 지정되는 값 사전 SecKeyGenerationParameters 입니다.

error
NSError

발생하는 오류에 대한 코드를 작성할 위치입니다.

반환

새 키 쌍입니다.

특성

적용 대상