@@ -74,37 +74,6 @@ Maybe<void> DsaKeyGenTraits::AdditionalConfig(
74
74
return JustVoid ();
75
75
}
76
76
77
- Maybe<void > DSAKeyExportTraits::AdditionalConfig (
78
- const FunctionCallbackInfo<Value>& args,
79
- unsigned int offset,
80
- DSAKeyExportConfig* params) {
81
- return JustVoid ();
82
- }
83
-
84
- WebCryptoKeyExportStatus DSAKeyExportTraits::DoExport (
85
- const KeyObjectData& key_data,
86
- WebCryptoKeyFormat format,
87
- const DSAKeyExportConfig& params,
88
- ByteSource* out) {
89
- CHECK_NE (key_data.GetKeyType (), kKeyTypeSecret );
90
-
91
- switch (format) {
92
- case kWebCryptoKeyFormatRaw :
93
- // Not supported for RSA keys of either type
94
- return WebCryptoKeyExportStatus::FAILED;
95
- case kWebCryptoKeyFormatPKCS8 :
96
- if (key_data.GetKeyType () != kKeyTypePrivate )
97
- return WebCryptoKeyExportStatus::INVALID_KEY_TYPE;
98
- return PKEY_PKCS8_Export (key_data, out);
99
- case kWebCryptoKeyFormatSPKI :
100
- if (key_data.GetKeyType () != kKeyTypePublic )
101
- return WebCryptoKeyExportStatus::INVALID_KEY_TYPE;
102
- return PKEY_SPKI_Export (key_data, out);
103
- default :
104
- UNREACHABLE ();
105
- }
106
- }
107
-
108
77
bool GetDsaKeyDetail (Environment* env,
109
78
const KeyObjectData& key,
110
79
Local<Object> target) {
@@ -132,12 +101,10 @@ bool GetDsaKeyDetail(Environment* env,
132
101
namespace DSAAlg {
133
102
void Initialize (Environment* env, Local<Object> target) {
134
103
DsaKeyPairGenJob::Initialize (env, target);
135
- DSAKeyExportJob::Initialize (env, target);
136
104
}
137
105
138
106
void RegisterExternalReferences (ExternalReferenceRegistry* registry) {
139
107
DsaKeyPairGenJob::RegisterExternalReferences (registry);
140
- DSAKeyExportJob::RegisterExternalReferences (registry);
141
108
}
142
109
} // namespace DSAAlg
143
110
} // namespace crypto
0 commit comments