Skip to content

Commit ae105ca

Browse files
committed
ready to start debugging sn channels - towards a working version: specify fitting crypt algorithms and it should work. But not today.
1 parent 179da51 commit ae105ca

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed
0 Bytes
Binary file not shown.
258 Bytes
Binary file not shown.

app/libs/ASAPCertificate_0.1.0.jar

701 Bytes
Binary file not shown.

app/src/main/java/net/sharksystem/asap/sharknet/android/SNChannelAddMessageActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public void onSendClick(View view) {
129129
Toast.makeText(this, e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();
130130
Log.d(this.getLogStart(), "problems when sending message in SNChannel: "
131131
+ e.getLocalizedMessage());
132+
e.printStackTrace();
132133
}
133134
}
134135

app/src/main/java/net/sharksystem/sharknet/android/AndroidASAPKeyStorage.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,37 @@ public AndroidASAPKeyStorage(Context initialContext,
6565
this.initialContext = initialContext;
6666
}
6767

68+
/////////////////////////////////////////////////////////////////////////////////////////////
69+
// overwrite specific android default encryption settings //
70+
/////////////////////////////////////////////////////////////////////////////////////////////
71+
72+
@Override
73+
public String getRSASigningAlgorithm() {
74+
// return DEFAULT_SIGNATURE_ALGORITHM;
75+
return "SHA256withECDSA";
76+
}
77+
78+
/*
79+
@Override
80+
public String getSymmetricEncryptionAlgorithm() {
81+
return DEFAULT_SYMMETRIC_ENCRYPTION_ALGORITHM; }
82+
83+
@Override
84+
public String getSymmetricKeyType() {
85+
return DEFAULT_SYMMETRIC_KEY_TYPE;
86+
}
87+
88+
@Override
89+
public int getSymmetricKeyLen() {
90+
return DEFAULT_AES_KEY_SIZE;
91+
}
92+
93+
@Override
94+
public String getRSAEncryptionAlgorithm() {
95+
return DEFAULT_RSA_ENCRYPTION_ALGORITHM;
96+
}
97+
*/
98+
6899
@Override
69100
public void generateKeyPair() throws ASAPSecurityException {
70101
try {

0 commit comments

Comments
 (0)