Home | History | Annotate | Download | only in conscrypt

Lines Matching refs:NativeCrypto

100         return new OpenSSLKey(NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO(key.getEncoded()));
129 return new OpenSSLKey(NativeCrypto.d2i_PUBKEY(key.getEncoded()));
133 switch (NativeCrypto.EVP_PKEY_type(ctx)) {
134 case NativeCrypto.EVP_PKEY_RSA:
136 case NativeCrypto.EVP_PKEY_DH:
138 case NativeCrypto.EVP_PKEY_DSA:
140 case NativeCrypto.EVP_PKEY_EC:
153 key = new OpenSSLKey(NativeCrypto.d2i_PUBKEY(x509KeySpec.getEncoded()));
158 if (NativeCrypto.EVP_PKEY_type(key.getPkeyContext()) != type) {
170 switch (NativeCrypto.EVP_PKEY_type(ctx)) {
171 case NativeCrypto.EVP_PKEY_RSA:
173 case NativeCrypto.EVP_PKEY_DH:
175 case NativeCrypto.EVP_PKEY_DSA:
177 case NativeCrypto.EVP_PKEY_EC:
190 key = new OpenSSLKey(NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO(pkcs8KeySpec.getEncoded()));
195 if (NativeCrypto.EVP_PKEY_type(key.getPkeyContext()) != type) {
207 switch (NativeCrypto.EVP_PKEY_type(ctx)) {
208 case NativeCrypto.EVP_PKEY_HMAC:
209 case NativeCrypto.EVP_PKEY_CMAC:
220 NativeCrypto.EVP_PKEY_free(ctx);
259 return NativeCrypto.EVP_PKEY_cmp(ctx, other.getPkeyContext()) == 1;