Class: Google::Apis::CloudkmsV1::Digest
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::Digest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudkms_v1/classes.rb,
lib/google/apis/cloudkms_v1/representations.rb,
lib/google/apis/cloudkms_v1/representations.rb
Overview
A Digest holds a cryptographic message digest.
Instance Attribute Summary collapse
-
#external_mu ⇒ String
A message digest produced with SHAKE-256, to be used with ML-DSA external-μ algorithms only.
-
#sha256 ⇒ String
A message digest produced with the SHA-256 algorithm.
-
#sha384 ⇒ String
A message digest produced with the SHA-384 algorithm.
-
#sha512 ⇒ String
A message digest produced with the SHA-512 algorithm.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Digest
constructor
A new instance of Digest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Digest
Returns a new instance of Digest.
1287 1288 1289 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1287 def initialize(**args) update!(**args) end |
Instance Attribute Details
#external_mu ⇒ String
A message digest produced with SHAKE-256, to be used with ML-DSA external-μ
algorithms only. See "message representative" note in section 6.2, algorithm 7
of the FIPS-204 standard: https://doi.org/10.6028/nist.fips.204
Corresponds to the JSON property externalMu
NOTE: Values are automatically base64 encoded/decoded in the client library.
1267 1268 1269 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1267 def external_mu @external_mu end |
#sha256 ⇒ String
A message digest produced with the SHA-256 algorithm.
Corresponds to the JSON property sha256
NOTE: Values are automatically base64 encoded/decoded in the client library.
1273 1274 1275 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1273 def sha256 @sha256 end |
#sha384 ⇒ String
A message digest produced with the SHA-384 algorithm.
Corresponds to the JSON property sha384
NOTE: Values are automatically base64 encoded/decoded in the client library.
1279 1280 1281 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1279 def sha384 @sha384 end |
#sha512 ⇒ String
A message digest produced with the SHA-512 algorithm.
Corresponds to the JSON property sha512
NOTE: Values are automatically base64 encoded/decoded in the client library.
1285 1286 1287 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1285 def sha512 @sha512 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1292 1293 1294 1295 1296 1297 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1292 def update!(**args) @external_mu = args[:external_mu] if args.key?(:external_mu) @sha256 = args[:sha256] if args.key?(:sha256) @sha384 = args[:sha384] if args.key?(:sha384) @sha512 = args[:sha512] if args.key?(:sha512) end |