Udostępnij za pośrednictwem


KeyProperties.PurposeAgreeKey Field

Definition

Caution

This constant will be removed in the future version. Use Android.Security.Keystore.KeyStorePurpose enum directly instead of this field.

Purpose of key: creating a shared ECDH secret through key agreement.

[Android.Runtime.Register("PURPOSE_AGREE_KEY", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Security.Keystore.KeyStorePurpose enum directly instead of this field.", true)]
public const Android.Security.Keystore.KeyStorePurpose PurposeAgreeKey = 64;
[<Android.Runtime.Register("PURPOSE_AGREE_KEY", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Security.Keystore.KeyStorePurpose enum directly instead of this field.", true)>]
val mutable PurposeAgreeKey : Android.Security.Keystore.KeyStorePurpose

Field Value

Value = 64
Attributes

Remarks

Purpose of key: creating a shared ECDH secret through key agreement.

A key having this purpose can be combined with the elliptic curve public key of another party to establish a shared secret over an insecure channel. It should be used as a parameter to javax.crypto.KeyAgreement#init(java.security.Key) (a complete example is available here). See this article for a more detailed explanation.

Java documentation for android.security.keystore.KeyProperties.PURPOSE_AGREE_KEY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to