diff options
Diffstat (limited to 'src/pubkey')
-rw-r--r-- | src/pubkey/nr/nr.cpp | 4 | ||||
-rw-r--r-- | src/pubkey/pkcs8.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pubkey/nr/nr.cpp b/src/pubkey/nr/nr.cpp index 3c5b71ad2..244a397ee 100644 --- a/src/pubkey/nr/nr.cpp +++ b/src/pubkey/nr/nr.cpp @@ -104,8 +104,8 @@ NR_Signature_Operation::sign(const byte msg[], u32bit msg_len, } SecureVector<byte> output(2*q.bytes()); - c.binary_encode(output + (output.size() / 2 - c.bytes())); - d.binary_encode(output + (output.size() - d.bytes())); + c.binary_encode(&output[output.size() / 2 - c.bytes()]); + d.binary_encode(&output[output.size() - d.bytes()]); return output; } diff --git a/src/pubkey/pkcs8.cpp b/src/pubkey/pkcs8.cpp index 5eed776be..415aed790 100644 --- a/src/pubkey/pkcs8.cpp +++ b/src/pubkey/pkcs8.cpp @@ -101,7 +101,7 @@ SecureVector<byte> PKCS8_decode(DataSource& source, const User_Interface& ui, pbe->set_key(passphrase); Pipe decryptor(pbe.release()); - decryptor.process_msg(key_data, key_data.size()); + decryptor.process_msg(key_data); key = decryptor.read_all(); } |