Show / Hide Table of Contents

Class KeyShape

The cryptographic properties of a key.

Inheritance
object
KeyShape
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.KeymanagementService.Models
Assembly: OCI.DotNetSDK.Keymanagement.dll
Syntax
public class KeyShape

Properties

Algorithm

Declaration
[Required(ErrorMessage = "Algorithm is required.")]
[JsonProperty(PropertyName = "algorithm")]
[JsonConverter(typeof(ResponseEnumConverter))]
public KeyShape.AlgorithmEnum? Algorithm { get; set; }
Property Value
Type Description
KeyShape.AlgorithmEnum?

The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for External keys.

Remarks

Required

CurveId

Declaration
[JsonProperty(PropertyName = "curveId")]
[JsonConverter(typeof(ResponseEnumConverter))]
public KeyShape.CurveIdEnum? CurveId { get; set; }
Property Value
Type Description
KeyShape.CurveIdEnum?

Supported curve IDs for ECDSA keys.

Length

Declaration
[Required(ErrorMessage = "Length is required.")]
[JsonProperty(PropertyName = "length")]
public int? Length { get; set; }
Property Value
Type Description
int?

The length of the key in bytes, expressed as an integer. Supported values include the following:

  • AES: 16, 24, or 32
  • RSA: 256, 384, or 512
  • ECDSA: 32, 48, or 66
Remarks

Required

In this article
Back to top