Lines Matching refs:Digest

30 using ::android::hardware::keymaster::V4_0::Digest;
196 static nosapp::Digest translate_digest(Digest digest) in translate_digest()
199 case Digest::NONE: in translate_digest()
200 return nosapp::Digest::DIGEST_NONE; in translate_digest()
201 case Digest::MD5: in translate_digest()
202 return nosapp::Digest::DIGEST_MD5; in translate_digest()
203 case Digest::SHA1: in translate_digest()
204 return nosapp::Digest::DIGEST_SHA1; in translate_digest()
205 case Digest::SHA_2_224: in translate_digest()
206 return nosapp::Digest::DIGEST_SHA_2_224; in translate_digest()
207 case Digest::SHA_2_256: in translate_digest()
208 return nosapp::Digest::DIGEST_SHA_2_256; in translate_digest()
209 case Digest::SHA_2_384: in translate_digest()
210 return nosapp::Digest::DIGEST_SHA_2_384; in translate_digest()
211 case Digest::SHA_2_512: in translate_digest()
212 return nosapp::Digest::DIGEST_SHA_2_512; in translate_digest()
214 return nosapp::Digest::DIGEST_MAX; in translate_digest()
218 static ErrorCode translate_digest(nosapp::Digest digest, in translate_digest()
219 Digest *out) in translate_digest()
222 case nosapp::Digest::DIGEST_NONE: in translate_digest()
223 *out = Digest::NONE; in translate_digest()
225 case nosapp::Digest::DIGEST_MD5: in translate_digest()
226 *out = Digest::MD5; in translate_digest()
228 case nosapp::Digest::DIGEST_SHA1: in translate_digest()
229 *out = Digest::SHA1; in translate_digest()
231 case nosapp::Digest::DIGEST_SHA_2_224: in translate_digest()
232 *out = Digest::SHA_2_224; in translate_digest()
234 case nosapp::Digest::DIGEST_SHA_2_256: in translate_digest()
235 *out = Digest::SHA_2_256; in translate_digest()
237 case nosapp::Digest::DIGEST_SHA_2_384: in translate_digest()
238 *out = Digest::SHA_2_384; in translate_digest()
240 case nosapp::Digest::DIGEST_SHA_2_512: in translate_digest()
241 *out = Digest::SHA_2_512; in translate_digest()
611 static_cast<nosapp::Digest>(param.integer()), in pb_to_key_parameter()