Conditions | 3 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package kms |
||
57 | func NewDecryptResult(output *SDK.DecryptResponse) *DecryptResult { |
||
58 | r := &DecryptResult{} |
||
59 | if output == nil { |
||
60 | return r |
||
61 | } |
||
62 | |||
63 | r.EncryptionAlgorithm = EncryptionAlgorithmSpec(output.EncryptionAlgorithm) |
||
64 | if output.KeyId != nil { |
||
65 | r.KeyID = *output.KeyId |
||
66 | } |
||
67 | r.Plaintext = output.Plaintext |
||
68 | return r |
||
69 | } |
||
70 |