sdkms.v1.models.sign_request module

Fortanix DSM REST API

This is a set of REST APIs for accessing the Fortanix Data Security Manager. This includes APIs for managing accounts, and for performing cryptographic and key management operations.

OpenAPI spec version: 1.0.0-20200608 Contact: support@fortanix.com Generated by: https://github.com/swagger-api/swagger-codegen.git

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class sdkms.v1.models.sign_request.SignRequest(hash_alg=None, hash=None, data=None, mode=None, deterministic_signature=None)[source]

Bases: object

swagger_types

The key is attribute name and the value is attribute type.

Type:

dict

attribute_map

The key is attribute name and the value is json key in definition.

Type:

dict

__init__(hash_alg=None, hash=None, data=None, mode=None, deterministic_signature=None)[source]

SignRequest - a model defined in Swagger

property data

Gets the data of this SignRequest. Data to be signed. Exactly one of hash and data is required. To reduce request size and avoid reaching the request size limit, prefer hash. When using Ed25519 keys, a distinction is made between providing the message directly in data and providing a prehashed value in hash. Providing a full message results in an “Ed25519” signature while providing hash results in an “Ed25519ph” signature, which is not compatible. See RFC 8032 for details.

Type: bytearray

Setter:

Sets the data of this SignRequest.

property deterministic_signature

Gets the deterministic_signature of this SignRequest.

Type: bool

Setter:

Sets the deterministic_signature of this SignRequest.

property hash

Gets the hash of this SignRequest. Hash (not supported in FIPS mode) of the data to be signed. Exactly one of hash and data is required.

Type: bytearray

Setter:

Sets the hash of this SignRequest.

property hash_alg

Gets the hash_alg of this SignRequest.

Type: DigestAlgorithm

Setter:

Sets the hash_alg of this SignRequest.

property mode

Gets the mode of this SignRequest.

Type: SignatureMode

Setter:

Sets the mode of this SignRequest.