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.
1285 1286 1287 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1285 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.
1265 1266 1267 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1265 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.
1271 1272 1273 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1271 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.
1277 1278 1279 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1277 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.
1283 1284 1285 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1283 def sha512 @sha512 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1290 1291 1292 1293 1294 1295 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1290 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 |