OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:algName
(Results
1 - 25
of
50
) sorted by null
1
2
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
AlgNameMapperSource.java
24
public String mapNameToOid(String
algName
);
AlgNameMapper.java
120
* Returns OID for
algName
122
* @param
algName
algorithm name to be mapped
125
public static String map2OID(String
algName
) {
129
String result = alg2OidMap.get(
algName
.toUpperCase(Locale.US));
137
return s.mapNameToOid(
algName
);
144
* Returns
algName
for OID
171
* @param
algName
- alias
174
public static String getStandardName(String
algName
) {
175
return algAliasesMap.get(
algName
.toUpperCase(Locale.US));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
BaseSecretKeyFactory.java
18
protected String
algName
;
22
String
algName
,
25
this.
algName
=
algName
;
57
return new SecretKeySpec(key.getEncoded(),
algName
);
86
if (!key.getAlgorithm().equalsIgnoreCase(
algName
))
88
throw new InvalidKeyException("Key not of type " +
algName
+ ".");
91
return new SecretKeySpec(key.getEncoded(),
algName
);
BaseKeyGenerator.java
18
protected String
algName
;
26
String
algName
,
30
this.
algName
=
algName
;
80
return new SecretKeySpec(engine.generateKey(),
algName
);
PBESecretKeyFactory.java
51
return new BCPBEKey(this.
algName
, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null);
63
return new BCPBEKey(this.
algName
, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
SecretKeyFactoryThread.java
32
SecretKeyFactory skf = SecretKeyFactory.getInstance(
algName
);
34
KeySpec ks = (KeySpec) ((
algName
== "DES") ? new DESKeySpec(b) :
35
(
algName
== "DESede") ? new DESedeKeySpec(b) :
TestThread.java
21
public String
algName
= null;
37
algName
= getNextAlgorithmName();
71
return
algName
;
KeyGeneratorThread.java
31
KeyGenerator kg = KeyGenerator.getInstance(
algName
);
37
if(kg.getAlgorithm().toLowerCase().equals(
algName
.toLowerCase()) != true) {
MacThread.java
39
Mac m = Mac.getInstance(
algName
);
54
throw new Exception ("Signature is not correct for algorithm " +
algName
);
CipherThread.java
32
private String
algName
= null;
41
algName
= name;
118
return
algName
;
138
return "Alg name:" +
algName
+ " Key:" + keyLength + " Mode:" + mode +
147
return
algName
;
KeyAgreementThread.java
80
byte[] sk1 = kag1.getSecretKey(
algName
, bArray2);
81
byte[] sk2 = kag2.getSecretKey(
algName
, bArray1);
/libcore/crypto/src/main/java/org/conscrypt/
Platform.java
46
public String mapNameToOid(String
algName
) {
47
return NativeCrypto.OBJ_txt2nid_oid(
algName
);
ConnectionStateSSLv3.java
73
String
algName
= cipherSuite.getBulkEncryptionAlgorithm();
79
logger.println(" encryption alg name: " +
algName
);
177
if (
algName
== null) {
181
encCipher = Cipher.getInstance(
algName
);
182
decCipher = Cipher.getInstance(
algName
);
185
new SecretKeySpec(client_key, 0, key_size,
algName
),
188
new SecretKeySpec(server_key, 0, key_size,
algName
),
192
new SecretKeySpec(server_key, 0, key_size,
algName
),
195
new SecretKeySpec(client_key, 0, key_size,
algName
),
ConnectionStateTLS.java
95
String
algName
= cipherSuite.getBulkEncryptionAlgorithm();
101
logger.println(" encryption alg name: " +
algName
);
195
if (
algName
== null) {
199
encCipher = Cipher.getInstance(
algName
);
200
decCipher = Cipher.getInstance(
algName
);
203
new SecretKeySpec(client_key,
algName
), clientIV);
205
new SecretKeySpec(server_key,
algName
), serverIV);
208
new SecretKeySpec(server_key,
algName
), serverIV);
210
new SecretKeySpec(client_key,
algName
), clientIV);
/libcore/luni/src/main/java/javax/crypto/
EncryptedPrivateKeyInfo.java
60
private String
algName
;
93
algName
= aId.getAlgorithm();
94
//
algName
== oid now
96
//
algName
== name from map oid->name if mapping exists, or
97
//
algName
== oid if mapping does not exist
103
aParams = AlgorithmParameters.getInstance(
algName
);
106
algName
= aParams.getAlgorithm();
141
this.
algName
= encryptionAlgorithmName;
143
throw new NoSuchAlgorithmException("Unsupported algorithm: " + this.
algName
);
187
this.
algName
= this.algParameters.getAlgorithm()
[
all
...]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/
AlgNameMapperTest.java
90
String
algName
= AlgNameMapper.map2AlgName(NON_HARDCODED_ALIASES[i][0]);
91
assertNotNull(
algName
);
93
algName
.toUpperCase(Locale.US));
95
String oid = AlgNameMapper.map2OID(
algName
);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
EncryptedPrivateKeyInfoTest.java
71
private static final String[][]
algName
= {
199
for (int i = 0; i <
algName
.length; i++) {
202
TestDataGenerator g = new TestDataGenerator(
algName
[i][0],
203
algName
[i][1], privateKeyInfoDamaged, null);
208
epki = new EncryptedPrivateKeyInfo(
algName
[i][0], g.ct());
214
if (
algName
[i].length == 3) {
215
assertEquals(
algName
[i][2], epki.getAlgName());
[
all
...]
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
EncryptedPrivateKeyInfoTest.java
68
private static final String[][]
algName
= {
[
all
...]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DefaultCMSSignatureAlgorithmNameGenerator.java
118
String
algName
= (String)digestAlgs.get(digestAlgOID);
120
if (
algName
!= null)
122
return
algName
;
136
String
algName
= (String)encryptionAlgs.get(encryptionAlgOID);
138
if (
algName
!= null)
140
return
algName
;